Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_action_2_selected_event

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

function scr_battle_core_directory_action_2_selected_event() //gml_Script_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() return; } else if (battle_enemy_name == "ms mettaton") { 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") { 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() return; } 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() return; } 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() return; } 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() return; } 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() return; } 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() return; } 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 ...
() //gml_Script_scr_battle_core_directory_action_2_selected_event
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
            return;
15
        }
16
        else if (battle_enemy_name == "ms mettaton")
17
        {
18
            global.enemy_sparing = false
19
            global.enemy_attacking = true
20
            instance_destroy()
21
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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
            return;
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(gml_Script_scr_start_enemy_sparing_decibat)
158
                }
159
                else
160
                    global.enemy_attacking = true
161
            }
162
            else
163
                global.enemy_attacking = true
164
            instance_destroy()
165
            return;
166
        }
167
        else if (battle_enemy_name == "dalv")
168
        {
169
            switch global.enemy_mode
170
            {
171
                case 0:
172
                    if (global.enemy_sparing == true)
173
                        script_execute(gml_Script_scr_start_enemy_no_attack_dalv)
174
                    else if (global.action_2_important == true)
175
                        script_execute(gml_Script_scr_start_enemy_sparing_dalv)
176
                    else
177
                        global.enemy_attacking = true
178
                    instance_destroy()
179
                    return;
180
                case 1:
181
                case 2:
182
                    if (global.enemy_sparing == true || global.action_2_important == true)
183
                        script_execute(gml_Script_scr_start_enemy_no_attack_dalv)
184
                    else
185
                        global.enemy_attacking = true
186
                    instance_destroy()
187
                    return;
188
            }
189
190
        }
191
        else if (battle_enemy_name == "micro froggit")
192
        {
193
            global.action_1_selected_count = 0
194
            if (global.action_2_selected_count < 1)
195
                global.action_2_selected_count += 1
196
            global.action_3_selected_count = 0
197
            global.enemy_attacking = true
198
            instance_destroy()
199
            return;
200
        }
201
        else if (battle_enemy_name == "insomnitot a")
202
        {
203
            global.action_1_selected_count = 0
204
            if (global.action_2_selected_count < 1)
205
                global.action_2_selected_count += 1
206
            global.action_3_selected_count = 0
207
            if (global.enemy_sparing == true && global.enemy_low_hp == false)
208
            {
209
                if (global.battle_enemy_name == "insomnitot solo")
210
                    script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_solo)
211
                else if (global.battle_enemy_name == "insomnitot duo")
212
                {
213
                    if ((global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false) || (global.enemy_dead_2 + global.enemy_spared_2) >= 1)
214
                        script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_duo)
215
                    else
216
                        global.enemy_attacking = true
217
                }
218
                else
219
                    global.enemy_attacking = true
220
            }
221
            else
222
                global.enemy_attacking = true
223
            instance_destroy()
224
            return;
225
        }
226
        else if (battle_enemy_name == "insomnitot b")
227
        {
228
            global.action_1_selected_count_2 = 0
229
            if (global.action_2_selected_count_2 < 1)
230
                global.action_2_selected_count_2 += 1
231
            global.action_3_selected_count_2 = 0
232
            if (global.enemy_sparing_2 == true && global.enemy_low_hp_2 == false)
233
            {
234
                if (global.battle_enemy_name == "insomnitot duo")
235
                {
236
                    if ((global.enemy_sparing == true && global.enemy_low_hp == false) || (global.enemy_dead + global.enemy_spared) >= 1)
237
                        script_execute(gml_Script_scr_start_enemy_no_attack_insomnitot_duo)
238
                    else
239
                        global.enemy_attacking = true
240
                }
241
                else if (global.battle_enemy_name == "know cone insomnitot duo")
242
                {
243
                    if ((global.enemy_dead + global.enemy_spared) >= 1)
244
                        script_execute(gml_Script_scr_start_enemy_no_attack_know_cone_insomnitot_duo)
245
                    else
246
                        global.enemy_attacking = true
247
                }
248
                else
249
                    global.enemy_attacking = true
250
            }
251
            else
252
                global.enemy_attacking = true
253
            instance_destroy()
254
            return;
255
        }
256
        else if (battle_enemy_name == "know cone a")
257
        {
258
            global.action_1_selected_count = 0
259
            if (global.action_2_selected_count < 1)
260
                global.action_2_selected_count += 1
261
            global.action_3_selected_count = 0
262
            if (global.action_2_selected_count == 1)
263
                global.enemy_sparing = true
264
            global.enemy_attacking = true
265
            instance_destroy()
266
            return;
267
        }
268
        else if (battle_enemy_name == "know cone b")
