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