-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json
More file actions
129 lines (118 loc) · 3.48 KB
/
rules.json
File metadata and controls
129 lines (118 loc) · 3.48 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
{
"SFW": true,
"MAX_PARAGRAPHS": 2,
"INVENTORY_LIMIT": 6,
"PROLOGUE": "In a fading kingdom on the brink of drought and unrest, the royal Crown has been stolen. Without it, the land’s last protective magic is dying. You are the one summoned by the village elder to cross the ruins, face what lurks in the dark, and bring the Crown home.",
"COMMANDS": [
"look",
"move <direction>",
"take <item>",
"search",
"use <item> on <target>",
"talk",
"talk <npc>",
"attack",
"defend",
"flee",
"inventory",
"help",
"save",
"load",
"quit"
],
"LOCATION_DESCRIPTIONS": {
"Village Square": "You stand in the Village Square beside a dry well and shuttered stalls. The elder watches with urgent eyes.",
"Dark Forest": "You are in the Dark Forest. Gnarled trees blot the light and a damp chill clings to the air.",
"Ruins Entrance": "Broken pillars flank a shadowed arch. One base looks disturbed, as if something was pried loose there.",
"Ancient Gate": "A towering gate inscribed with faint runes bars the path. Power hums in the stone.",
"Crown Chamber": "A vast vault yawns ahead. On a dais rests the Crown, glinting in pale light."
},
"MAP": {
"Village Square": {
"north": "Ruins Entrance",
"east": "Dark Forest"
},
"Dark Forest": {
"west": "Village Square",
"north": "Ruins Entrance"
},
"Ruins Entrance": {
"south": "Village Square",
"west": "Dark Forest",
"north": "Ancient Gate"
},
"Ancient Gate": {
"south": "Ruins Entrance",
"north": "Crown Chamber"
},
"Crown Chamber": {
"south": "Ancient Gate"
}
},
"LOCKS": {
"Ancient Gate": "have_key_a1",
"Crown Chamber": "have_gate_opened"
},
"QUEST": {
"name": "Find the Crown",
"goal_flag": "crown_recovered",
"intro": "The village elder begs you to recover the stolen Crown from the ruins beyond the Ancient Gate and return it safely."
},
"END_CONDITIONS": {
"WIN_ALL_FLAGS": ["crown_recovered", "returned_to_village"],
"LOSE_ANY_FLAGS": ["hp_zero"],
"MAX_TURNS": 50
},
"START": {
"location": "Village Square",
"inventory": ["rusty_sword"],
"flags": {
"met_elder": true
},
"hp": 12
},
"ENEMIES": {
"wolf": {
"name": "Wolf",
"hp": 7,
"atk_min": 1,
"atk_max": 2,
"flee_player_chance": 0.7,
"on_defeat_flag": "wolf_defeated",
"on_defeat_loot": []
},
"bandit": {
"name": "Bandit",
"hp": 9,
"atk_min": 1,
"atk_max": 3,
"flee_player_chance": 0.55,
"on_defeat_flag": "bandit_defeated",
"on_defeat_loot": ["key_a1"]
},
"skeletal_guard": {
"name": "Skeletal Guard",
"hp": 10,
"atk_min": 2,
"atk_max": 3,
"flee_player_chance": 0.45,
"on_defeat_flag": "guard_cleared",
"on_defeat_loot": ["bone_charm"]
}
},
"ENCOUNTERS": {
"Dark Forest": [
{ "id": "wolf", "chance": 0.40,
"intro": "A starving wolf slinks from the brush, teeth bared.",
"hint": "You are in combat: attack | defend | flee" },
{ "id": "bandit", "chance": 0.60,
"intro": "A bandit leaps from behind a tree, dagger flashing.",
"hint": "You are in combat: attack | defend | flee" }
],
"Ruins Entrance": [
{ "id": "skeletal_guard", "chance": 0.20,
"intro": "Bones knit themselves into a skeletal guard, eyes burning cold.",
"hint": "You are in combat: attack | defend | flee" }
]
}
}