269
        {
270
            global.action_1_selected_count_2 = 0
271
            if (global.action_2_selected_count_2 < 1)
272
                global.action_2_selected_count_2 += 1
273
            global.action_3_selected_count_2 = 0
274
            if (global.action_2_selected_count_2 == 1)
275
                global.enemy_sparing_2 = true
276
            global.enemy_attacking = true
277
            instance_destroy()
278
            return;
279
        }
280
        else if (battle_enemy_name == "frostermit a")
281
        {
282
            global.action_1_selected_count = 0
283
            if (global.action_2_selected_count < 3)
284
                global.action_2_selected_count += 1
285
            if (global.action_2_selected_count >= 2)
286
                global.enemy_sparing = true
287
            if (global.action_2_selected_count == 1)
288
            {
289
                if (global.enemy_low_hp == false && global.enemy_mode == 0)
290
                {
291
                    with (obj_frostermit_body_a)
292
                    {
293
                        getting_out = true
294
                        sprite_index = spr_frostermit_body_open
295
                        image_speed = 0.4
296
                        image_index = 0
297
                    }
298
                }
299
                else
300
                    global.enemy_attacking = true
301
            }
302
            if (global.action_2_selected_count != 1)
303
                global.enemy_attacking = true
304
            instance_destroy()
305
            return;
306
        }
307
        else if (battle_enemy_name == "trihecta")
308
        {
309
            if (global.action_1_selected_count >= 1)
310
                global.action_2_selected_count = 0
311
            else
312
                global.action_2_selected_count += 1
313
            if (global.action_2_selected_count >= 2)
314
            {
315
                if (global.enemy_low_hp == false)
316
                {
317
                    with (obj_trihecta_together)
318
                    {
319
                        tipping_number = 2
320
                        sprite_index = spr_trihecta_falling
321
                        image_speed = (1/3)
322
                        image_index = 0
323
                        event_user(0)
324
                    }
325
                }
326
                else
327
                    global.enemy_attacking = true
328
            }
329
            else if (global.action_2_selected_count == 1)
330
            {
331
                if (global.enemy_low_hp == false)
332
                {
333
                    with (obj_trihecta_together)
334
                    {
335
                        tipping_number = 1
336
                        sprite_index = spr_trihecta_tipping
337
                        image_speed = (1/3)
338
                        image_index = 0
339
                    }
340
                }
341
            }
342
            else if (global.action_2_selected_count == 0)
343
            {
344
                if (global.enemy_low_hp == false)
345
                {
346
                    with (obj_trihecta_together)
347
                    {
348
                        tipping_number = 0
349
                        sprite_index = spr_trihecta_balanced
350
                        image_speed = (1/3)
351
                        image_index = 0
352
                    }
353
                }
354
            }
355
            global.action_1_selected_count = 0
356
            global.action_3_selected_count = 0
357
            if (global.action_2_selected_count != 2)
358
                global.enemy_attacking = true
359
            instance_destroy()
360
            return;
361
        }
362
        else if (battle_enemy_name == "tri")
363
        {
364
            global.action_1_selected_count = 0
365
            if (global.action_2_selected_count < 1)
366
                global.action_2_selected_count += 1
367
            global.action_3_selected_count = 0
368
            global.enemy_attacking = true
369
            instance_destroy()
370
            return;
371
        }
372
        else if (battle_enemy_name == "hec")
373
        {
374
            global.action_1_selected_count_2 = 0
375
            if (global.action_2_selected_count_2 < 1)
376
                global.action_2_selected_count_2 += 1
377
            global.action_3_selected_count_2 = 0
378
            global.enemy_attacking = true
379
            instance_destroy()
380
            return;
381
        }
382
        else if (battle_enemy_name == "ta")
383
        {
384
            global.action_1_selected_count_3 = 0
385
            if (global.action_2_selected_count_3 < 1)
386
                global.action_2_selected_count_3 += 1
387
            global.action_3_selected_count_3 = 0
388
            global.enemy_attacking = true
389
            instance_destroy()
390
            return;
391
        }
392
        else if (battle_enemy_name == "martlet pacifist")
393
        {
394
            if (global.action_2_selected_count < 1)
395
                global.action_2_selected_count += 1
396
            event_check = true
397
        }
398
        else if (battle_enemy_name == "martlet genocide")
399
        {
400
            if (global.action_2_selected_count < 1)
401
                global.action_2_selected_count += 1
402
            event_check = true
403
        }
404
        else if (battle_enemy_name == "dunebud a")
405
        {
406
            global.action_1_selected_count = 0
407
            if (global.action_2_selected_count < 1)
408
                global.action_2_selected_count += 1
409
            global.action_3_selected_count = 0
410
            global.enemy_attacking = true
411
            instance_destroy()
412
            return;
413
        }
414
        else if (battle_enemy_name == "dunebud b")
