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