-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy paththex_eocs.json
314 lines (314 loc) · 12.4 KB
/
thex_eocs.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
[
{
"id": "thex_everything_eoc",
"type": "effect_on_condition",
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [
{ "run_eocs": [ "daily_randomization_12_eoc" ] },
{ "run_eocs": [ "impurity_start_eoc" ] },
{ "run_eocs": [ "wind_blessing_eoc" ] }
]
},
{
"id": "daily_randomization_12_eoc",
"type": "effect_on_condition",
"effect": [ { "queue_eocs": [ "daily_randomization_24_eoc" ], "time_in_future": "12 h" } ],
"//0.H": "Queues once at 12:00 + 12 h = 00:00:00, then at 24 h, for use in custom events"
},
{
"id": "daily_randomization_24_eoc",
"type": "effect_on_condition",
"effect": [
{
"run_eocs": [
{
"id": "thex_event_night_parade_24_eoc",
"condition": { "x_in_y_chance": { "x": 1, "y": 11 } },
"effect": [ { "run_eocs": [ "thex_event_night_parade_queue_eoc" ] } ]
},
{
"id": "thex_event_silence_hour_24_eoc",
"condition": { "x_in_y_chance": { "x": 1, "y": 11 } },
"effect": [ { "run_eocs": [ "thex_event_silence_hour_queue_eoc" ] } ]
}
]
},
{ "queue_eocs": [ "daily_randomization_24_eoc" ], "time_in_future": "24 h" }
],
"//": "Re-rolls daily at 00:00:00, for use in custom events",
"//2": "tl;dr this checks the event's chance every day -> runs EVENT_queue (at event-specific queued time) -> runs EVENT_check (if event conditions are adequate) -> sets var_EVENT_active which is used at each weather_type -> runs EVENT_disable to reset related vars -> runs EVENT_cd to set a cooldown (if necessary, to prevent repeating the event the following day)",
"//3": "Some weather/events start past X days, for either lore reasons or due no reason",
"//4": "The EVENT_queue EOCs (and everything downstream of that) are at thex_weather_eocs.json ",
"//5": "Custom weather is handled automatically by the recurring thex_weather_and_event_check_eoc ",
"//WIP": "Confirm the daily_randomization_eoc won't break !!!"
},
{
"type": "effect_on_condition",
"id": "EOC_PORTAL_STORM_WARN_OR_CAUSE_RECURRING",
"recurrence": [ { "global_val": "ps_min_woc", "default": "5 days" }, { "global_val": "ps_max_woc", "default": "18 days" } ],
"global": true,
"condition": {
"and": [
{ "not": { "is_weather": "cloudy_scarlet" } },
{ "not": { "is_weather": "fog_scarlet" } },
{ "not": { "is_weather": "mist_scarlet" } },
{ "not": { "is_weather": "rain_blood" } },
{ "not": { "is_weather": "drizzle_carnian_1" } },
{ "not": { "is_weather": "drizzle_carnian_2" } },
{ "not": { "is_weather": "rain_carnian" } },
{ "not": { "is_weather": "rain_purifying" } },
{ "not": { "is_weather": "rainstorm_blood" } },
{ "not": { "is_weather": "rainstorm_carnian" } },
{ "not": { "is_weather": "thunder_blood" } },
{ "not": { "is_weather": "thunder_carnian" } },
{ "not": { "is_weather": "lightning_blood" } },
{ "not": { "is_weather": "lightning_carnian" } },
{ "not": { "is_weather": "night_parade" } },
{ "not": { "is_weather": "silence_hour" } }
]
},
"effect": { "run_eocs": "EOC_CAUSE_EARLY_PORTAL_STORM" },
"false_effect": [ { "queue_eocs": [ "EOC_CAUSE_EARLY_PORTAL_STORM_retry" ], "time_in_future": "6 h" } ],
"//": "This blocks portal storms if a custom weather is running",
"//2": "Otherwise, it runs the false_effect, which tries again 6 h later, and keeps queueing until it succeeds",
"//mod_interactions": "Some mainlined mods disable portal storms by default. This would've been handled by the mod_interactions folder, however I cannot make it work in 0.H"
},
{
"id": "EOC_CAUSE_EARLY_PORTAL_STORM_retry",
"type": "effect_on_condition",
"global": true,
"condition": {
"and": [
{ "not": { "is_weather": "cloudy_scarlet" } },
{ "not": { "is_weather": "fog_scarlet" } },
{ "not": { "is_weather": "mist_scarlet" } },
{ "not": { "is_weather": "rain_blood" } },
{ "not": { "is_weather": "drizzle_carnian_1" } },
{ "not": { "is_weather": "drizzle_carnian_2" } },
{ "not": { "is_weather": "rain_carnian" } },
{ "not": { "is_weather": "rain_purifying" } },
{ "not": { "is_weather": "rainstorm_blood" } },
{ "not": { "is_weather": "rainstorm_carnian" } },
{ "not": { "is_weather": "thunder_blood" } },
{ "not": { "is_weather": "thunder_carnian" } },
{ "not": { "is_weather": "lightning_blood" } },
{ "not": { "is_weather": "lightning_carnian" } },
{ "not": { "is_weather": "night_parade" } },
{ "not": { "is_weather": "silence_hour" } }
]
},
"effect": { "run_eocs": "EOC_CAUSE_EARLY_PORTAL_STORM" },
"false_effect": [ { "queue_eocs": [ "EOC_CAUSE_EARLY_PORTAL_STORM_retry" ], "time_in_future": "6 h" } ]
},
{
"id": "gevaudan_attacked_melee_eoc",
"type": "effect_on_condition",
"eoc_type": "EVENT",
"required_event": "character_melee_attacks_monster",
"condition": {
"and": [
{ "compare_string": [ "mon_gevaudan", { "context_val": "victim_type" } ] },
{ "math": [ "_hits", "!=", "0" ] }
]
},
"effect": [
{ "npc_location_variable": { "global_val": "var_gevaudan_loc" } },
{ "run_eoc_with": "gevaudan_attacked_check_eoc", "beta_loc": { "global_val": "var_gevaudan_loc" } }
],
"//note": "I don't know how to track the dmg mon_gevaudan receives with silver-based materials",
"//2": "This alternative instead prevents it from self-healing if damaged by a silver-based weapon",
"//3": "Probably keep still after I figure out",
"//WIP": "Do note that while the beta_talker is detected (because the run_eoc_with is true), the CHECK_eoc cannot be used with npc_cast_spell "
},
{
"id": "gevaudan_attacked_ranged_eoc",
"type": "effect_on_condition",
"eoc_type": "EVENT",
"required_event": "character_ranged_attacks_character",
"condition": { "compare_string": [ "mon_gevaudan", { "context_val": "victim_type" } ] },
"effect": [
{ "npc_location_variable": { "global_val": "var_gevaudan_loc" } },
{ "run_eoc_with": "gevaudan_attacked_check_eoc", "beta_loc": { "global_val": "var_gevaudan_loc" } }
]
},
{
"id": "gevaudan_attacked_check_eoc",
"type": "effect_on_condition",
"effect": [
{
"u_run_inv_eocs": "all",
"search_data": [ { "material": "silver", "wielded_only": true } ],
"true_eocs": [
{
"id": "gevaudan_attacked_silver",
"effect": [
{ "u_cast_spell": { "id": "gevaudan_attacked_silver_spell" }, "loc": { "global_val": "var_gevaudan_loc" } }
]
}
]
}
]
},
{
"id": "gevaudan_attacked_silver_spell",
"type": "SPELL",
"name": { "str": "" },
"description": "",
"spell_class": "NONE",
"valid_targets": [ "ally", "ground", "hostile" ],
"effect": "attack",
"effect_str": "gevaudan_noregen",
"shape": "blast",
"min_duration": 3100,
"max_duration": 3100,
"max_level": 1,
"difficulty": -50,
"message": "",
"flags": [ "NO_FAIL", "NO_HANDS", "NO_LEGS", "NO_PROJECTILE", "SILENT" ]
},
{
"id": "impurity_eoc",
"type": "effect_on_condition",
"recurrence": "20 m",
"effect": [
{
"run_eocs": [
{
"id": "impurity_extremelylow",
"condition": { "math": [ "u_vitamin('impurity')", "<", "0" ] },
"effect": [ { "math": [ "u_var_impurity", "=", "0" ] } ]
},
{
"id": "impurity_verylow",
"condition": {
"and": [
{ "math": [ "u_vitamin('impurity')", ">=", "1" ] },
{ "math": [ "u_vitamin('impurity')", "<=", "144" ] }
]
},
"effect": [ { "math": [ "u_var_impurity", "=", "1" ] } ]
},
{
"id": "impurity_low",
"condition": {
"and": [
{ "math": [ "u_vitamin('impurity')", ">=", "145" ] },
{ "math": [ "u_vitamin('impurity')", "<=", "504" ] }
]
},
"effect": [ { "math": [ "u_var_impurity", "=", "2" ] } ]
},
{
"id": "impurity_high",
"condition": { "math": [ "u_vitamin('impurity')", ">=", "505" ] },
"effect": [ { "math": [ "u_var_impurity", "=", "3" ] } ]
}
]
}
],
"//": "1 impurity every 20 min equals 72 impurity per day or 504 in 7 days, and that's not considering consuming Earthly stuff during that period of time",
"//2": "Boundaries for each impure tier: -48 - 0 h (extremely low), 0 - 48 h (verylow), 2 - 7 days (low), >7 days (high)",
"//3": "Impurity tiers are named: Pure, Slight impurity, Impure, Impure (2) ",
"//WIP": "Move this to be handled automatically by the vitamin system?"
},
{
"id": "impurity_kills_character_eoc",
"type": "effect_on_condition",
"eoc_type": "EVENT",
"required_event": "character_kills_character",
"effect": [ { "math": [ "u_vitamin('impurity')", "+=", "10" ] } ]
},
{
"id": "impurity_kills_monster_eoc",
"type": "effect_on_condition",
"eoc_type": "EVENT",
"required_event": "character_kills_monster",
"effect": [ { "math": [ "u_vitamin('impurity')", "+=", "1" ] } ]
},
{
"id": "impurity_start_eoc",
"type": "effect_on_condition",
"effect": [
{
"run_eocs": [
{
"id": "impurity_earth_eoc",
"condition": {
"or": [
{ "u_has_trait": "YOUKAI_SPECIES" },
{ "u_has_trait": "HOURAI_SPECIES" },
{ "u_has_trait": "MENREIKI_SPECIES" },
{ "u_has_trait": "VAMPIRE_SPECIES" },
{
"and": [
{ "u_has_trait": "HUMAN_SPECIES" },
{ "not": { "u_has_trait": "HALF_PHANTOM_SPECIES" } }
]
},
{ "u_has_trait": "WICKED_HERMIT" }
]
},
"effect": [ { "math": [ "u_vitamin('impurity')", "=", "999" ] } ]
},
{
"id": "impurity_heaven_eoc",
"condition": {
"or": [
{ "u_has_trait": "OARFISH_SPECIES" },
{ "u_has_trait": "HERMIT_SPECIES" },
{ "u_has_trait": "CELESTIAL_SPECIES" }
]
},
"effect": [ { "math": [ "u_vitamin('impurity')", "=", "1" ] } ]
},
{
"id": "impurity_moon_eoc",
"condition": {
"or": [
{ "u_has_trait": "GYOKUTO_SPECIES" }
]
},
"effect": [ { "math": [ "u_vitamin('impurity')", "=", "-144" ] } ]
}
]
}
],
"//": "Seems impurity_eoc is run before this, regardless if this is placed after, which could cause minor problems in the future",
"//2": "That makes it so the impurity effects are updated ~15 min after the start of the game"
},
{
"id": "kill_drops_eoc",
"type": "effect_on_condition",
"eoc_type": "EVENT",
"required_event": "character_kills_monster",
"condition": {
"and": [
{
"or": [
{ "npc_has_species": "GHOST_TOUHOU" },
{ "npc_has_species": "JIANGSHI_TOUHOU" },
{ "npc_has_species": "ONI_TOUHOU" },
{ "npc_has_species": "PHANTOM_TOUHOU" },
{ "npc_has_species": "TSUKUMOGAMI_TOUHOU" },
{ "npc_has_species": "YOUKAI_BEAST_TOUHOU" },
{ "npc_has_species": "YOUKAI_FEMALE_TOUHOU" },
{ "npc_has_species": "YOUKAI_HOSTILE_TOUHOU" },
{ "npc_has_species": "YOUKAI_NEUTRAL_TOUHOU" },
{ "npc_has_species": "YOUKAI_PSEUDO_TOUHOU" },
{ "npc_has_species": "YOUKAI_SKINWALKER_TOUHOU" },
{ "npc_has_species": "FAIRY_TOUHOU" },
{ "npc_has_species": "SASQUATCH_TOUHOU" },
{ "npc_has_species": "VAMPIRE_TOUHOU" }
]
},
{ "not": { "npc_has_species": "SUMMONED_TOUHOU" } },
{ "x_in_y_chance": { "x": 4, "y": 100 } }
]
},
"effect": [
{ "npc_location_variable": { "global_val": "var_kill_drops_loc" } },
{ "map_spawn_item": "thex_drops_placeholder", "loc": { "context_val": "var_kill_drops_loc" }, "use_item_group": true },
{ "message": "<color_light_cyan>!</color>" }
]
}
]