415
        {
416
            global.action_1_selected_count_2 = 0
417
            if (global.action_2_selected_count_2 < 1)
418
                global.action_2_selected_count_2 += 1
419
            global.action_3_selected_count_2 = 0
420
            global.enemy_attacking = true
421
            instance_destroy()
422
            return;
423
        }
424
        else if (battle_enemy_name == "cactony a")
425
        {
426
            global.action_1_selected_count = 0
427
            if (global.action_2_selected_count < 1)
428
                global.action_2_selected_count += 1
429
            global.enemy_attacking = true
430
            instance_destroy()
431
            return;
432
        }
433
        else if (battle_enemy_name == "slither a")
434
        {
435
            global.action_1_selected_count = 0
436
            global.action_3_selected_count = 0
437
            if (global.action_2_selected_count < 1)
438
                global.action_2_selected_count += 1
439
            obj_battle_enemy_effect_slither_fog.target_alpha = 0.5
440
            var fog_sound = audio_play_sound(snd_undertale_appear, 1, 0)
441
            audio_sound_pitch(fog_sound, 0.5)
442
            global.enemy_attacking = true
443
            instance_destroy()
444
            return;
445
        }
446
        else if (battle_enemy_name == "slither b")
447
        {
448
            global.action_1_selected_count_2 = 0
449
            global.action_3_selected_count_2 = 0
450
            if (global.action_2_selected_count_2 < 1)
451
                global.action_2_selected_count_2 += 1
452
            obj_battle_enemy_effect_slither_fog.target_alpha = 0.5
453
            fog_sound = audio_play_sound(snd_undertale_appear, 1, 0)
454
            audio_sound_pitch(fog_sound, 0.5)
455
            global.enemy_attacking = true
456
            instance_destroy()
457
            return;
458
        }
459
        else if (battle_enemy_name == "bowll a")
460
        {
461
            global.action_1_selected_count = 0
462
            if (global.action_2_selected_count < 1)
463
                global.action_2_selected_count += 1
464
            global.action_3_selected_count = 0
465
            global.enemy_attacking = true
466
            instance_destroy()
467
            return;
468
        }
469
        else if (battle_enemy_name == "el bailador")
470
        {
471
            global.action_1_selected_count = 0
472
            if (global.action_2_selected_count < 1)
473
                global.action_2_selected_count += 1
474
            global.action_3_selected_count = 0
475
            global.enemy_attacking = true
476
            instance_destroy()
477
            return;
478
        }
479
        else if (battle_enemy_name == "flower girls")
480
        {
481
            global.action_1_selected_count = 0
482
            if (global.action_2_selected_count < 1)
483
                global.action_2_selected_count += 1
484
            global.action_3_selected_count = 0
485
            global.enemy_attacking = true
486
            instance_destroy()
487
            return;
488
        }
489
        else if (battle_enemy_name == "ceroba genocide")
490
        {
491
            global.enemy_attacking = true
492
            instance_destroy()
493
        }
494
        else if (battle_enemy_name == "starlo")
495
        {
496
            global.enemy_attacking = true
497
            instance_destroy()
498
            return;
499
        }
500
        else if (battle_enemy_name == "ed" || battle_enemy_name == "ace" || battle_enemy_name == "mooch" || battle_enemy_name == "moray")
501
        {
502
            global.enemy_attacking = true
503
            instance_destroy()
504
        }
505
        else if (battle_enemy_name == "tellyvis a")
506
        {
507
            if (global.action_2_selected_count < 1)
508
                global.action_2_selected_count += 1
509
            global.enemy_attacking = true
510
            instance_destroy()
511
            return;
512
        }
513
        else if (battle_enemy_name == "jandroid a")
514
        {
515
            if (global.action_2_selected_count < 1)
516
                global.action_2_selected_count += 1
517
            global.action_1_selected_count = 0
518
            global.action_3_selected_count = 0
519
            global.enemy_attacking = true
520
            instance_destroy()
521
            return;
522
        }
523
        else if (battle_enemy_name == "jandroid b")
524
        {
525
            if (global.action_2_selected_count_2 < 1)
526
                global.action_2_selected_count_2 += 1
527
            global.action_1_selected_count_2 = 0
528
            global.action_3_selected_count_2 = 0
529
            global.enemy_attacking = true
530
            instance_destroy()
531
            return;
532
        }
533
        else if (battle_enemy_name == "goosic a")
534
        {
535
            if (global.action_2_selected_count < 1)
536
                global.action_2_selected_count += 1
537
            global.enemy_attacking = true
538
            instance_destroy()
539
            return;
540
        }
541
        else if (battle_enemy_name == "goosic b")
