Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_enemy_controller_feisty_four_Other_10

(view raw script w/o annotations or w/e)
1
if (case_exec == "T0 Quote Ed")
2
{
3
    instance_create(20, 60, obj_quote_bubble_battle_reverse);
4
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t0_ed);
5
}
6
else if (case_exec == "T1 Vanish Ed")
7
{
8
    vanish_type = "Ed";
9
    vanish_direction = -1;
10
    event_user(2);
11
}
12
else if (case_exec == "T1 Appear Moray")
13
{
14
    instance_create(318, 224, obj_feisty_four_moray_intro);
15
}
16
else if (case_exec == "T1 BG Moray")
17
{
18
    with (obj_background_feisty_four_yellow)
19
    {
20
        spin_type = "Moray Solo 1";
21
        event_user(2);
22
    }
23
    audio_vol_ed = 0;
24
    audio_vol_moray = 1;
25
    audio_vol_ace = 0;
26
    audio_vol_mooch = 0;
27
    event_user(1);
28
}
29
else if (case_exec == "T1 Obj Moray")
30
{
31
    instance_create(318, 224, obj_feisty_four_moray_legs);
32
    current_hp_ed = global.current_hp_enemy;
33
    max_hp_ed = global.max_hp_enemy;
34
    last_hp_ed = global.last_hp_enemy;
35
    current_hp_ed_draw = global.current_hp_enemy;
36
    global.current_hp_enemy = current_hp_moray;
37
    global.max_hp_enemy = max_hp_moray;
38
    global.last_hp_enemy = last_hp_moray;
39
    global.current_hp_enemy_draw = current_hp_moray_draw;
40
    global.enemy_attack_stat = moray_attack_stat;
41
    global.enemy_defense_stat = moray_defense_stat;
42
    global.battle_enemy_name_1 = "moray";
43
}
44
else if (case_exec == "T1 Quote Moray")
45
{
46
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
47
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t1_moray);
48
}
49
else if (case_exec == "T2 Vanish Moray")
50
{
51
    vanish_type = "Moray";
52
    vanish_direction = 1;
53
    event_user(2);
54
}
55
else if (case_exec == "T2 Appear Ace")
56
{
57
    instance_create(318, 224, obj_feisty_four_ace_intro);
58
}
59
else if (case_exec == "T2 BG Ace")
60
{
61
    with (obj_background_feisty_four_yellow)
62
    {
63
        spin_type = "Ace Solo 1";
64
        event_user(2);
65
    }
66
    audio_vol_ed = 0;
67
    audio_vol_moray = 0;
68
    audio_vol_ace = 1;
69
    audio_vol_mooch = 0;
70
    event_user(1);
71
}
72
else if (case_exec == "T2 Obj Ace")
73
{
74
    instance_create(318, 224, obj_feisty_four_ace_legs);
75
    current_hp_moray = global.current_hp_enemy;
76
    max_hp_moray = global.max_hp_enemy;
77
    last_hp_moray = global.last_hp_enemy;
78
    current_hp_moray_draw = global.current_hp_enemy;
79
    global.current_hp_enemy = current_hp_ace;
80
    global.max_hp_enemy = max_hp_ace;
81
    global.last_hp_enemy = last_hp_ace;
82
    global.current_hp_enemy_draw = current_hp_ace_draw;
83
    global.enemy_attack_stat = ace_attack_stat;
84
    global.enemy_defense_stat = ace_defense_stat;
85
    global.battle_enemy_name_1 = "ace";
86
}
87
else if (case_exec == "T2 Quote Ace")
88
{
89
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
90
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t2_ace);
91
}
92
else if (case_exec == "T3 Quote Mooch 1")
93
{
94
    instance_create(420, 74, obj_quote_bubble_battle_reverse);
95
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t3_mooch_1);
96
}
97
else if (case_exec == "T3 Vanish Ace")
98
{
99
    vanish_type = "Ace";
100
    vanish_direction = -1;
101
    event_user(2);
102
}
103
else if (case_exec == "T3 Appear Mooch")
104
{
105
    instance_create(318, 224, obj_feisty_four_mooch_intro);
106
}
107
else if (case_exec == "T3 BG Mooch")
108
{
109
    with (obj_background_feisty_four_yellow)
110
    {
111
        spin_type = "Mooch Solo 1";
112
        event_user(2);
113
    }
114
    audio_vol_ed = 0;
115
    audio_vol_moray = 0;
116
    audio_vol_ace = 0;
117
    audio_vol_mooch = 1;
118
    event_user(1);
119
}
120
else if (case_exec == "T3 Obj Mooch")
121
{
122
    instance_create(318, 224, obj_feisty_four_mooch_body_full);
123
    current_hp_ace = global.current_hp_enemy;
124
    max_hp_ace = global.max_hp_enemy;
125
    last_hp_ace = global.last_hp_enemy;
126
    current_hp_ace_draw = global.current_hp_enemy;
127
    global.current_hp_enemy = current_hp_mooch;
128
    global.max_hp_enemy = max_hp_mooch;
129
    global.last_hp_enemy = last_hp_mooch;
130
    global.current_hp_enemy_draw = current_hp_mooch_draw;
131
    global.enemy_attack_stat = mooch_attack_stat;
132
    global.enemy_defense_stat = mooch_defense_stat;
133
    global.battle_enemy_name_1 = "mooch";
134
}
135
else if (case_exec == "T3 Quote Mooch 2")
136
{
137
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
138
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t3_mooch_2);
139
}
140
else if (case_exec == "T4 Appear Ed")
141
{
142
    instance_create(438, 224, obj_feisty_four_ed_intro);
143
    audio_play_sound(snd_feisty_ed_entrance_mooch, 1, 0);
144
}
145
else if (case_exec == "T4 Vanish Mooch")
146
{
147
    vanish_type = "Mooch Smack";
148
    vanish_direction = -1;
149
    event_user(2);
150
}
151
else if (case_exec == "T4 BG Ed")
152
{
153
    with (obj_background_feisty_four_yellow)
154
    {
155
        spin_type = "Ed Solo 1";
156
        event_user(2);
157
    }
158
    audio_vol_ed = 1;
159
    audio_vol_moray = 0;
160
    audio_vol_ace = 0;
161
    audio_vol_mooch = 0;
162
    event_user(1);
163
}
164
else if (case_exec == "T4 Obj Ed")
165
{
166
    instance_create(318, 224, obj_feisty_four_ed_legs);
167
    current_hp_mooch = global.current_hp_enemy;
168
    max_hp_mooch = global.max_hp_enemy;
169
    last_hp_mooch = global.last_hp_enemy;
170
    current_hp_mooch_draw = global.current_hp_enemy;
171
    global.current_hp_enemy = current_hp_ed;
172
    global.max_hp_enemy = max_hp_ed;
173
    global.last_hp_enemy = last_hp_ed;
174
    global.current_hp_enemy_draw = current_hp_ed_draw;
175
    global.enemy_attack_stat = ed_attack_stat;
176
    global.enemy_defense_stat = ed_defense_stat;
177
    global.battle_enemy_name_1 = "ed";
178
}
179
else if (case_exec == "T4 Quote Ed")
180
{
181
    instance_create(410, 64, obj_quote_bubble_battle_yellow_3);
182
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t4_ed);
183
}
184
else if (case_exec == "T5 Vanish Ed")
185
{
186
    vanish_type = "Ed";
187
    vanish_direction = -1;
188
    event_user(2);
189
}
190
else if (case_exec == "T5 Appear Moray")
191
{
192
    instance_create(318, 224, obj_feisty_four_moray_intro);
193
}
194
else if (case_exec == "T5 BG Moray")
195
{
196
    with (obj_background_feisty_four_yellow)
197
    {
198
        spin_type = "Moray Solo 2";
199
        event_user(2);
200
    }
201
    audio_vol_ed = 0;
202
    audio_vol_moray = 1;
203
    audio_vol_ace = 0;
204
    audio_vol_mooch = 0;
205
    event_user(1);
206
}
207
else if (case_exec == "T5 Obj Moray")
208
{
209
    instance_create(318, 224, obj_feisty_four_moray_legs);
210
    current_hp_ed = global.current_hp_enemy;
211
    max_hp_ed = global.max_hp_enemy;
212
    last_hp_ed = global.last_hp_enemy;
213
    current_hp_ed_draw = global.current_hp_enemy;
214
    global.current_hp_enemy = current_hp_moray;
215
    global.max_hp_enemy = max_hp_moray;
216
    global.last_hp_enemy = last_hp_moray;
217
    global.current_hp_enemy_draw = current_hp_moray_draw;
218
    global.enemy_attack_stat = moray_attack_stat;
219
    global.enemy_defense_stat = moray_defense_stat;
220
    global.battle_enemy_name_1 = "moray";
221
}
222
else if (case_exec == "T5 Quote Moray")
223
{
224
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
225
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t5_moray);
226
}
227
else if (case_exec == "T6 Vanish Moray")
228
{
229
    vanish_type = "Moray";
230
    vanish_direction = 1;
231
    event_user(2);
232
}
233
else if (case_exec == "T6 Appear Ace")
234
{
235
    instance_create(318, 224, obj_feisty_four_ace_intro);
236
}
237
else if (case_exec == "T6 BG Ace")
238
{
239
    with (obj_background_feisty_four_yellow)
240
    {
241
        spin_type = "Ace Solo 2";
242
        event_user(2);
243
    }
244
    audio_vol_ed = 0;
245
    audio_vol_moray = 0;
246
    audio_vol_ace = 1;
247
    audio_vol_mooch = 0;
248
    event_user(1);
249
}
250
else if (case_exec == "T6 Obj Ace")
251
{
252
    instance_create(318, 224, obj_feisty_four_ace_legs);
253
    current_hp_moray = global.current_hp_enemy;
254
    max_hp_moray = global.max_hp_enemy;
255
    last_hp_moray = global.last_hp_enemy;
256
    current_hp_moray_draw = global.current_hp_enemy;
257
    global.current_hp_enemy = current_hp_ace;
258
    global.max_hp_enemy = max_hp_ace;
259
    global.last_hp_enemy = last_hp_ace;
260
    global.current_hp_enemy_draw = current_hp_ace_draw;
261
    global.enemy_attack_stat = ace_attack_stat;
262
    global.enemy_defense_stat = ace_defense_stat;
263
    global.battle_enemy_name_1 = "ace";
264
}
265
else if (case_exec == "T6 Quote Ace")
266
{
267
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
268
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t6_ace);
269
}
270
else if (case_exec == "T7 Quote Mooch")
271
{
272
    instance_create(420, 74, obj_quote_bubble_battle_reverse);
273
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t7_mooch);
274
}
275
else if (case_exec == "T7 Vanish Ace")
276
{
277
    vanish_type = "Ace";
278
    vanish_direction = -1;
279
    event_user(2);
280
}
281
else if (case_exec == "T7 Appear Mooch")
282
{
283
    instance_create(318, 224, obj_feisty_four_mooch_intro);
284
}
285
else if (case_exec == "T7 BG Mooch")
286
{
287
    with (obj_background_feisty_four_yellow)
288
    {
289
        spin_type = "Mooch Solo 2";
290
        event_user(2);
291
    }
292
    audio_vol_ed = 0;
293
    audio_vol_moray = 0;
294
    audio_vol_ace = 0;
295
    audio_vol_mooch = 1;
296
    event_user(1);
297
}
298
else if (case_exec == "T7 Obj Mooch")
299
{
300
    instance_create(318, 224, obj_feisty_four_mooch_body_full);
301
    current_hp_ace = global.current_hp_enemy;
302
    max_hp_ace = global.max_hp_enemy;
303
    last_hp_ace = global.last_hp_enemy;
304
    current_hp_ace_draw = global.current_hp_enemy;
305
    global.current_hp_enemy = current_hp_mooch;
306
    global.max_hp_enemy = max_hp_mooch;
307
    global.last_hp_enemy = last_hp_mooch;
308
    global.current_hp_enemy_draw = current_hp_mooch_draw;
309
    global.enemy_attack_stat = mooch_attack_stat;
310
    global.enemy_defense_stat = mooch_defense_stat;
311
    global.battle_enemy_name_1 = "mooch";
312
}
313
else if (case_exec == "T8 Vanish Mooch")
314
{
315
    vanish_type = "Mooch";
316
    vanish_direction = -1;
317
    event_user(2);
318
}
319
else if (case_exec == "T8 Appear Ed")
320
{
321
    instance_create(420, 224, obj_feisty_four_ed_intro);
322
    audio_play_sound(snd_feisty_ed_entrance, 1, 0);
323
}
324
else if (case_exec == "T8 BG Ed")
325
{
326
    with (obj_background_feisty_four_yellow)
327
    {
328
        spin_type = "Ed Moray Duo Ed";
329
        event_user(2);
330
    }
331
    audio_vol_ed = 1;
332
    audio_vol_ace = 0;
333
    audio_vol_mooch = 0;
334
    event_user(1);
335
}
336
else if (case_exec == "T8 Obj Ed")
337
{
338
    instance_create(420, 224, obj_feisty_four_ed_legs);
339
    global.current_hp_enemy_2 = current_hp_ed;
340
    global.max_hp_enemy_2 = max_hp_ed;
341
    global.last_hp_enemy_2 = last_hp_ed;
342
    global.current_hp_enemy_draw_2 = current_hp_ed_draw;
343
    global.enemy_attack_stat_2 = ed_attack_stat;
344
    global.enemy_defense_stat_2 = ed_defense_stat;
345
    global.battle_enemy_name_2 = "ed";
346
    global.enemy_count = 2;
347
    global.enemy_target_x = 216;
348
    global.enemy_target_y = 144;
349
    global.enemy_target_x_2 = 420;
350
    global.enemy_target_y_2 = 144;
351
    script_execute(scr_determine_attacking_damage_stat_critical);
352
}
353
else if (case_exec == "T8 Quote Ed")
354
{
355
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
356
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t8_ed);
357
}
358
else if (case_exec == "T8 Appear Moray")
359
{
360
    instance_create(216, 224, obj_feisty_four_moray_intro);
361
}
362
else if (case_exec == "T8 BG Moray")
363
{
364
    with (obj_background_feisty_four_yellow)
365
    {
366
        spin_type = "Ed Moray Duo Moray";
367
        event_user(2);
368
    }
369
    audio_vol_moray = 1;
370
    audio_vol_ace = 0;
371
    audio_vol_mooch = 0;
372
    event_user(1);
373
}
374
else if (case_exec == "T8 Obj Moray")
375
{
376
    instance_create(216, 224, obj_feisty_four_moray_legs);
377
    current_hp_mooch = global.current_hp_enemy;
378
    max_hp_mooch = global.max_hp_enemy;
379
    last_hp_mooch = global.last_hp_enemy;
380
    current_hp_mooch_draw = global.current_hp_enemy;
381
    global.current_hp_enemy = current_hp_moray;
382
    global.max_hp_enemy = max_hp_moray;
383
    global.last_hp_enemy = last_hp_moray;
384
    global.current_hp_enemy_draw = current_hp_moray_draw;
385
    global.enemy_attack_stat = moray_attack_stat;
386
    global.enemy_defense_stat = moray_defense_stat;
387
    global.battle_enemy_name_1 = "moray";
388
    with (obj_heart_battle_fighting_parent)
389
        event_user(0);
390
}
391
else if (case_exec == "T8 Quote Moray")
392
{
393
    instance_create(0, 74, obj_quote_bubble_battle_yellow_2_reverse);
394
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t8_moray);
395
}
396
else if (case_exec == "T9 Vanish Moray")
397
{
398
    vanish_type = "Moray";
399
    vanish_direction = -1;
400
    event_user(2);
401
}
402
else if (case_exec == "T9 Vanish Ed")
403
{
404
    vanish_type = "Ed";
405
    vanish_direction = 1;
406
    event_user(2);
407
}
408
else if (case_exec == "T9 Appear Ace")
409
{
410
    instance_create(216, 224, obj_feisty_four_ace_intro);
411
}
412
else if (case_exec == "T9 BG Ace")
413
{
414
    with (obj_background_feisty_four_yellow)
415
    {
416
        spin_type = "Ace Mooch Duo Ace";
417
        event_user(2);
418
    }
419
    audio_vol_ed = 0;
420
    audio_vol_moray = 0;
421
    audio_vol_ace = 1;
422
    event_user(1);
423
}
424
else if (case_exec == "T9 Obj Ace")
425
{
426
    instance_create(216, 224, obj_feisty_four_ace_legs);
427
    current_hp_moray = global.current_hp_enemy;
428
    max_hp_moray = global.max_hp_enemy;
429
    last_hp_moray = global.last_hp_enemy;
430
    current_hp_moray_draw = global.current_hp_enemy;
431
    global.current_hp_enemy = current_hp_ace;
432
    global.max_hp_enemy = max_hp_ace;
433
    global.last_hp_enemy = last_hp_ace;
434
    global.current_hp_enemy_draw = current_hp_ace_draw;
435
    global.enemy_attack_stat = ace_attack_stat;
436
    global.enemy_defense_stat = ace_defense_stat;
437
    global.battle_enemy_name_1 = "ace";
438
}
439
else if (case_exec == "T9 Quote Ace")
440
{
441
    instance_create(266, 74, obj_quote_bubble_battle_yellow_3);
442
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t9_ace);
443
}
444
else if (case_exec == "T9 Quote Mooch 1")
445
{
446
    instance_create(420, 74, obj_quote_bubble_battle_reverse);
447
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t9_mooch_1);
448
}
449
else if (case_exec == "T9 Appear Mooch")
450
{
451
    instance_create(420, 224, obj_feisty_four_mooch_intro);
452
}
453
else if (case_exec == "T9 BG Mooch")
454
{
455
    with (obj_background_feisty_four_yellow)
456
    {
457
        spin_type = "Ace Mooch Duo Mooch";
458
        event_user(2);
459
    }
460
    audio_vol_ed = 0;
461
    audio_vol_moray = 0;
462
    audio_vol_mooch = 1;
463
    event_user(1);
464
}
465
else if (case_exec == "T9 Obj Mooch")
466
{
467
    instance_create(420, 224, obj_feisty_four_mooch_body_full);
468
    current_hp_ed = global.current_hp_enemy_2;
469
    max_hp_ed = global.max_hp_enemy_2;
470
    last_hp_ed = global.last_hp_enemy_2;
471
    current_hp_ed_draw = global.current_hp_enemy_2;
472
    global.current_hp_enemy_2 = current_hp_mooch;
473
    global.max_hp_enemy_2 = max_hp_mooch;
474
    global.last_hp_enemy_2 = last_hp_mooch;
475
    global.current_hp_enemy_draw_2 = current_hp_mooch_draw;
476
    global.enemy_attack_stat_2 = mooch_attack_stat;
477
    global.enemy_defense_stat_2 = mooch_defense_stat;
478
    global.battle_enemy_name_2 = "mooch";
479
    with (obj_heart_battle_fighting_parent)
480
        event_user(0);
481
}
482
else if (case_exec == "T9 Quote Mooch 2")
483
{
484
    instance_create(100, 74, obj_quote_bubble_battle_reverse);
485
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t9_mooch_2);
486
}
487
else if (case_exec == "T10 Vanish Ace")
488
{
489
    vanish_type = "Ace";
490
    vanish_direction = -1;
491
    event_user(2);
492
}
493
else if (case_exec == "T10 Vanish Mooch")
494
{
495
    vanish_type = "Mooch";
496
    vanish_direction = 1;
497
    event_user(2);
498
}
499
else if (case_exec == "T10 Appear Ed")
500
{
501
    instance_create(318, 224, obj_feisty_four_ed_intro);
502
    audio_play_sound(snd_feisty_ed_entrance, 1, 0);
503
}
504
else if (case_exec == "T10 BG Ed")
505
{
506
    with (obj_background_feisty_four_yellow)
507
    {
508
        spin_type = "Ed Solo 2";
509
        event_user(2);
510
    }
511
    audio_vol_ed = 1;
512
    audio_vol_moray = 0;
513
    audio_vol_ace = 0;
514
    audio_vol_mooch = 0;
515
    event_user(1);
516
}
517
else if (case_exec == "T10 Obj Ed")
518
{
519
    instance_create(318, 224, obj_feisty_four_ed_legs);
520
    current_hp_ace = global.current_hp_enemy;
521
    max_hp_ace = global.max_hp_enemy;
522
    last_hp_ace = global.last_hp_enemy;
523
    current_hp_ace_draw = global.current_hp_enemy;
524
    current_hp_mooch = global.current_hp_enemy_2;
525
    max_hp_mooch = global.max_hp_enemy_2;
526
    last_hp_mooch = global.last_hp_enemy_2;
527
    current_hp_mooch_draw = global.current_hp_enemy_2;
528
    global.current_hp_enemy = current_hp_ed;
529
    global.max_hp_enemy = max_hp_ed;
530
    global.last_hp_enemy = last_hp_ed;
531
    global.current_hp_enemy_draw = current_hp_ed_draw;
532
    global.enemy_attack_stat = ed_attack_stat;
533
    global.enemy_defense_stat = ed_defense_stat;
534
    global.battle_enemy_name_1 = "ed";
535
    global.enemy_count = 1;
536
}
537
else if (case_exec == "T10 Quote Ed")
538
{
539
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
540
    instance_create_depth(0, 0, -1000, obj_quote_battle_feisty_four_t10_ed_1);
541
}