-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdemo.yml
More file actions
626 lines (626 loc) · 16.9 KB
/
Copy pathdemo.yml
File metadata and controls
626 lines (626 loc) · 16.9 KB
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
worlds:
- defaults:
actor:
flags: !map {}
items: []
meta:
id: actor-none
name:
base: ''
desc:
base: ''
scripts: !map
signal.get:
data: !map {}
name:
base: signal-actor-get
signal.hit:
data: !map {}
name:
base: signal-actor-hit
signal.look:
data: !map {}
name:
base: signal-actor-look
signal.step:
data: !map {}
name:
base: signal-actor-step
verbs.common.drop:
data: !map {}
name:
base: verb-actor-drop
verbs.common.equip:
data: !map {}
name:
base: verb-actor-equip
verbs.common.hit:
data: !map {}
name:
base: verb-actor-hit
verbs.common.look:
data: !map {}
name:
base: verb-actor-look
verbs.common.move:
data: !map {}
name:
base: verb-actor-move
verbs.common.open:
data: !map {}
name:
base: verb-actor-open
verbs.common.say:
data: !map {}
name:
base: verb-actor-say
verbs.common.take:
data: !map {}
name:
base: verb-actor-take
verbs.common.use:
data: !map {}
name:
base: verb-actor-use
verbs.common.wait:
data: !map {}
name:
base: verb-actor-wait
verbs.world.swing:
data: !map {}
name:
base: verb-actor-hit
slots: !map {}
stats: !map {}
item:
flags: !map {}
meta:
id: item-none
name:
base: ''
desc:
base: ''
scripts: !map
signal.look:
data: !map {}
name:
base: signal-item-look
signal.use:
data: !map {}
name:
base: signal-item-use
slot:
base: ''
stats: !map {}
portal:
dest:
base: room-none
flags: !map {}
group:
key:
base: ''
source:
base: ''
target:
base: ''
link:
base: both
meta:
id: portal-none
name:
base: ''
desc:
base: ''
scripts: !map
signal.look:
data: !map {}
name:
base: signal-portal-look
signal.use:
data: !map {}
name:
base: signal-portal-use
stats: !map {}
room:
actors: []
flags: !map {}
meta:
id: room-none
name:
base: ''
desc:
base: ''
items: []
portals: []
scripts: !map
signal.look:
data: !map {}
name:
base: signal-room-look
signal.step:
data: !map {}
name:
base: signal-room-step
locale:
languages:
en:
articles: []
prepositions: []
verbs:
- verbs.world.slog
- verbs.world.swing
strings:
actor:
signal:
get:
item: |-
You have picked up a {{item.meta.name}}: {{item.meta.desc}}.
hit:
dead: |-
{{actor.meta.name}} has died!
health: |-
{{actor.meta.name}} took {{damage}} damage and has {{health}} health left.
item: |-
{{attacker.meta.name}} has hit {{actor.meta.name}} with a {{item.meta.name}}!
look:
dead: |-
The {{actor.meta.name}} is dead!
health: |-
You have {{health}} health.
item: |-
You are holding a {{item.meta.name}}: {{item.meta.desc}}.
seen: |-
A {{actor.meta.name}} is in the room: {{actor.meta.desc}}.
self: |-
You are a {{actor.meta.name}}: {{actor.meta.desc}}.
step:
dead: |-
You are dead!
verb:
missing: |-
{{actor.meta.name}} does not know how to $t({{command.verb}})!
player: |-
You will $t({{command.verb}}) the next turn.
target: |-
{{actor.meta.name}} will $t({{command.verb}}) the {{command.targets}}.
slot:
weapon-hand: hand
weapon-hand-left: left hand
weapon-hand-right: right hand
weapon-mouth: mouth
verb:
drop:
owner: |-
You are not holding {{item.meta.name}}!
type: |-
{{command.targets}} is not an item!
equip:
item: |-
You equip the {{item.meta.name}} in your $t(actor.slot.{{slot}}).
missing: |-
{{command.targets}} is not an item!
slot:
invalid: |-
{{item.meta.name}} does not fit in your $t(actor.slot.{{slot}})!
missing: |-
You do not have a $t(actor.slot.{{slot}}) to hold {{item.meta.name}}!
hit:
item: |-
You cannot hit {{target.meta.name}}, you are not holding anything!
self: |-
You cannot hit yourself!
type: |-
{{command.targets}} is not an actor!
look:
missing: |-
You see nothing.
move:
locked: |-
{{portal.meta.name}} is locked!
missing: |-
{{command.targets}} is not a portal!
portal: |-
{{actor.meta.name}} moved through the {{portal.group.source}} {{portal.meta.name}}.
open:
already: |-
{{portal.meta.name}} is already open.
missing: |-
{{command.targets}} is not a portal!
portal: |-
You open {{portal.meta.name}}.
say:
line: |-
{{actor.meta.name}} says: {{line}}
take:
type: |-
{{command.targets}} is not an item!
use:
target: |-
You cannot use items on {{command.targets}}!
type: |-
{{command.targets}} is not a usable item!
item:
signal:
look:
held: |-
You are holding a {{item.meta.name}}: {{item.meta.desc}}.
seen: |-
You see a {{item.meta.name}}: {{item.meta.desc}}.
verb:
use:
self: |-
You have used {{item.meta.name}} on yourself!
portal:
signal:
look:
closed: |-
The {{portal.meta.name}} is closed.
dest:
missing: |-
There is nothing on the other side.
room: |-
You catch a glimpse of a {{room.meta.name}} through the {{portal.meta.name}}.
seen: |-
A {{portal.meta.name}} leads to the {{portal.group.source}}.
room:
signal:
look:
seen: |-
You are in a {{room.meta.name}}: {{room.meta.desc}}.
verbs:
world:
slog: slog
swing: swing
meta:
id: test
name:
base: test world
desc:
base: this is a test adventure
start:
actors:
- id: actor-bat
- id: actor-goblin
rooms:
- id: room-dungeon
- id: room-cave
templates:
actors:
- base:
meta:
id: actor-bat
name:
base: Bat
desc:
base: flying bat
flags: !map {}
items:
- id: item-bat-teeth
scripts: !map {}
slots: !map
weapon-mouth:
base: bat-teeth
stats: !map
health:
max: 50
min: 30
score:
max: 0
min: 0
stamina:
max: 5
min: 1
mods:
- chance: 50
excludes: []
id: vampire
base:
meta:
desc:
base: 'vampire {{base}}'
name:
base: 'Vampire {{base}}'
items: []
scripts: !map {}
slots: !map {}
stats: !map {}
- base:
meta:
id: actor-goblin
name:
base: Goblin
desc:
base: (slimy|smelly) goblin
flags: !map {}
items:
- id: item-sword
chance: 20
scripts: !map {}
slots: !map
weapon-hand-left:
base: sword
weapon-hand-right:
base: sword
stats: !map
health:
max: 20
min: 14
score:
max: 0
min: 0
stamina:
max: 5
min: 1
mods:
- chance: 50
excludes: []
id: sword
base:
meta:
desc:
base: '{{base}} with swords'
name:
base: 'Sword {{base}}'
items:
- id: item-sword
scripts: !map {}
slots: !map {}
stats: !map {}
items:
- base:
meta:
id: item-bat-teeth
name:
base: Bat Teeth
desc:
base: bat teeth
flags: !map {}
scripts: !map {}
slot:
base: weapon-mouth
stats: !map
damage:
min: 2
max: 5
- base:
meta:
id: item-sword
name:
base: Sword
desc:
base: short sword
flags: !map {}
scripts: !map {}
slot:
base: weapon-hand
stats: !map
damage:
min: 5
max: 10
mods:
- chance: 25
excludes:
- shiny
id: cracked
base:
meta:
desc:
base: '{{base}} with a large crack'
name:
base: 'Cracked {{base}}'
scripts: !map {}
slot:
base: '{{base}}'
stats: !map
damage:
min: -4
max: -2
- chance: 25
excludes:
- shiny
id: rusty
base:
meta:
desc:
base: 'rusting {{base}}'
name:
base: 'Rusty {{base}}'
scripts: !map {}
slot:
base: '{{base}}'
stats: !map
damage:
min: -5
max: -3
- chance: 25
excludes:
- cracked
- rusty
id: shiny
base:
meta:
desc:
base: 'shining {{base}}'
name:
base: 'Shiny {{base}}'
scripts: !map {}
slot:
base: '{{base}}'
stats: !map
damage:
min: 5
max: 5
portals:
- base:
meta:
desc:
base: ''
id: window-west
name:
base: window
dest:
base: (room-cave|room-cave|room-marsh)
flags: !map {}
group:
key:
base: window
source:
base: west
target:
base: east
scripts: !map {}
stats: !map {}
mods: []
- base:
meta:
desc:
base: ''
id: door-east
name:
base: door
dest:
base: (room-cave|room-cave|room-marsh)
flags: !map {}
group:
key:
base: door
source:
base: east
target:
base: west
scripts: !map {}
stats: !map
closed:
max: 1
min: 1
mods: []
- base:
meta:
desc:
base: ''
id: door-west
name:
base: door
dest:
base: (room-cave|room-marsh)
flags: !map {}
group:
key:
base: door
source:
base: west
target:
base: east
scripts: !map {}
stats: !map
closed:
max: 1
min: 1
mods: []
- base:
meta:
desc:
base: ''
id: window-east
name:
base: window
dest:
base: (room-dungeon|room-dungeon|room-cave|room-marsh)
flags: !map {}
group:
key:
base: window
source:
base: east
target:
base: west
scripts: !map {}
stats: !map {}
mods: []
- base:
meta:
desc:
base: ''
id: door-west-forward
name:
base: locked door
dest:
base: (room-cave|room-cave|room-marsh)
flags: !map {}
group:
key:
base: door
source:
base: west
target:
base: east
link:
base: forward
scripts: !map {}
stats: !map
closed:
max: 1
min: 1
locked:
max: 2
min: 0
mods: []
rooms:
- base:
meta:
id: room-dungeon
name:
base: Dungeon
desc:
base: damp dungeon
actors:
- id: actor-goblin
- id: actor-goblin
chance: 10
flags: !map {}
items: []
portals:
- id: window-west
- id: door-east
scripts: !map {}
- base:
meta:
id: room-cave
name:
base: Cave
desc:
base: clammy cave
actors:
- id: actor-bat
chance: 25
flags: !map {}
items:
- id: item-sword
chance: 50
portals:
- id: door-west
- id: window-east
scripts: !map {}
- base:
meta:
id: room-marsh
name:
base: Marsh
desc:
base: moist marsh
actors: []
flags: !map {}
items: []
portals:
- id: door-west-forward
chance: 50
- id: window-east
scripts: !map
verbs.common.move:
data: !map {}
name:
base: ''
verbs.world.slog:
data: !map {}
name:
base: verb-actor-move