-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworld.json
143 lines (140 loc) · 4.6 KB
/
world.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
{
"title": "Krypton",
"prompt": "What's next",
"instructions": ["Type [help] for a list of commands"],
"help": {
"quit": "Quit the game and lose all progress",
"look or look around": "describe current world zone",
"go [direction]": "Try to go through an exit in the specified direction",
"unlock [direction]": "Try to unlock a door in the direction specified. You must have the key to that door in your inventory.",
"check [bag, me]": "Check your inventory or check yourself (see hp, status effects, and inventory)",
"i": "Check inventory",
"attack [enemy]": "Attack the specified enemy",
"look at [item or character]": "Describes character or item in the current world zone",
"take [item]": "Take specified item in current zone",
"equip [item]": "Equip specified item",
"drop [item]": "Drops the specified item",
"use [item]": "Uses the specified item. Will not work on weapons"
},
"zones": {
"grand_entrance": {
"title": "Grand Entrance",
"description": "You're in an entry-way, there's a hallway to the north",
"start": true,
"game_over": false
},
"hallway": {
"title": "Hallway",
"description": "The hallway is long and there is a staircase at the end",
"start": false,
"game_over": false
},
"staircase": {
"title": "Staircase",
"description": "Looking up, you cannot see the top of the staircase. You only see darkness",
"start": false,
"game_over": false
},
"bottomless_pit": {
"title": "Elevator",
"description": "The door opens and you step out into empty air. As you fall, you reflect on why you tried taking the elevator in a two story house to begin with.",
"start": false,
"game_over": true
},
"up_stairs": {
"title": "Up the stairs",
"description": "After what feels like thirty or so more steps, you still cannot see the top. Looking back, you see that you're only 3 steps from the bottom.",
"start": false,
"game_over": false
}
},
"connectors": [
{
"to_id": "grand_entrance",
"from_id": "hallway",
"direction": "south"
},
{
"to_id": "hallway",
"from_id": "grand_entrance",
"direction": "north",
"key_id": "grand_entrance_key"
},
{
"to_id": "hallway",
"from_id": "staircase",
"direction": "south"
},
{
"to_id": "staircase",
"from_id": "hallway",
"direction": "north"
},
{
"to_id": "staircase",
"from_id": "up_stairs",
"direction": "south"
},
{
"to_id": "bottomless_pit",
"from_id": "hallway",
"direction": "west"
},
{
"to_id": "up_stairs",
"from_id": "staircase",
"direction": "north"
},
{
"to_id": "up_stairs",
"from_id": "up_stairs",
"direction": "north"
}
],
"items": [
{
"zone_id": "grand_entrance",
"name": "Healing Vial",
"description": "Heal a small amount",
"type": "potion",
"amount": 10,
"permanent": false
},
{
"zone_id": "grand_entrance",
"name": "Helmet",
"description": "It's a bucket",
"type": "armor",
"armor_rating": 10,
"body_part": "head"
},
{
"zone_id": "grand_entrance",
"name": "Shiv",
"description": "Sharpened Spoon",
"type": "weapon",
"min_damage": 15,
"max_damage": 25
},
{
"zone_id": "grand_entrance",
"name": "Hallway Key",
"description": "Key to the hallway door",
"type": "key",
"key_id": "grand_entrance_key"
}
],
"characters": [
{
"zone_id": "grand_entrance",
"name": "Goblin",
"description": "A small but ferocious goblin",
"max_hp": 20,
"hp": 20,
"base_attack": 5,
"message": "Ok, you can have my items just please let me live",
"inventory": {
}
}
]
}