-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcat.json
executable file
·947 lines (945 loc) · 26.8 KB
/
cat.json
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
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
{
"rooms": [
{
"name": "template",
"examine": "",
"desc": "",
"actors": [
{
"name": "",
"desc": "",
"examine": "",
"dialogues": [
{
"topic": "nothing",
"text": "",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
]
}
]
}
],
"items": [
{
"name":"template",
"examine": "",
"invDesc": "",
"desc": "",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"pickupKey": "",
"events": [
{
"text": "",
"type": "onUse",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
},
{
"text": "",
"type": "onExamine",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
},
{
"text": "",
"type": "onPickup",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
},
{
"text": "",
"type": "onDrop",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
}
]
}
],
"backgrounds": [
{
"name":"template",
"examine": "",
"invDesc": "",
"desc": "",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"pickupKey": ""
}
],
"events": [
{
"text": "",
"type": "onEnter",
"whitelist": [
""
],
"blacklist": [
""
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
}
],
"links": [
{
"roomName": "template",
"direction": "up"
}
]
},
{
"name": "outside gate",
"desc": "The gate stands short behind you. Its not that big a gate.",
"links": [
{
"roomName": "North Gate",
"direction": "south"
}
],
"items": [
{
"name":"Babushka's cat",
"examine": "an orange cat. its just sitting there, now is your chance, grab it!",
"invDesc": "an orange cat. it occasionally struggles to try to free itself as you carry it, but quickly gives up",
"desc": "a quiet orange cat.",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": true,
"pickupKey": "catQuest-get-cat",
"hidden": true
},
{
"name":"Stick",
"examine": "An ordinary stick, perhaps you could fashion some sort of cat toy out of this? it might be better suited for a dog toy though.",
"invDesc": "A stick. Its brown and like a stick",
"desc": "A stick lying on the ground",
"pickupable": true,
"pickupKey": "got-stick"
}
],
"backgrounds": [
{
"name":"bush",
"examine": "Its a thick bush, you might be able to fit into it",
"desc": "A great green bush, wrapping its way around the town walls. Who takes care of it?",
"weight": 0,
"smell": "",
"taste": "",
"events": [
{
"text": "An orange cat jumps out in front of you",
"type": "onExamine",
"whitelist": [
"catQuest"
],
"blacklist": [
"catQuest-cat-found"
],
"key": [
"catQuest-cat-found"
],
"unkey": [
""
],
"show": [
{
"name": "Babushka's cat",
"class": "item"
}
]
}
]
}
],
"events": [
{
"text": "you hide behind a tree. nothing happens.",
"type": "hide"
},
{
"text": "you place the bait on the ground, now you just need to wait",
"type": "hide",
"blacklist": ["cat-bait"],
"whitelistRoom": ["cat-bait"]
}
]
},
{
"name": "North Gate",
"examine": "The north gate of town stands tall in front of you. It isn't actually that tall, about 3 meters, but its also not that big of a town",
"desc": "",
"actors": [
{
"name": "Guard",
"desc": "A sleepy guard",
"examine": "They sleep a light sleep that sleeps light",
"dialogues": [
{
"topic": "Cat",
"text": "I have seen many cats come and go through this gate dude, you gotta be a little bit more specific",
"whitelist": [
"catQuest"
],
"blacklist": [
"catQuest-clue-orange"
],
"key": [],
"unkey": []
},
{
"topic": "Orange cat",
"text": "You know, I think I do remember seeing someone chasing around an orange cat. Some creepy old dude, wore a red cloak. you should ask the bartender down at tavern, he seems to know just about everyone in this town",
"whitelist": [
"catQuest-clue-orange"
],
"blacklist": [],
"key": ["catQuest-clue-shadyDude"],
"unkey": []
}
]
}
],
"items": [
{
"name":"Guard's keys",
"examine": "The keys of the guard. Perhaps its best to leave them alone",
"invDesc": "Guards keys, I wonder what they unlock",
"desc": "keys hanging off the belt of the guard",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"pickupKey": "guard-keys"
}
],
"links": [
{
"roomName": "outside gate",
"direction": "north"
},
{
"roomName": "fountain",
"direction": "south"
}
]
},
{
"name": "fountain",
"examine": "",
"desc": "The fountain stands before you. You feel it somehow demonstrates the power of man over nature.",
"startLocation": true,
"actors": [
{
"name": "",
"desc": "",
"examine": "",
"dialogues": [
{
"topic": "nothing",
"text": "",
"whitelist": [],
"blacklist": [],
"key": [],
"unkey": []
}
]
}
],
"items": [
{
"name": "p",
"pickupKey": "generic-object",
"pickupable": true,
"hidden": true
}
],
"backgrounds": [
{
"name":"Fountain",
"examine": "A large fountain that stands in the center of the town. ",
"desc": "It pours water all over itself. How presumptuous",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"events": [
{
"text": "You turned the fountain off. Quick, turn it back on before someone notices",
"type": "onUse",
"whitelist": [
""
],
"blacklist": [
"fountain-off"
],
"key": [
"fountain-off"
],
"unkey": [
"fountain-on"
]
},
{
"text": "You turned the fountain on. Thank goodness no one noticed. Lets not do that again...",
"type": "onUse",
"whitelist": [
"fountain-off"
],
"blacklist": [
"fountain-on"
],
"key": [
"fountain-on"
],
"unkey": [
"fountain-off"
]
}
]
}
],
"events": [
{
"text": "You awaken in front of a fountain. You remember that you need to find a cat for an old lady.",
"type": "onEnter",
"whitelist": [],
"blacklist": [
"fountain-start"
],
"key": [
"fountain-start"
],
"unkey": [],
"show": [
{
"name": "",
"class": ""
}
]
}
],
"links": [
{
"roomName": "North Gate",
"direction": "north"
},
{
"roomName": "Market",
"direction": "south"
},
{
"roomName": "Guild Hall",
"direction": "west"
},
{
"roomName": "Babushka's House",
"direction": "east"
}
]
},
{
"name": "Guild Hall",
"examine": "",
"desc": "The Guild Hall stands tall before you. One of the few buildings in town made purely from stone, looks like these guys are pretty rich",
"actors": [
{
"name": "Bron",
"desc": "Its the guild master. He masters the guild.",
"examine": "",
"dialogues": [
{
"topic": "old lady",
"text": "You looking for the old lady? Her house is two blocks east of here",
"whitelist": [],
"blacklist": [],
"key": [],
"unkey": []
},
{
"topic": "cat location",
"text": "I heard of a merchant hanging around the market that deals with cats and cat based things. Perhaps they may be able to assist.",
"whitelist": ["catQuest"],
"blacklist": [],
"key": ["catQuest-merchant"],
"unkey": []
}
]
}
],
"events": [
{
"text": "You see an orange cat run into a nearby alley. Is that the cat you are looking for?",
"type": "onEnter",
"whitelist": ["bored", "catQuest"],
"blacklist": ["cat-alley-once"],
"key": ["cat-alley-once"],
"unkey": [],
"show": [
{
"name": "alley",
"class": "link"
}
]
}
],
"links": [
{
"roomName": "fountain",
"direction": "east"
},
{
"roomName": "tavern",
"direction": "west"
},
{
"roomName": "alley",
"direction": "south",
"hidden": true
}
]
},
{
"name": "tavern",
"examine": "",
"desc": "",
"links": [
{
"roomName": "Guild Hall",
"direction": "east"
},
{
"roomName": "tavern interior",
"direction": "tavern interior"
}
]
},
{
"name": "tavern interior",
"examine": "",
"desc": "A large tavern. several travelers and locals sit around merrily drinking and chatting.",
"actors": [
{
"name": "Bartender",
"desc": "A gruff dude",
"examine": "A large imposing man, likely acts as security for the tavern, as well as serving drinks.",
"dialogues": [
{
"topic": "drink",
"text": "I'll charge it to your guild account, don't worry I know who you are \nHe slides you a beer that he seemed to already have prepared.",
"whitelist": [],
"blacklist": ["tavern-beer"],
"key": ["tavern-beer"],
"unkey": []
},
{
"topic": "spooky dude",
"text": "You mean that guy over there?",
"whitelist": [],
"blacklist": [],
"key": ["spooky-dude"],
"unkey": []
}
]
},
{
"name": "spooky dude",
"desc": "A dude sitting in the corner, almost invisible",
"examine": "A truly spooky dude.",
"hidden": true,
"dialogues": [
{
"topic": "cat",
"text": "Why you asking me bud? Why do you think that I would know about some old lady's cat?",
"whitelist": ["catQuest"],
"blacklist": ["spooky-dude-cat","catQuest-get-cat"],
"key": ["spooky-dude-cat"],
"unkey": []
},
{
"topic": "old lady cat",
"text": "You: I didn't say anything about the cat belonging to an old lady. \n SpookyDude: Yeah fine I do know something about her cat. Why, what do you want with the cat?",
"whitelist": ["spooky-dude-cat"],
"blacklist": ["spooky-dude-cat-unlocked"],
"key": ["spooky-dude-cat-unlocked"],
"unkey": []
},
{
"topic": "old lady asked for help",
"text": "I yeah well I think I saw it run out the gate",
"whitelist": ["spooky-dude-cat-unlocked"],
"blacklist": ["spooky-dude-cat-success","spooky-dude-cat-failed"],
"key": ["spooky-dude-cat-failed"],
"unkey": []
},
{
"topic": "trying to get a reward",
"text": "Ah, you are after the same thing I am. Well, perhaps we can both gain something here.",
"whitelist": ["spooky-dude-cat-unlocked"],
"blacklist": ["spooky-dude-cat-success","spooky-dude-cat-failed"],
"key": ["spooky-dude-cat-success"],
"unkey": []
},
{
"topic": "cat location",
"text": "I can take you to where I last saw it, but you gotta promise me some of your reward money. How does a 20-80 split sound, you get the 80.",
"whitelist": ["spooky-dude-cat-success"],
"blacklist": ["spooky-dude-cat-unlocked-location"],
"key": ["spooky-dude-cat-unlocked-location"],
"unkey": []
},
{
"topic": "agree",
"text": "Alright, follow me to the north gate then",
"whitelist": ["spooky-dude-cat-unlocked-location"],
"blacklist": ["spooky-dude-leaves-good"],
"key": ["spooky-dude-leaves-good"],
"unkey": [],
"hide": [
{
"name": "spooky dude",
"class": "actor"
}
]
},
{
"topic": "think about it",
"text": "Alright, well come back to me when you need my help",
"whitelist": ["spooky-dude-cat-unlocked-location"],
"blacklist": ["spooky-dude-leaves-good"],
"key": [],
"unkey": []
}
]
}
],
"events": [
{
"text": "The bartender takes a quick glance at you and continues polishing some glasses. \nBartender: You want a drink or what bud?",
"type": "onEnter",
"whitelist": [],
"blacklist": ["tavern-beer"],
"key": [],
"unkey": []
},
{
"text": "",
"type": "active",
"whitelist": ["beer"],
"blacklist": ["tavern-beer-visible"],
"key": ["tavern-beer-visible"],
"unkey": [],
"show": [
{
"name": "beer",
"class": "item"
}
]
},
{
"text": "You notice that there is in fact a spooky dude sitting in the corner.",
"type": "active",
"whitelist": ["spooky-dude"],
"blacklist": ["spooky-dude-visible"],
"key": ["spooky-dude-visible"],
"unkey": [],
"show": [
{
"name": "spooky dude",
"class": "actor"
}
]
}
],
"items": [
{
"name":"beer",
"examine": "A beer, its for you",
"invDesc": "",
"desc": "",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": true,
"hidden": "",
"pickupKey": ""
}
],
"links": [
{
"roomName": "tavern",
"direction": "outside"
}
]
},
{
"name": "Babushka's House",
"examine": "",
"desc": "A quaint house at the side of town.",
"actors": [
{
"name": "Babushka",
"desc": "An old lady that is known around town for making some absolutely great apple pies.",
"examine": "An old lady stands before you idly sweeping her front porch. Her walking stick is resting next to the door frame",
"dialogues": [
{
"topic": "cat",
"text": "So you are the fine person sent to help find my cat. Thank you for all your help, she has been missing for a couple days now and I am starting to get worried. I hope nothing has happened to her",
"whitelist": [],
"blacklist": [],
"key": [
"catQuest"
]
},
{
"topic": "description",
"text": "I cannot say that I am certain, Its been years since I was able to get a good look at her, but I believe she is an orange color. She is also quite tubby, I do try to keep her well fed.",
"whitelist": [
"catQuest"
],
"blacklist": [],
"key": ["catQuest-clue-orange"]
}
]
}
],
"backgrounds": [
{
"name":"walking stick",
"invDesc": "",
"desc": "",
"examine": "A walking stick used to help identify objects in front of a person",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"pickupKey": ""
}
],
"events": [
{
"text": "An old lady turns her head to face you as you enter. \nOh hello, are you new in this town, I don't quite recognize your footsteps",
"type": "onEnter",
"blacklist": ["catQuest-babushka-intro"],
"key": ["catQuest-babushka-intro"]
}
],
"links": [
{
"roomName": "fountain",
"direction": "west"
}
]
},
{
"name": "alley",
"examine": "",
"desc": "A dark dirty alley probably used for drug trades and what not... or just storing trash bins.",
"items": [
{
"name":"cat",
"examine": "an orange cat. its just sitting there, now is your chance, grab it!",
"invDesc": "the cat occasionally struggles to free itself as you carry it",
"desc": "",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": true,
"pickupKey": "catQuest-get-cat"
}
],
"backgrounds": [
{
"name":"trash-can",
"examine": "Its full of trash.",
"invDesc": "",
"desc": "a convenient means of storing trash",
"weight": 0,
"smell": "",
"taste": "",
"pickupable": false,
"pickupKey": ""
}
],
"events": [
{
"text": "A friendly orange cat saunters towards you.",
"type": "onEnter",
"whitelist": [
""
],
"blacklist": [
"cat-saunter-first",
"cat-left-alley",
"catQuest-get-cat"
],
"key": [
"cat-saunter-first",
"catQuest-cat-found"
],
"unkey": [
""
]
},
{
"text": "The friendly orange cat continues to follow you.",
"type": "active",
"whitelist": [
"cat-saunter-first"
],
"blacklist": [
"catQuest-get-cat",
"cat-left-alley"
],
"key": [
""
],
"unkey": [
""
],
"show": [
{
"name": "",
"class": ""
}
]
},
{
"type": "onLeave",
"whitelist": [
""
],
"blacklist": [
"catQuest-get-cat",
"cat-left-alley"
],
"key": [
"cat-left-alley"
],
"unkey": [
"catQuest-cat-found"
],
"hide": [
{
"name": "cat",
"class": "item"
}
]
}
],
"links": [
{
"roomName": "Market",
"direction": "east"
},
{
"roomName": "Guild Hall",
"direction": "north"
}
]
},
{
"name": "Market",
"examine": "",
"desc": "A bustling market in the middle of the town.",
"actors": [
{
"name": "Cat peddler",
"desc": "This guy is covered in cats and cat related objects.",
"examine": "The stench of cat penetrates your nostrils as you look in his direction. It emanates from the fellow like an aura, but of cats. He is covered in cat merchandise but what is more interesting is the swarm of cats that seem to be swarming around him as he walks, as if they are his personal guards. Might be all the catnip on his person.",
"hidden": true,
"dialogues": [
{
"topic": "cats?",
"text": "Why yes I have many cats for sale, and even more cat based products. Cat cookies, cat snacks, cat chew toys (yes cats want chew toys too), and the all important cat drugs.\nRest assured that none of my cat products actually contain whole or parts of cats, except for the cats themselves.",
"whitelist": [],
"blacklist": [],
"key": [],
"unkey": []
},
{
"topic": "Babushka's cat missing",
"text": "Oh I do not deal with the dealings of other people's cats, unless they deal with me. I will keep a look out for it, I do have many cats around me. What does it look like?",
"whitelist": ["catQuest"],
"blacklist": ["catQuest-merchant-question"],
"key": ["catQuest-merchant-question"],
"unkey": []
},
{
"topic": "orange cat",
"text": "I have a couple of those around\nHe grabs a handful of cats and shows them to you. They do not look like babushka's cat",
"whitelist": ["catQuest","catQuest-merchant-question"],
"blacklist": [],
"key": [],
"unkey": []
},
{
"topic": "Wares",
"text": "What do you need? I got catnip for 20 gold, cat toys for 10, and of course cats. the price of the cats depends on on the cat of course",
"whitelist": ["catQuest"],
"blacklist": [],
"key": ["catQuest-merchant-wares"],
"unkey": []
},
{
"topic": "buy catnip",
"text": "One single bag of delicious catnip coming up",
"whitelist": ["catQuest-merchant-wares"],
"blacklist": [],
"key": [],
"unkey": [],
"show": [
{
"name": "catnip",
"class": "item"
}
],
"cost": 20
}
]
}
],
"items": [
{
"name": "catnip",
"desc": "its a bag of catnip, purchased from the smelly cat merchant"
}
],
"events": [
{
"text": "You spot The cat merchant that Bron told you about. He is an interesting fellow, covered in all sorts of cat merchandise like toys and clay jars labeled catnip. cats swarm around and on him as if they want to consume him, but are just waiting for the right moment. the rest of this passage is used to test line wrapping and proper tabbing. these should not be tabbed over, but should match the line length shown below.",
"type": "onEnter",
"whitelist": ["catQuest-merchant"],
"blacklist": ["catQuest-merchant-appear"],
"key": ["catQuest-merchant-appear"],
"show": [
{
"name": "Cat peddler",
"class": "actor"
}
]
}
],
"links": [
{
"roomName": "fountain",
"direction": "north"
},
{
"roomName": "South Gate",
"direction": "south"
},
{
"roomName": "alley",
"direction": "west",
"hidden": true
}
]
},
{
"name": "South Gate",
"examine": "",
"desc": "The south gate. permanently closed for security. you wonder why they even have a gate here if it is never open",
"links": [
{
"roomName": "Market",
"direction": "north"
}
]
}
],
"startingKeys":[
"alive"
],
"initialGold": 10,
"weights": [0,0,1,0]
}