542
        {
543
            if (global.action_2_selected_count_2 < 1)
544
                global.action_2_selected_count_2 += 1
545
            global.enemy_attacking = true
546
            instance_destroy()
547
            return;
548
        }
549
        else if (battle_enemy_name == "sousborg")
550
        {
551
            if (global.enemy_mode == 1)
552
            {
553
                global.enemy_mode = 2
554
                global.action_amount = 3
555
                global.enemy_attack = "Egg Boil"
556
            }
557
            else
558
                global.enemy_attack = "Sousborg Flip"
559
            global.enemy_attacking = true
560
            instance_destroy()
561
            return;
562
        }
563
        else if (battle_enemy_name == "axis")
564
        {
565
            global.enemy_attacking = true
566
            instance_destroy()
567
            return;
568
        }
569
        else if (battle_enemy_name == "axis genocide")
570
        {
571
            global.enemy_attacking = true
572
            instance_destroy()
573
            return;
574
        }
575
        else if (battle_enemy_name == "macro froggit")
576
        {
577
            global.action_2_selected_count += 1
578
            global.enemy_attacking = true
579
            instance_destroy()
580
        }
581
        else if (battle_enemy_name == "guardener")
582
        {
583
            if instance_exists(obj_guardener_meter)
584
            {
585
                var power_sound = audio_play_sound(snd_power_down, 1, 0)
586
                global.action_2_selected_count += 1
587
                if (global.action_2_selected_count >= 5)
588
                    global.enemy_sparing = true
589
                global.enemy_attacking = false
590
            }
591
            instance_destroy()
592
            return;
593
        }
594
        else if (battle_enemy_name == "flowey")
595
        {
596
            if (global.flowey_act[1] == 4)
597
            {
598
                audio_play_sound(snd_heal, 1, 0)
599
                if (global.current_hp_self < global.max_hp_self)
600
                {
601
                    global.current_hp_self += (global.max_hp_self * 0.3)
602
                    if (global.current_hp_self > global.max_hp_self)
603
                        global.current_hp_self = global.max_hp_self
604
                }
605
                global.enemy_attacking = true
606
            }
607
            else
608
            {
609
                instance_create_depth(0, 0, -100, obj_flowey_battle_screen_glitch_fight)
610
                with (obj_heart_battle_menu)
611
                    event_user(0)
612
            }
613
            instance_destroy()
614
        }
615
        else if (battle_enemy_name == "ceroba")
616
        {
617
            if ((!instance_exists(obj_ceroba_pacifist_act_helper)) || obj_ceroba_pacifist_act_helper.can_skip == true)
618
            {
619
                global.action_2_selected_count += 1
620
                global.enemy_attacking = true
621
                instance_destroy()
622
            }
623
            return;
624
        }
625
        else if (battle_enemy_name == "martlet genocide final")
626
        {
627
            if ((!instance_exists(obj_martlet_final_act_helper)) || obj_martlet_final_act_helper.can_skip == true)
628
            {
629
                global.action_2_selected_count += 1
630
                global.enemy_attacking = true
631
                instance_destroy()
632
            }
633
            return;
634
        }
635
    }
636
    if (event_check == true)
637
    {
638
        var act_number = global.act_number
639
        switch act_number
640
        {
641
            case 1:
642
                scr_determine_special_effect_enemy
scr_determine_special_effect_enemy

function scr_determine_special_effect_enemy(argument0) //gml_Script_scr_determine_special_effect_enemy { 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(argument0) break case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(argument0) break } } global.special_effect_end_value = argument0 }
("Action 2")
643
                break
644
            case 2:
645
                scr_determine_special_effect_enemy
scr_determine_special_effect_enemy

function scr_determine_special_effect_enemy(argument0) //gml_Script_scr_determine_special_effect_enemy { 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(argument0) break case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(argument0) break } } global.special_effect_end_value = argument0 }
("Action 2 2")
646
                break
647
            case 3:
648
                scr_determine_special_effect_enemy
scr_determine_special_effect_enemy

function scr_determine_special_effect_enemy(argument0) //gml_Script_scr_determine_special_effect_enemy { 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(argument0) break case "martlet genocide": scr_enemy_mode_shift_martlet_genocide(argument0) break } } global.special_effect_end_value = argument0 }
("Action 2 3")
649
                break
650
        }
651
652
        global.important_cutscene = script_execute(gml_Script_scr_determine_important_cutscene_attacking)
653
        global.can_attack = script_execute(gml_Script_scr_determine_can_attack_attacking)
654
        if (global.important_cutscene == false && global.can_attack == true)
655
            global.enemy_attacking = true
656
        if (global.can_attack == false)
657
        {
658
            with (obj_dialogue_box_battle)
659
                no_loop_can_attack = false
660
        }
661
        instance_destroy()
662
        return;
663
    }
664
}