Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_action_1_selected_event

(view raw script w/o annotations or w/e)
1
function scr_battle_core_directory_action_1_selected_event
scr_battle_core_directory_action_1_selected_event

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

function scr_determine_special_effect_enemy(arg0) { var battle_enemy_name = global.battle_enemy_name; if (global.game_mode == "customs") { } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { case "martlet pacifist": scr_enemy_mode_shift_martlet_pacifist(arg0); break; case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(arg0); break; } } global.special_effect_end_value = arg0; }
("Action 1");
686
                break;
687
            case 2:
688
                scr_determine_special_effect_enemy
scr_determine_special_effect_enemy

function scr_determine_special_effect_enemy(arg0) { var battle_enemy_name = global.battle_enemy_name; if (global.game_mode == "customs") { } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { case "martlet pacifist": scr_enemy_mode_shift_martlet_pacifist(arg0); break; case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(arg0); break; } } global.special_effect_end_value = arg0; }
("Action 1 2");
689
                break;
690
            case 3:
691
                scr_determine_special_effect_enemy
scr_determine_special_effect_enemy

function scr_determine_special_effect_enemy(arg0) { var battle_enemy_name = global.battle_enemy_name; if (global.game_mode == "customs") { } else if (global.game_mode == "yellow") { switch (battle_enemy_name) { case "martlet pacifist": scr_enemy_mode_shift_martlet_pacifist(arg0); break; case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(arg0); break; } } global.special_effect_end_value = arg0; }
("Action 1 3");
692
                break;
693
        }
694
        global.important_cutscene = script_execute(scr_determine_important_cutscene_attacking);
695
        global.can_attack = script_execute(scr_determine_can_attack_attacking);
696
        if (global.important_cutscene == false && global.can_attack == true)
697
            global.enemy_attacking = true;
698
        if (global.can_attack == false)
699
        {
700
            with (obj_dialogue_box_battle)
701
                no_loop_can_attack = false;
702
        }
703
        instance_destroy();
704
        exit;
705
    }
706
}