Date: 2019/08/04 22:41:13 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
command_Spec:
type: command
name: dspecs
usage: /spec (help/info/list/change/name) (name)
permission: specs.spec
aliases:
- spec
- specs
script:
- define arg:<context.args.[1]||help>
- define arg2:<context.args.[2]||null>
- define spec_roots:<yaml[spec_config].list_keys[specs]>
- foreach <[spec_roots]> as:root:
- define specs:->:<yaml[spec_config].list_keys[specs.<[root]>]>
- narrate "Executing loop?"
- foreach <[specs]> as:spec:
- narrate "<[spec]>"
- if <[spec].contains[<[arg]>]>:
- narrate "Spec found in - <[spec]>"
- narrate "Executing switch?"
- choose <[arg]>:
- case help:
- narrate "Spec help"
- case info:
- if !<player.has_permission[specs.spec.info]>:
- stop
- if <[arg2]> == null:
- stop
- foreach <[specs]> as:spec:
- if <[spec].contains[<[arg2]>]>:
- narrate "Giving info on spec"
- case list:
- if !<player.has_permission[specs.spec.list]>:
- stop
- define index:1
- foreach <[spec_roots]> as:root:
- narrate "<&a><&l><[root]>"
- foreach <[specs].[<[index]>]> as:spec:
- narrate "<&e> <[spec]>"
- define index:++
- case change:
- if !<player.has_permission[specs.spec.change]>:
- stop
- narrate "Changing"
- case stats:
- if !<player.has_permission[specs.spec.stats]>:
- stop
- narrate "Stats"
command_Subspec:
type: command
name: dspecs
usage: /spec (help/root/info/list/change) (name)
aliases:
- spec
- specs
script:
- define arg:<context.args.[1]||help>
- define spec_roots:<yaml[spec_config].list_keys[specs]>
- foreach <[spec_roots]> as:root:
- define specs:->:<yaml[spec_config].list_keys[specs.<[root]>]>
- choose <[arg]>:
- case help:
- case info:
- case list:
- define index:1
- foreach <[spec_roots]> as:root:
- narrate "<&a><&l><[root]>"
- foreach <[specs].[<[index]>]> as:spec:
- narrate "<&e> <[spec]>"
- define index:++
- case change:
- case stats:
handler_dSpecs:
type: world
debug: true
events:
on server start:
- yaml id:dspecs_config loadtext:<script[config_dSpecs].to_text>
- yaml id:spec_config loadtext:<script[config_Specs].to_text>
on player joins:
- wait 1t
on player quits:
- wait 1t
data_dSpecsPlayer:
type: yaml data
specs:
config_dSpecs:
type: yaml data
num_specs: 2
num_subspecs: 1
reset_on_change: false
mastery: true
config_Specs:
type: yaml data
specs:
race:
Human:
name: Human
max_level: 40
description:
- A human
subspecs:
- subrace: Man
- subrace: Dwarf
- subrace: Undead
stats:
Damage: 5
Health: 5
while_full_health:
RegenAura: 5
Orc:
name: Orc
description:
- An orc
subspecs:
- subrace: WarOrc
- subrace: Goblin
- subrace: Ogre
stats:
AxeDamage: 5
Armor: 5
while_dying:
Damage: 5
Elf:
name: Elf
description:
- An elf
subspecs:
- subrace: HighElf
- subrace: SurfaceElf
- subrace: DarkElf
stats:
SwordDamage: 5
Dodge: 5
while_night:
Regen: 5
Beast:
name: Beast
description:
- A beast
subspecs:
- subrace: Vampire
- subrace: Werewolf
- subrace: Harpy
stats:
Damage: 5
Speed: 0.1
while_full_health:
speed: 0.1
class:
Warrior:
subspecs:
- subclass: Protector
- subclass: Paladin
- subclass: Champion
Healer:
subspecs:
- subclass: Priest
- subclass: Cleric
- subclass: Necromancer
Thief:
subspecs:
- subclass: Rogue
- subclass: Cutthroat
- subclass: Assassin
Archer:
subspecs:
- subclass: Marksman
- subclass: Trickster
- subclass: Hunter
Sorcerer:
subspecs:
- subclass: Mage
- subclass: Alchemist
- subclass: Spellsword
profession:
Miner:
name: Miner
Farmer:
name: Farmer
Mercenary:
name: Mercenary
Blacksmith:
name: Blacksmith
Technician:
name: Technician
Builder:
name: Builder
Brewer:
name: Brewer
subspecs:
subrace:
Man:
name: Man
description:
- A man
Dwarf:
name: Dwarf
description:
- A dwarf
Undead:
name: Undead
description:
- An undead
WarOrc:
name: War Orc
description:
- A war orc
Goblin:
name: Goblin
description:
- A Goblin
Ogre:
name: Ogre
description:
- An ogre
HighElf:
name: High Elf
description:
- A high elf
SurfaceElf:
name: Surface Elf
description:
- A surface elf
DarkElf:
name: Dark Elf
description:
- A dark elf
Vampire:
name: Vampire
description:
- A vampire
Werewolf:
name: Werewolf
description:
- A werewolf
Harpy:
name: Harpy
description:
- A harpy
subclass:
Protector:
name: Protector
description:
- A protector
Paladin:
name: Paladin
description:
- A paladin
Champion:
name: Champion
description:
- A champion
Priest:
name: Priest
description:
- A priest
Cleric:
name: Cleric
description:
- A cleric
Necromancer:
name: Necromancer
description:
- A necromancer
Rogue:
name: Rogue
description:
- A rogue
Cutthroat:
name: Cutthroat
description:
- A cutthroat
Assassin:
name: Assassin
description:
- An assassin
Marksman:
name: Marksman
description:
- A marksman
Trickster:
name: Trickster
description:
- A trickster
Hunter:
name: Hunter
description:
- A hunter
Mage:
name: Mage
description:
- A mage
Alchemist:
name: Alchemist
description:
- An alchemist
Spellsword:
name: Spellsword
description:
- A spellsword