-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1755874820.json
More file actions
138 lines (138 loc) · 4.25 KB
/
Copy path1755874820.json
File metadata and controls
138 lines (138 loc) · 4.25 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
{
"player_initial_stats": { "hp": 100, "max_hp": 100, "attack": 10, "defense": 5, "gold": 0, "exp": 0, "level": 1 },
"items": [
{
"id": "potion",
"name": "Potion",
"description": "Restores 50 HP.",
"type": "consumable",
"price": 10,
"effect": { "hp_restore": 50 }
},
{
"id": "sword",
"name": "Bronze Sword",
"description": "Attack +5.",
"type": "weapon",
"price": 50,
"effect": { "attack_boost": 5 }
}
],
"enemies": [
{ "id": "goblin", "name": "Goblin", "hp": 30, "attack": 8, "defense": 2, "reward_exp": 10, "reward_gold": 5 },
{ "id": "slime", "name": "Slime", "hp": 20, "attack": 5, "defense": 1, "reward_exp": 5, "reward_gold": 2 },
{
"id": "goblin_king",
"name": "Goblin King",
"hp": 100,
"attack": 20,
"defense": 10,
"reward_exp": 100,
"reward_gold": 50
}
],
"events": [
{
"id": "start_game",
"type": "message",
"message": "A new adventure has begun.",
"next_event": "forest_dungeon_initializer"
},
{
"id": "forest_dungeon_initializer",
"type": "dungeon_initializer",
"message": "Arrived at the entrance of a deep forest.",
"dungeon_id": "forest_dungeon",
"initial_distance": 3,
"boss_event_id": "battle_goblin_king",
"normal_enemies": ["goblin", "slime"],
"on_win_dungeon": "forest_cleared_message",
"on_lose_dungeon": "game_over",
"next_event": "forest_dungeon_explore_choice"
},
{
"id": "forest_dungeon_explore_choice",
"type": "choice",
"message": "Proceed deeper into the forest? Or turn back?",
"choices": [
{ "text": "Proceed deeper into the forest", "outcome": { "next_event": "dungeon_progress" } },
{ "text": "Take a step back", "outcome": { "next_event": "dungeon_retreat_logic" } }
]
},
{
"id": "dungeon_progress",
"type": "dungeon_progress",
"message": "Proceeded further into the depths."
},
{
"id": "dungeon_random_battle",
"type": "battle",
"message": "An enemy attacked!",
"enemy_id": "temp_placeholder",
"on_win": { "next_event": "forest_dungeon_explore_choice" },
"on_lose": { "next_event": "game_over" }
},
{
"id": "battle_goblin_king",
"type": "battle",
"enemy_id": "goblin_king",
"message": "The battle against the Goblin King has begun!",
"on_win": { "next_event": "forest_cleared_message" },
"on_lose": { "next_event": "game_over" }
},
{
"id": "forest_cleared_message",
"type": "message",
"message": "Defeated the Goblin King deep in the forest! Peace has returned to the forest.",
"next_event": "town_return"
},
{
"id": "town_return",
"type": "choice",
"message": "Returned to town. What will you do?",
"choices": [
{ "text": "Go to the forest", "outcome": { "next_event": "forest_dungeon_initializer" } },
{ "text": "Go to the shop", "outcome": { "next_event": "shop_entrance" } },
{ "text": "View status", "outcome": { "next_event": "view_status" } }
]
},
{ "id": "view_status", "type": "status", "message": "Current status:", "next_event": "town_return" },
{
"id": "game_over",
"type": "message",
"message": "You have fallen. Game Over.",
"next_event": "final_game_over_event"
},
{
"id": "final_game_over_event",
"type": "game_over_final_state"
},
{
"id": "dungeon_retreat_logic",
"type": "dungeon_retreat_logic",
"message": "Took a step back."
},
{
"id": "shop_entrance",
"type": "choice",
"message": "Welcome! What would you like?",
"choices": [
{ "text": "Potion", "item_id": "potion", "outcome": { "next_event": "buy_potion" } },
{ "text": "Bronze Sword", "item_id": "sword", "outcome": { "next_event": "buy_bronze_sword" } },
{ "text": "Cancel", "outcome": { "next_event": "town_return" } }
]
},
{
"id": "buy_potion",
"type": "shop_transaction",
"item_id": "potion",
"quantity": 1
},
{
"id": "buy_bronze_sword",
"type": "shop_transaction",
"item_id": "sword",
"quantity": 1
}
]
}