-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.json
271 lines (271 loc) · 7.05 KB
/
map.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
{
"start": {
"description": "You find yourself in a dark empty crypt. There is an eerie feel to this place, and you do not feel uncomfortable at all. You need to get home. There is a door to the east; it's unlocked.",
"directions": {
"east": "dragonCell"
},
"objects": [
{
"candle": {
"take": false,
"description": "The only light source is a small candle burning in the corner.",
"message": "It's almost out, and is stuck fast to the ground."
}
},
{
"bone": {
"take": true,
"description": "You see a pile of bones in front of you.",
"message": "You now have a bone."
}
},
{
"door": {
"take": false,
"message": "You can't take the door.",
"openObject": {
"canOpen": true,
"forOpen": [],
"onOpen": {
"message" : "The door opens revealing a path towards the east."
},
"alreadyOpen": {
"opened": false,
"message": "The door is already open."
}
}
}
}
]
},
"dragonCell": {
"description": "You see a staircase leading into the darkness in the north and a steel gate to the south.",
"directions": {
"west": "start",
"north": "dungeon",
"south": "weaponsRoom"
},
"objects": [
{
"dragon": {
"take": false,
"message": "You cannot be serious.",
"description": "There is a giant dragon that lay sleeping in front of it. It seems to be guarding a passage way headed east."
}
},
{
"gate": {
"take": false,
"message": "You can't take the gate.",
"openObject": {
"canOpen": true,
"forOpen": ["key"],
"onOpen": {
"directionAdd": {
"south": "weaponsRoom"
},
"message" : "The gate opens, you see daylight coming through from behind it."
},
"alreadyOpen": {
"opened": false,
"message": "The gate is already open."
}
}
}
}
],
"fighters": [
{
"dragon": {
"killable": true,
"altDescription": "You see the giant dragon you had slain with it's entrails strewn across the stone floor. There is a passage that leads you east.",
"mustUse": [
"sword",
"spear",
"staff"
],
"onKill": {
"directionAdd": {
"east": "portcullis"
},
"message": "The passage way leading to the east opens up."
},
"alreadyKilled": {
"killed": false,
"message": "The dragon is already dead. Why must you be such a brute?"
}
}
}
]
},
"portcullis": {
"description": "A portcullis is drawn up. You are standing just outside a sprawling castle with dark walls. To your south there is a fast flowing stream.",
"directions": {
"west": "dragonCell",
"south": "river"
},
"objects": [
{
"troll": {
"take": false,
"message": "How were you even planning on doing that? And more importantly, why?",
"description": "A troll is wandering in the garden outside. It swings it's massive club in the air every now and then."
}
}
],
"fighters": [
{
"troll": {
"killable": true,
"altDescription": "The troll lays dead on the grass. His tongue sticks out of his mouth making for an extremely unpleasant sight. You see a huge open space with a garden to the north.",
"mustUse": [
"spear",
"staff"
],
"onKill": {
"directionAdd": {
"north": "garden"
},
"message": "It seems you can now walk about in the garden freely."
},
"alreadyKilled": {
"killed": false,
"message": "The troll lay dead in front of you. How much more do you want to kill it?"
}
}
}
]
},
"dungeon": {
"description": "You enter a small dungeon where you see ancient runes scrawled across the walls.",
"directions": {
"south": "dragonCell"
},
"objects": [
{
"chest": {
"take": false,
"description": "You see a chest on the floor.",
"message": "The chest is too heavy to lift.",
"openObject": {
"canOpen": true,
"forOpen": [],
"onOpen": {
"objectAdd": {
"key": {
"take": true,
"description": "A single key lies inside the chest on a velvet cloth.",
"message": "You have a key. But you do not know what it opens."
}
},
"message": "You open the chest and find a key inside."
},
"alreadyOpen": {
"opened": false,
"message": "The chest is already open."
}
}
}
}
]
},
"garden": {
"description": "Wild flowers with exotic fragrances bloom about you and the light of day makes for a beautiful scene in the garden. Behind you, you see the castle. There is a gazebo up north.",
"directions": {
"south": "portcullis",
"north": "gazebo"
},
"objects": [
{
"flower": {
"take": true,
"message": "The sweet scent of the flower fills your senses."
}
}
]
},
"gazebo": {
"description": "You are at a gazebo. You see snow-festooned mountain peaks that extend and meet the horizon in the north. Below you there is nothing but the deepest valley you have ever seen.",
"directions": {
"south": "garden"
},
"objects": [
{
"torch": {
"take": true,
"message": "You pick up the torch and carefully hold on it.",
"description": "A flaming torch lies on the edge of the gazebo. The fire shines a peculiar bright red in the sunlight."
}
}
]
},
"weaponsRoom": {
"description": "You enter a room full of weapons. You see swords, knives, spears, staffs, and hammers displayed all around you. Large windows illuminate the room with the daylight outside.",
"directions": {
"north": "dragonCell"
},
"prerequisites": [
{
"key": {
"problem": "The gate is locked.",
"solution": "You unlock the gate and enter."
}
}
],
"objects": [
{
"window": {
"take": false,
"message": "Be serious."
}
},
{
"sword": {
"take": true,
"message": "Good choice. You now have a sword."
}
},
{
"spear": {
"take": true,
"message": "Great choice! You now have a spear."
}
},
{
"knife": {
"take": true,
"message": "You now have a knife."
}
},
{
"hammer": {
"take": true,
"message": "You now have a hammer."
}
},
{
"staff": {
"take": true,
"message": "Excellent choice. You now have a staff."
}
}
]
},
"river": {
"description": "You are at the river. It's flowing north. On the other side of the river in the east you see a deep, dark forest.",
"directions": {
"east": "end"
},
"prerequisites": [
{
"torch": {
"problem": "The stream says to you, 'It eats many things; it fears me but not the wind. But give me enough and I will subside momentarily.' You cannot get past the stream.",
"solution": "The water in the river bends and parts. You see how deep the river bed is without the water there."
}
}
]
},
"end": {
"description": "You cross the river and find yourself in a huge forest. It looks vaguely familiar. Suddenly a group of tribemen come out and greet you. Oddly enough, you understand their tongue, and they treat you as one of their own not feeling threatened by you at all. It hits you then; you have reached home."
}
}