1 |
function scr_battle_core_directory_action_1_selected_eventscr_battle_core_directory_action_1_selected_eventfunction scr_battle_core_directory_action_1_selected_event() //gml_Script_scr_battle_core_directory_action_1_selected_event
{
var event_check = false
if (game_mode == "customs")
{
if (battle_enemy_name == "craniex")
{
if (global.action_1_selected_count == 6)
script_execute(scr_craniex_sparing)
else
{
global.action_1_selected_count += 1
global.action_2_selected_count = 0
global.action_3_selected_count = 0
global.enemy_sparing = false
global.enemy_attacking = true
instance_destroy()
return;
}
}
else if (battle_enemy_name == "ms mettaton")
{
if (global.turns_passed == 4)
{
global.important_cutscene = true
instance_destroy()
return;
}
else
{
global.enemy_sparing = false
global.enemy_attacking = true
instance_destroy()
return;
}
}
}
else if (game_mode == "yellow")
{
if (battle_enemy_name == "froggit intro")
{
global.important_cutscene = true
instance_destroy()
return;
}
else if (battle_enemy_name == "flier a")
{
if (global.action_1_selected_count < 1)
global.action_1_selected_count += 1
global.action_2_selected_count = 0
global.action_3_selected_count = 0
if (global.action_1_selected_count == 1)
global.enemy_sparing = true
global.enemy_attacking = true
instance_destroy()
return;
}
else if (battle_enemy_name == "flier b")
{
if (global.action_1_selected_count_2 < 1)
global.action_1_selected_count_2 += 1
global.action_2_selected_count_2 = 0
global.action_3_selected_count_2 = 0
if (global.action_1_selected_count_2 == 1)
global.enemy_sparing_2 = true
global.enemy_attacking = true
instance_destroy()
return;
}
else if (battle_enemy_name == "flier c")
{
if (global.action_1_selected_count_3 < 1)
global.action_1_selected_count_3 += 1
global.action_2_selected_count_3 = 0
global.action_3_selected_count_3 = 0
if (global.action_1_selected_count_3 == 1)
global.enemy_sparing_3 = true
global.enemy_attacking = true
instance_destroy()
return;
}
else if (battle_enemy_name == "penilla a")
{
if (global.action_1_selected_count < 1)
global.action_1_selected_count += 1
global.action_2_selected_count = 0
global.enemy_attacking = true
instance_destroy()
return;
}
else if (battle_enemy_name == "penilla b")
{
if (global.action_1_selected_count_2 < 1)
global.action_1_selected_count_2 += 1
global.action_2_selected_count_2 = 0
global.enemy_attacking = true
instance_destroy()
return;
}
else if (battle_enemy_name == "sweet corn a")
{
... () //gml_Script_scr_battle_core_directory_action_1_selected_event |
2 |
{ |
3 |
var event_check = false |
4 |
if (game_mode == "customs") |
5 |
{ |
6 |
if (battle_enemy_name == "craniex") |
7 |
{ |
8 |
if (global.action_1_selected_count == 6) |
9 |
script_execute(scr_craniex_sparing) |
10 |
else |
11 |
{ |
12 |
global.action_1_selected_count += 1 |
13 |
global.action_2_selected_count = 0 |
14 |
global.action_3_selected_count = 0 |
15 |
global.enemy_sparing = false |
16 |
global.enemy_attacking = true |
17 |
instance_destroy() |
18 |
return; |
19 |
} |
20 |
} |
21 |
else if (battle_enemy_name == "ms mettaton") |
22 |
{ |
23 |
if (global.turns_passed == 4) |
24 |
{ |
25 |
global.important_cutscene = true |
26 |
instance_destroy() |
27 |
return; |
28 |
} |
29 |
else |
30 |
{ |
31 |
global.enemy_sparing = false |
32 |
global.enemy_attacking = true |
33 |
instance_destroy() |
34 |
return; |
35 |
} |
36 |
} |
37 |
} |
38 |
else if (game_mode == "yellow") |
39 |
{ |
40 |
if (battle_enemy_name == "froggit intro") |
41 |
{ |
42 |
global.important_cutscene = true |
43 |
instance_destroy() |
44 |
return; |
45 |
} |
46 |
else if (battle_enemy_name == "flier a") |
47 |
{ |
48 |
if (global.action_1_selected_count < 1) |
49 |
global.action_1_selected_count += 1 |
50 |
global.action_2_selected_count = 0 |
51 |
global.action_3_selected_count = 0 |
52 |
if (global.action_1_selected_count == 1) |
53 |
global.enemy_sparing = true |
54 |
global.enemy_attacking = true |
55 |
instance_destroy() |
56 |
return; |
57 |
} |
58 |
else if (battle_enemy_name == "flier b") |
59 |
{ |
60 |
if (global.action_1_selected_count_2 < 1) |
61 |
global.action_1_selected_count_2 += 1 |
62 |
global.action_2_selected_count_2 = 0 |
63 |
global.action_3_selected_count_2 = 0 |
64 |
if (global.action_1_selected_count_2 == 1) |
65 |
global.enemy_sparing_2 = true |
66 |
global.enemy_attacking = true |
67 |
instance_destroy() |
68 |
return; |
69 |
} |
70 |
else if (battle_enemy_name == "flier c") |
71 |
{ |
72 |
if (global.action_1_selected_count_3 < 1) |
73 |
global.action_1_selected_count_3 += 1 |
74 |
global.action_2_selected_count_3 = 0 |
75 |
global.action_3_selected_count_3 = 0 |
76 |
if (global.action_1_selected_count_3 == 1) |
77 |
global.enemy_sparing_3 = true |
78 |
global.enemy_attacking = true |
79 |
instance_destroy() |
80 |
return; |
81 |
} |
82 |
else if (battle_enemy_name == "penilla a") |
83 |
{ |
84 |
if (global.action_1_selected_count < 1) |
85 |
global.action_1_selected_count += 1 |
86 |
global.action_2_selected_count = 0 |
87 |
global.enemy_attacking = true |
88 |
instance_destroy() |
89 |
return; |
90 |
} |
91 |
else if (battle_enemy_name == "penilla b") |
92 |
{ |
93 |
if (global.action_1_selected_count_2 < 1) |
94 |
global.action_1_selected_count_2 += 1 |
95 |
global.action_2_selected_count_2 = 0 |
96 |
global.enemy_attacking = true |
97 |
instance_destroy() |
98 |
return; |
99 |
} |
100 |
else if (battle_enemy_name == "sweet corn a") |
101 |
{ |
102 |
if (global.action_1_selected_count < 3) |
103 |
global.action_1_selected_count += 1 |
104 |
global.action_2_selected_count = 0 |
105 |
global.action_3_selected_count = 0 |
106 |
global.enemy_attacking = true |
107 |
instance_destroy() |
108 |
return; |
109 |
} |
110 |
else if (battle_enemy_name == "sweet corn b") |
111 |
{ |
112 |
if (global.action_1_selected_count_2 < 3) |
113 |
global.action_1_selected_count_2 += 1 |
114 |
global.action_2_selected_count_2 = 0 |
115 |
global.action_3_selected_count_2 = 0 |
116 |
global.enemy_attacking = true |
117 |
instance_destroy() |
118 |
return; |
119 |
} |
120 |
else if (battle_enemy_name == "crispy scroll a") |
121 |
{ |
122 |
if (global.action_1_selected_count < 3) |
123 |
{ |
124 |
var enemy_count = global.enemy_count |
125 |
if (enemy_count == 3) |
126 |
{ |
127 |
if ((global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) >= 2) |
128 |
global.action_1_selected_count += 1 |
129 |
} |
130 |
else if (enemy_count == 2) |
131 |
{ |
132 |
if ((global.enemy_dead_2 + global.enemy_spared_2) >= 1) |
133 |
global.action_1_selected_count += 1 |
134 |
} |
135 |
else |
136 |
global.action_1_selected_count += 1 |
137 |
} |
138 |
global.action_2_selected_count = 0 |
139 |
global.action_3_selected_count = 0 |
140 |
if (global.action_1_selected_count == 3 && global.enemy_low_hp == false) |
141 |
{ |
142 |
obj_crispy_scroll_head_a.transformed = true |
143 |
obj_crispy_scroll_back_a.transformed = true |
144 |
obj_crispy_scroll_hand_left_a.transformed = true |
145 |
obj_crispy_scroll_hand_right_a.transformed = true |
146 |
} |
147 |
else |
148 |
global.enemy_attacking = true |
149 |
instance_destroy() |
150 |
return; |
151 |
} |
152 |
else if (battle_enemy_name == "rorrim a") |
153 |
{ |
154 |
if (global.action_1_selected_count < 1) |
155 |
global.action_1_selected_count += 1 |
156 |
global.enemy_attacking = true |
157 |
instance_destroy() |
158 |
return; |
159 |
} |
160 |
else if (battle_enemy_name == "decibat") |
161 |
{ |
162 |
if (global.enemy_sparing == false && (global.action_1_selected_count + global.action_3_selected_count) < 6) |
163 |
global.action_1_selected_count += 1 |
164 |
if (global.enemy_sparing == false) |
165 |
global.action_2_selected_count = 0 |
166 |
if (global.enemy_sparing == true && global.enemy_low_hp == false) |
167 |
{ |
168 |
script_execute(gml_Script_scr_start_enemy_sparing_decibat) |
169 |
instance_destroy() |
170 |
return; |
171 |
} |
172 |
audio_sound_gain(mus_decibat_yellow, 1, 1500) |
173 |
if ((global.action_1_selected_count + global.action_3_selected_count) == 6 && global.enemy_low_hp == false) |
174 |
global.important_cutscene = true |
175 |
else |
176 |
global.enemy_attacking = true |
177 |
instance_destroy() |
178 |
return; |
179 |
} |
180 |
else if (battle_enemy_name == "dalv") |
181 |
{ |
182 |
switch global.enemy_mode |
183 |
{ |
184 |
case 0: |
185 |
case 1: |
186 |
case 2: |
187 |
if (global.enemy_sparing == true || global.action_2_important == true) |
188 |
script_execute(gml_Script_scr_start_enemy_no_attack_dalv) |
189 |
else |
190 |
global.enemy_attacking = true |
191 |
instance_destroy() |
192 |
return; |
193 |
} |
194 |
|
195 |
} |
196 |
else if (battle_enemy_name == "micro froggit") |
197 |
{ |
198 |
if (global.action_1_selected_count < 2) |
199 |
global.action_1_selected_count += 1 |
200 |
global.action_2_selected_count = 0 |
201 |
global.action_3_selected_count = 0 |
202 |
if (global.action_1_selected_count == 2) |
203 |
global.enemy_sparing = true |
204 |
global.enemy_attacking = true |
205 |
instance_destroy() |
206 |
return; |
207 |
} |
208 |
else if (battle_enemy_name == "insomnitot a") |
209 |
{ |
210 |
if (global.action_1_selected_count < 1) |
211 |
global.action_1_selected_count += 1 |
212 |
if (global.action_1_selected_count >= 1 && global.action_3_selected_count >= 1) |
213 |
{ |
214 |
global.enemy_sparing = true |
215 |
if (global.enemy_low_hp == false) |
216 |
{ |
217 |
with (obj_insomnitot_body_a) |
218 |
sleep = true |
219 |
with (obj_insomnitot_face_a) |
220 |
sleep = true |
221 |
} |
222 |
} |
223 |
global.action_2_selected_count = 0 |
224 |
global.action_3_selected_count = 0 |
225 |
if (global.enemy_sparing == true && global.enemy_low_hp == false) |
226 |
{ |
227 |
if (global.battle_enemy_name == "insomnitot solo") |
228 |
script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_solo) |
229 |
else if (global.battle_enemy_name == "insomnitot duo") |
230 |
{ |
231 |
if ((global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) || (global.enemy_dead_2 + global.enemy_spared_2) >= 1) |
232 |
script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_duo) |
233 |
else |
234 |
global.enemy_attacking = true |
235 |
} |
236 |
else |
237 |
global.enemy_attacking = true |
238 |
} |
239 |
else |
240 |
global.enemy_attacking = true |
241 |
instance_destroy() |
242 |
return; |
243 |
} |
244 |
else if (battle_enemy_name == "insomnitot b") |
245 |
{ |
246 |
if (global.action_1_selected_count_2 < 1) |
247 |
global.action_1_selected_count_2 += 1 |
248 |
if (global.action_1_selected_count_2 >= 1 && global.action_3_selected_count_2 >= 1) |
249 |
{ |
250 |
global.enemy_sparing_2 = true |
251 |
if (global.enemy_low_hp_2 == false) |
252 |
{ |
253 |
with (obj_insomnitot_body_b) |
254 |
sleep = true |
255 |
with (obj_insomnitot_face_b) |
256 |
sleep = true |
257 |
} |
258 |
} |
259 |
global.action_2_selected_count_2 = 0 |
260 |
global.action_3_selected_count_2 = 0 |
261 |
if (global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) |
262 |
{ |
263 |
if (global.battle_enemy_name == "insomnitot duo") |
264 |
{ |
265 |
if ((global.enemy_sparing == true && global.enemy_low_hp == false) || (global.enemy_dead + global.enemy_spared) >= 1) |
266 |
script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_duo) |
267 |
else |
268 |
global.enemy_attacking = true |
269 |
} |
270 |
else if (global.battle_enemy_name == "know cone insomnitot duo") |
271 |
{ |
272 |
if ((global.enemy_dead + global.enemy_spared) >= 1) |
273 |
script_execute(gml_Script_scr_start_enemy_no_attack_know_cone_insomnitot_duo) |
274 |
else |
275 |
global.enemy_attacking = true |
276 |
} |
277 |
else |
278 |
global.enemy_attacking = true |
279 |
} |
280 |
else |
281 |
global.enemy_attacking = true |
282 |
instance_destroy() |
283 |
return; |
284 |
} |
285 |
else if (battle_enemy_name == "know cone a") |
286 |
{ |
287 |
if (global.action_1_selected_count < 1) |
288 |
global.action_1_selected_count += 1 |
289 |
global.action_2_selected_count = 0 |
290 |
global.action_3_selected_count = 0 |
291 |
global.enemy_attacking = true |
292 |
instance_destroy() |
293 |
return; |
294 |
} |
295 |
else if (battle_enemy_name == "know cone b") |
296 |
{ |
297 |
if (global.action_1_selected_count_2 < 1) |
298 |
global.action_1_selected_count_2 += 1 |
299 |
global.action_2_selected_count_2 = 0 |
300 |
global.action_3_selected_count_2 = 0 |
301 |
global.enemy_attacking = true |
302 |
instance_destroy() |
303 |
return; |
304 |
} |
305 |
else if (battle_enemy_name == "frostermit a") |
306 |
{ |
307 |
if (global.action_1_selected_count < 1) |
308 |
global.action_1_selected_count += 1 |
309 |
global.enemy_attacking = true |
310 |
instance_destroy() |
311 |
return; |
312 |
} |
313 |
else if (battle_enemy_name == "trihecta") |
314 |
{ |
315 |
if (global.action_2_selected_count >= 1) |
316 |
global.action_1_selected_count = 0 |
317 |
else |
318 |
global.action_1_selected_count += 1 |
319 |
if (global.action_1_selected_count >= 2) |
320 |
{ |
321 |
if (global.enemy_low_hp == false) |
322 |
{ |
323 |
with (obj_trihecta_together) |
324 |
{ |
325 |
tipping_number = 2 |
326 |
sprite_index = spr_trihecta_falling |
327 |
image_speed = (1/3) |
328 |
image_index = 0 |
329 |
event_user(0) |
330 |
} |
331 |
} |
332 |
else |
333 |
global.enemy_attacking = true |
334 |
} |
335 |
else if (global.action_1_selected_count == 1) |
336 |
{ |
337 |
if (global.enemy_low_hp == false) |
338 |
{ |
339 |
with (obj_trihecta_together) |
340 |
{ |
341 |
tipping_number = 1 |
342 |
sprite_index = spr_trihecta_tipping |
343 |
image_speed = (1/3) |
344 |
image_index = 0 |
345 |
} |
346 |
} |
347 |
} |
348 |
else if (global.action_1_selected_count == 0) |
349 |
{ |
350 |
if (global.enemy_low_hp == false) |
351 |
{ |
352 |
with (obj_trihecta_together) |
353 |
{ |
354 |
tipping_number = 0 |
355 |
sprite_index = spr_trihecta_balanced |
356 |
image_speed = (1/3) |
357 |
image_index = 0 |
358 |
} |
359 |
} |
360 |
} |
361 |
global.action_2_selected_count = 0 |
362 |
global.action_3_selected_count = 0 |
363 |
if (global.action_1_selected_count != 2) |
364 |
global.enemy_attacking = true |
365 |
instance_destroy() |
366 |
return; |
367 |
} |
368 |
else if (battle_enemy_name == "tri") |
369 |
{ |
370 |
if (global.action_1_selected_count < 1) |
371 |
global.action_1_selected_count += 1 |
372 |
global.action_2_selected_count = 0 |
373 |
global.action_3_selected_count = 0 |
374 |
global.enemy_attacking = true |
375 |
instance_destroy() |
376 |
return; |
377 |
} |
378 |
else if (battle_enemy_name == "hec") |
379 |
{ |
380 |
if (global.action_1_selected_count_2 < 1) |
381 |
global.action_1_selected_count_2 += 1 |
382 |
global.action_2_selected_count_2 = 0 |
383 |
global.action_3_selected_count_2 = 0 |
384 |
global.enemy_attacking = true |
385 |
instance_destroy() |
386 |
return; |
387 |
} |
388 |
else if (battle_enemy_name == "ta") |
389 |
{ |
390 |
if (global.action_1_selected_count_3 < 1) |
391 |
global.action_1_selected_count_3 += 1 |
392 |
global.action_2_selected_count_3 = 0 |
393 |
global.action_3_selected_count_3 = 0 |
394 |
global.enemy_attacking = true |
395 |
instance_destroy() |
396 |
return; |
397 |
} |
398 |
else if (battle_enemy_name == "martlet pacifist") |
399 |
{ |
400 |
if (global.action_1_selected_count < 2) |
401 |
global.action_1_selected_count += 1 |
402 |
event_check = true |
403 |
} |
404 |
else if (battle_enemy_name == "martlet genocide") |
405 |
{ |
406 |
if (global.action_1_selected_count < 3) |
407 |
global.action_1_selected_count += 1 |
408 |
if (global.enemy_mode == 4) |
409 |
{ |
410 |
if (global.action_1_selected_count >= 2) |
411 |
global.enemy_sparing = true |
412 |
} |
413 |
event_check = true |
414 |
} |
415 |
else if (battle_enemy_name == "dunebud a") |
416 |
{ |
417 |
if (global.action_1_selected_count < 1) |
418 |
global.action_1_selected_count += 1 |
419 |
if (global.action_2_selected_count == 1) |
420 |
global.enemy_sparing = true |
421 |
global.action_3_selected_count = 0 |
422 |
global.enemy_attacking = true |
423 |
instance_destroy() |
424 |
return; |
425 |
} |
426 |
else if (battle_enemy_name == "dunebud b") |
427 |
{ |
428 |
if (global.action_1_selected_count_2 < 1) |
429 |
global.action_1_selected_count_2 += 1 |
430 |
if (global.action_2_selected_count_2 == 1) |
431 |
global.enemy_sparing_2 = true |
432 |
global.action_3_selected_count_2 = 0 |
433 |
global.enemy_attacking = true |
434 |
instance_destroy() |
435 |
return; |
436 |
} |
437 |
else if (battle_enemy_name == "cactony a") |
438 |
{ |
439 |
if (global.action_1_selected_count < 1) |
440 |
global.action_1_selected_count += 1 |
441 |
global.action_2_selected_count = 0 |
442 |
global.enemy_attacking = true |
443 |
instance_destroy() |
444 |
return; |
445 |
} |
446 |
else if (battle_enemy_name == "slither a") |
447 |
{ |
448 |
if (global.action_1_selected_count < 1) |
449 |
global.action_1_selected_count += 1 |
450 |
global.action_2_selected_count = 0 |
451 |
global.action_3_selected_count = 0 |
452 |
global.enemy_attacking = true |
453 |
instance_destroy() |
454 |
return; |
455 |
} |
456 |
else if (battle_enemy_name == "slither b") |
457 |
{ |
458 |
if (global.action_1_selected_count_2 < 1) |
459 |
global.action_1_selected_count_2 += 1 |
460 |
global.action_2_selected_count_2 = 0 |
461 |
global.action_3_selected_count_2 = 0 |
462 |
global.enemy_attacking = true |
463 |
instance_destroy() |
464 |
return; |
465 |
} |
466 |
else if (battle_enemy_name == "bowll a") |
467 |
{ |
468 |
if (global.action_1_selected_count < 1) |
469 |
global.action_1_selected_count += 1 |
470 |
if (global.action_3_selected_count >= 1) |
471 |
global.enemy_sparing = true |
472 |
global.action_2_selected_count = 0 |
473 |
global.enemy_attacking = true |
474 |
instance_destroy() |
475 |
return; |
476 |
} |
477 |
else if (battle_enemy_name == "el bailador") |
478 |
{ |
479 |
if (global.action_1_selected_count < 1) |
480 |
global.action_1_selected_count += 1 |
481 |
global.action_2_selected_count = 0 |
482 |
global.action_3_selected_count = 0 |
483 |
global.enemy_attacking = true |
484 |
instance_destroy() |
485 |
return; |
486 |
} |
487 |
else if (battle_enemy_name == "flower girls") |
488 |
{ |
489 |
if (global.action_1_selected_count < 1) |
490 |
global.action_1_selected_count += 1 |
491 |
global.action_2_selected_count = 0 |
492 |
global.action_3_selected_count = 0 |
493 |
global.enemy_attacking = true |
494 |
instance_destroy() |
495 |
return; |
496 |
} |
497 |
else if (battle_enemy_name == "dummy training pacifist") |
498 |
{ |
499 |
if (global.action_1_selected_count < 2) |
500 |
global.action_1_selected_count += 1 |
501 |
event_check = true |
502 |
} |
503 |
else if (battle_enemy_name == "ceroba genocide") |
504 |
{ |
505 |
global.enemy_attacking = true |
506 |
instance_destroy() |
507 |
} |
508 |
else if (battle_enemy_name == "starlo") |
509 |
{ |
510 |
if (global.turns_passed >= 18) |
511 |
global.action_1_selected_count += 1 |
512 |
global.enemy_attacking = true |
513 |
instance_destroy() |
514 |
} |
515 |
else if (battle_enemy_name == "ed" || battle_enemy_name == "ace" || battle_enemy_name == "mooch" || battle_enemy_name == "moray") |
516 |
{ |
517 |
global.enemy_attacking = true |
518 |
instance_destroy() |
519 |
} |
520 |
else if (battle_enemy_name == "tellyvis a") |
521 |
{ |
522 |
if (global.action_1_selected_count < 1) |
523 |
global.action_1_selected_count += 1 |
524 |
if (global.action_3_selected_count >= 1) |
525 |
global.enemy_sparing = true |
526 |
global.enemy_attacking = true |
527 |
instance_destroy() |
528 |
return; |
529 |
} |
530 |
else if (battle_enemy_name == "jandroid a") |
531 |
{ |
532 |
if (global.action_1_selected_count < 1) |
533 |
global.action_1_selected_count += 1 |
534 |
global.enemy_attacking = true |
535 |
instance_destroy() |
536 |
return; |
537 |
} |
538 |
else if (battle_enemy_name == "jandroid b") |
539 |
{ |
540 |
if (global.action_1_selected_count_2 < 1) |
541 |
global.action_1_selected_count_2 += 1 |
542 |
global.enemy_attacking = true |
543 |
instance_destroy() |
544 |
return; |
545 |
} |
546 |
else if (battle_enemy_name == "goosic a") |
547 |
{ |
548 |
if (global.action_1_selected_count < 1) |
549 |
global.action_1_selected_count += 1 |
550 |
if (global.action_3_selected_count >= 1) |
551 |
global.enemy_sparing = true |
552 |
global.enemy_attacking = true |
553 |
instance_destroy() |
554 |
return; |
555 |
} |
556 |
else if (battle_enemy_name == "goosic b") |
557 |
{ |
558 |
if (global.action_1_selected_count_2 < 1) |
559 |
global.action_1_selected_count_2 += 1 |
560 |
if (global.action_3_selected_count_2 >= 1) |
561 |
global.enemy_sparing_2 = true |
562 |
global.enemy_attacking = true |
563 |
instance_destroy() |
564 |
return; |
565 |
} |
566 |
else if (battle_enemy_name == "sousborg") |
567 |
{ |
568 |
if (global.enemy_mode == 0) |
569 |
{ |
570 |
global.enemy_mode = 1 |
571 |
global.action_amount = 3 |
572 |
global.enemy_attack = "Egg Crack" |
573 |
} |
574 |
else |
575 |
global.enemy_attack = "Sousborg Flip" |
576 |
global.enemy_attacking = true |
577 |
instance_destroy() |
578 |
return; |
579 |
} |
580 |
else if (battle_enemy_name == "axis") |
581 |
{ |
582 |
if (global.action_1_important == true) |
583 |
{ |
584 |
if (global.action_1_selected_count < 3) |
585 |
{ |
586 |
global.action_1_selected_count += 1 |
587 |
if (global.route != 2 && global.action_1_selected_count == 3) |
588 |
{ |
589 |
global.action_amount = 0 |
590 |
global.enemy_sparing = true |
591 |
} |
592 |
} |
593 |
else if (global.route != 2) |
594 |
global.enemy_sparing = true |
595 |
} |
596 |
global.enemy_attacking = true |
597 |
instance_destroy() |
598 |
} |
599 |
else if (battle_enemy_name == "macro froggit") |
600 |
{ |
601 |
global.action_1_selected_count += 1 |
602 |
global.enemy_attacking = true |
603 |
instance_destroy() |
604 |
} |
605 |
else if (battle_enemy_name == "axis genocide") |
606 |
{ |
607 |
global.action_1_selected_count += 1 |
608 |
global.enemy_attacking = true |
609 |
instance_destroy() |
610 |
} |
611 |
else if (battle_enemy_name == "guardener") |
612 |
{ |
613 |
global.action_1_selected_count += 1 |
614 |
global.enemy_attacking = true |
615 |
instance_destroy() |
616 |
return; |
617 |
} |
618 |
else if (battle_enemy_name == "flowey") |
619 |
{ |
620 |
if (global.flowey_act[0] == 4) |
621 |
{ |
622 |
audio_play_sound(snd_heal, 1, 0) |
623 |
if (global.current_hp_self < global.max_hp_self) |
624 |
{ |
625 |
global.current_hp_self += (global.max_hp_self * 0.3) |
626 |
if (global.current_hp_self > global.max_hp_self) |
627 |
global.current_hp_self = global.max_hp_self |
628 |
} |
629 |
global.enemy_attacking = true |
630 |
} |
631 |
else |
632 |
{ |
633 |
instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch_fight) |
634 |
with (obj_heart_battle_menu) |
635 |
event_user(0) |
636 |
} |
637 |
instance_destroy() |
638 |
} |
639 |
else if (battle_enemy_name == "ceroba") |
640 |
{ |
641 |
if ((!instance_exists(obj_ceroba_pacifist_act_helper)) || obj_ceroba_pacifist_act_helper.can_skip == true) |
642 |
{ |
643 |
global.action_1_selected_count += 1 |
644 |
global.enemy_attacking = true |
645 |
instance_destroy() |
646 |
} |
647 |
return; |
648 |
} |
649 |
else if (battle_enemy_name == "martlet genocide final") |
650 |
{ |
651 |
global.action_1_selected_count += 1 |
652 |
global.enemy_attacking = true |
653 |
instance_destroy() |
654 |
return; |
655 |
} |
656 |
} |
657 |
if (event_check == true) |
658 |
{ |
659 |
var act_number = global.act_number |
660 |
switch act_number |
661 |
{ |
662 |
case 1: |
663 |
scr_determine_special_effect_enemy("Action 1") |
664 |
break |
665 |
case 2: |
666 |
scr_determine_special_effect_enemy("Action 1 2") |
667 |
break |
668 |
case 3: |
669 |
scr_determine_special_effect_enemy("Action 1 3") |
670 |
break |
671 |
} |
672 |
|
673 |
global.important_cutscene = script_execute(gml_Script_scr_determine_important_cutscene_attacking) |
674 |
global.can_attack = script_execute(gml_Script_scr_determine_can_attack_attacking) |
675 |
if (global.important_cutscene == false && global.can_attack == true) |
676 |
global.enemy_attacking = true |
677 |
if (global.can_attack == false) |
678 |
{ |
679 |
with (obj_dialogue_box_battle) |
680 |
no_loop_can_attack = false |
681 |
} |
682 |
instance_destroy() |
683 |
return; |
684 |
} |
685 |
} |