Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_east_cutscene_01_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        with (obj_pl)
5
        {
6
            if place_meeting(x, y, obj_event_collider)
7
            {
8
                scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
9
                instance_destroy(obj_event_collider)
10
                other.scene++
11
                other.timer = 15
12
            }
13
        }
14
        break
15
    case 1:
16
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
17
        with (msg)
18
        {
19
            sndfnt = 102
20
            message[0] = "* Huh? Hang on, I think#  someone's coming this#  way."
21
            prt[0] = 333
22
            talker[0] = 1170
23
        }
24
        if (!global.dialogue_open)
25
            scene++
26
        break
27
    case 2:
28
        player_npc = instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
29
        with (player_npc)
30
        {
31
            x_dest[0] = 720
32
            y_dest[0] = y
33
            can_walk = true
34
            end_direction = "up"
35
            actor_speed = 3
36
        }
37
        if (global.party_member != -4)
38
        {
39
            martlet = instance_create(obj_martlet_follower.x, obj_martlet_follower.y, obj_martlet_npc)
40
            obj_martlet_follower.image_alpha = 0
41
            with (martlet)
42
            {
43
                can_walk = true
44
                x_dest[0] = 750
45
                y_dest[0] = obj_pl.y
46
                end_direction = "up"
47
                actor_speed = 3
48
            }
49
        }
50
        scene++
51
        break
52
    case 3:
53
        if (player_npc.npc_arrived == true && martlet.npc_arrived == true)
54
            scene++
55
        break
56
    case 4:
57
        if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
58
        {
59
            moray = obj_moray_npc
60
            starlo = obj_starlo_npc
61
            mooch = obj_mooch_npc
62
            ed = obj_ed_npc
63
            ace = obj_ace_npc
64
            with (obj_actor_npc_base)
65
            {
66
                end_direction = "down"
67
                axis_override = "y"
68
                actor_speed = 2
69
            }
70
            moray.x = obj_pl.x
71
            moray.can_walk = true
72
            moray.x_dest[0] = moray.x
73
            moray.y_dest[0] = obj_pl.y - 60
74
            moray.actor_speed = 1
75
            timer = 15
76
            scene++
77
        }
78
        break
79
    case 5:
80
        if moray.npc_arrived
81
        {
82
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
83
                return;
84
            moray.npc_arrived = false
85
            with (moray)
86
                path_start(pt_small_jump, 4, path_action_stop, false)
87
            audio_play_sound(snd_playerjump, 1, 0)
88
            timer = 15
89
            scene++
90
        }
91
        break
92
    case 6:
93
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
94
            return;
95
        moray.npc_direction = "up"
96
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
97
        msg.talker[0] = moray
98
        msg.message[0] = "* Guys! Looky here!"
99
        msg.message[1] = "* Someone new has stumbled#  into our humble town."
100
        msg.prt[0] = 445
101
        msg.prt[1] = 445
102
        if (!global.dialogue_open)
103
            scene++
104
        break
105
    case 7:
106
        moray.npc_direction = "down"
107
        ace.x_dest[0] = ace.x
108
        ace.y_dest[0] = moray.y
109
        ace.can_walk = true
110
        if ace.npc_arrived
111
            scene++
112
        break
113
    case 8:
114
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
115
        msg.sndfnt = 106
116
        msg.talker[0] = ace
117
        msg.message[0] = "* This better not be#  another joke..."
118
        msg.prt[0] = 439
119
        if (!global.dialogue_open)
120
        {
121
            ace.x_dest[0] = starlo.x + 80
122
            ace.y_dest[0] = obj_pl.y - 35
123
            ace.axis_override = "x"
124
            ace.can_walk = true
125
            scene++
126
        }
127
        break
128
    case 9:
129
        ed.x_dest[0] = ed.x
130
        ed.y_dest[0] = moray.y
131
        ed.can_walk = true
132
        if ed.npc_arrived
133
            scene++
134
        break
135
    case 10:
136
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
137
        msg.sndfnt = 104
138
        msg.talker[0] = ed
139
        msg.message[0] = "* For once, don't look#  like it is."
140
        msg.prt[0] = 451
141
        if (!global.dialogue_open)
142
        {
143
            ed.x_dest[0] = starlo.x - 75
144
            ed.y_dest[0] = obj_pl.y - 35
145
            ed.axis_override = "x"
146
            ed.can_walk = true
147
            scene++
148
        }
149
        break
150
    case 11:
151
        mooch.x_dest[0] = starlo.x + 40
152
        mooch.y_dest[0] = obj_pl.y - 48
153
        mooch.can_walk = true
154
        if mooch.npc_arrived
155
            scene++
156
        break
157
    case 12:
158
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
159
        msg.sndfnt = 105
160
        msg.talker[0] = mooch
161
        msg.message[0] = "* Hiya, strangers!"
162
        msg.prt[0] = 462
163
        if (!global.dialogue_open)
164
        {
165
            mooch.npc_arrived = false
166
            scene++
167
        }
168
        break
169
    case 13:
170
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
171
        with (msg)
172
        {
173
            sndfnt = 102
174
            talker[0] = other.martlet
175
            message[0] = "* Oh, hello!"
176
            message[1] = "* We're just passing#  through."
177
            message[2] = "* We mean no harm, I#  promise."
178
            prt[0] = 318
179
            prt[1] = 323
180
            prt[2] = 323
181
        }
182
        if (!global.dialogue_open)
183
            scene++
184
        break
185
    case 14:
186
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
187
        with (msg)
188
        {
189
            sndfnt = 104
190
            talker[0] = other.ed
191
            message[0] = "* That's what the last#  guy said."
192
            message[1] = "* Let's just say he's one#  with the wind now..."
193
            prt[0] = 454
194
            prt[1] = 451
195
        }
196
        if (!global.dialogue_open)
197
            scene++
198
        break
199
    case 15:
200
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
201
        with (msg)
202
        {
203
            sndfnt = 102
204
            talker[0] = other.martlet
205
            message[0] = "* O-oh my gosh... You..."
206
            prt[0] = 330
207
        }
208
        if (!global.dialogue_open)
209
            scene++
210
        break
211
    case 16:
212
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
213
        with (msg)
214
        {
215
            sndfnt = 104
216
            talker[0] = other.ed
217
            message[0] = "* BWAHAHA!"
218
            message[1] = "* I'm just kiddin' around."
219
            message[2] = "* You were shakin' in#  your boots for a second!"
220
            prt[0] = 452
221
            prt[1] = 452
222
            prt[2] = 452
223
        }
224
        if (!global.dialogue_open)
225
            scene++
226
        break
227
    case 17:
228
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
229
        with (msg)
230
        {
231
            sndfnt = 102
232
            talker[0] = other.martlet
233
            message[0] = "* Heheh... heh... you sure#  got me!"
234
            prt[0] = 323
235
        }
236
        if (!global.dialogue_open)
237
            scene++
238
        break
239
    case 18:
240
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
241
        with (msg)
242
        {
243
            sndfnt = 109
244
            talker[0] = other.moray
245
            color = true
246
            col_modif[0] = make_color_rgb(255, 70, 160)
247
            message[0] = "* That wasn't very funny,#  Edward."
248
            message_col[0][0] = "                         #  Edward "
249
            message[1] = "* I can assure you we are#  a delight to be around."
250
            message[2] = "* Nothing you can't#  handle I'm sure."
251
            prt[0] = 446
252
            prt[1] = 449
253
            prt[2] = 445
254
        }
255
        if (!global.dialogue_open)
256
            scene++
257
        break
258
    case 19:
259
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
260
        with (msg)
261
        {
262
            sndfnt = 102
263
            talker[0] = other.martlet
264
            message[0] = "* I..."
265
            prt[0] = 322
266
        }
267
        if (!global.dialogue_open)
268
            scene++
269
        break
270
    case 20:
271
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
272
        with (msg)
273
        {
274
            color = true
275
            col_modif[0] = make_color_rgb(52, 170, 85)
276
            sndfnt = 106
277
            talker[0] = other.ace
278
            message[0] = "* Ugh..."
279
            message[1] = "* Why do you two insist#  on scaring away every#  monster you meet?"
280
            message[2] = "* At least Mooch never#  oversteps her bounds."
281
            message_col[2][0] = "           Mooch                              "
282
            prt[0] = 435
283
            prt[1] = 435
284
            prt[2] = 434
285
        }
286
        if (!global.dialogue_open)
287
            scene++
288
        break
289
    case 21:
290
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
291
        with (msg)
292
        {
293
            sndfnt = 105
294
            talker[0] = other.mooch
295
            message[0] = "* Never!"
296
            prt[0] = 458
297
        }
298
        if (!global.dialogue_open)
299
            scene++
300
        break
301
    case 22:
302
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
303
        with (msg)
304
        {
305
            sndfnt = 102
306
            talker[0] = other.martlet
307
            message[0] = "* Um, well, it was a#  pleasure to meet you#  four but..."
308
            message[1] = "* We'll be going#  now-   "
309
            prt[0] = 322
310
            prt[1] = 323
311
            if (message_current == 1)
312
            {
313
                skippable = false
314
                if (cutoff == string_length(message[message_current]))
315
                {
316
                    other.scene++
317
                    global.dialogue_open = false
318
                }
319
            }
320
        }
321
        break
322
    case 23:
323
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
324
        with (msg)
325
        {
326
            sndfnt = 107
327
            message[0] = "* Hold it right there, missy."
328
        }
329
        if (!global.dialogue_open)
330
        {
331
            scene++
332
            audio_play_sound(mus_starlo_entrance, 1, 0)
333
            timer = 75
334
        }
335
        break
336
    case 24:
337
        scr_camera_move
scr_camera_move

function scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move { if (!instance_exists(obj_camera)) { instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera) __view_set((9 << 0), 0, 1120) } else { obj_camera.x = __view_get((9 << 0), 0).x obj_camera.y = __view_get((9 << 0), 0).y __view_set((9 << 0), 0, 1120) } obj_camera.move = true obj_camera.xx = argument0 obj_camera.yy = argument1 obj_camera.spd = argument2 if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2) return true; else return false; }
(obj_pl.x, (obj_pl.y - 80), 0.5)
338
        starlo.x_dest[0] = starlo.x
339
        starlo.y_dest[0] = obj_pl.y - 60
340
        starlo.actor_speed = 0.5
341
        starlo.can_walk = true
342
        starlo.down_sprite = 197
343
        starlo.down_sprite_idle = 197
344
        moray.x_dest[0] = starlo.x - 30
345
        moray.y_dest[0] = obj_pl.y - 48
346
        moray.actor_speed = 2
347
        moray.can_walk = true
348
        moray.end_direction = "down"
349
        if (starlo.y > ((__view_get((1 << 0), 0)) + 20))
350
        {
351
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
352
            with (msg)
353
            {
354
                skippable = false
355
                position = 0
356
                sndfnt = 107
357
                talker[0] = other.starlo
358
                message[0] = "* Are my pals givin' you#  trouble?"
359
                message[1] = "* Come now..."
360
                message[2] = "* That ain't a way to#  treat guests, now is it?"
361
                prt[0] = 415
362
                prt[1] = 415
363
                prt[2] = 415
364
            }
365
            if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
366
            {
367
                with (msg)
368
                {
369
                    if ((message_current + 1) < array_length_1d(message))
370
                    {
371
                        message_current += 1
372
                        cutoff = 0
373
                        other.timer = 75
374
                    }
375
                    else
376
                        global.dialogue_open = false
377
                }
378
            }
379
            if (!global.dialogue_open)
380
            {
381
                scene++
382
                timer = 15
383
            }
384
        }
385
        break
386
    case 25:
387
        if ((!starlo.npc_arrived) || (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()))
388
            return;
389
        starlo.action_sprite = true
390
        starlo.sprite_index = spr_starlo_reveal
391
        starlo.image_speed = 0.3
392
        starlo.down_sprite = 196
393
        if (starlo.image_index >= (starlo.image_number - 1))
394
        {
395
            audio_play_sound(mus_feisty, 1, 1)
396
            starlo.image_speed = 0
397
            starlo.down_sprite_idle = 194
398
            starlo.action_sprite = false
399
            scene++
400
            timer = 15
401
        }
402
        break
403
    case 26:
404
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
405
        with (msg)
406
        {
407
            color = true
408
            col_modif[0] = make_color_rgb(255, 205, 107)
409
            sndfnt = 107
410
            talker[0] = 1169
411
            message[0] = "* The name's North Star.#  I run this town."
412
            message_col[0][0] = "             North Star                    "
413
            message[1] = "* Not alone, of course."
414
            message[2] = "* These fine monsters are#  my posse."
415
            message[3] = "* Together, we are..."
416
            prt[0] = 417
417
            prt[1] = 417
418
            prt[2] = 417
419
            prt[3] = 417
420
        }
421
        if (!global.dialogue_open)
422
        {
423
            starlo.action_sprite = true
424
            starlo.sprite_index = spr_starlo_pose
425
            starlo.image_speed = 0.25
426
            starlo.image_index = 0
427
            scene++
428
        }
429
        break
430
    case 27:
431
        if (floor(starlo.image_index == 5) && (!audio_is_playing(snd_shotstrong)))
432
        {
433
            audio_play_sound(snd_shotstrong, 1, 0)
434
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(10, 1)
435
        }
436
        if (starlo.image_index >= (starlo.image_number - 1))
437
        {
438
            starlo.image_speed = 0
439
            scene++
440
        }
441
        break
442
    case 28:
443
        if (!global.dialogue_open)
444
        {
445
            audio_sound_gain(mus_feisty, 0, 300)
446
            instance_create(((__view_get((0 << 0), 0)) + (__view_get((2 << 0), 0)) / 2), ((__view_get((1 << 0), 0)) + (__view_get((3 << 0), 0)) / 4), obj_wild_east_stamp_feisty)
447
            scene += 0.2
448
        }
449
        break
450
    case 28.2:
451
        if (!instance_exists(obj_wild_east_stamp_feisty))
452
            cutscene_advance(28.4)
453
        break
454
    case 28.4:
455
        audio_sound_gain(mus_feisty, 1, 300)
456
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
457
        with (msg)
458
        {
459
            sndfnt = 107
460
            message[0] = "* Our name stands for:"
461
            prt[0] = 417
462
        }
463
        if (!global.dialogue_open)
464
        {
465
            ed.action_sprite = true
466
            ed.sprite_index = spr_ed_pose
467
            ed.image_speed = 0.25
468
            scene += 0.6
469
        }
470
        break
471
    case 29:
472
        if (floor(ed.image_index) == 6 && (!audio_is_playing(snd_impact_gunshot)))
473
        {
474
            audio_play_sound(snd_impact_gunshot, 1, 0)
475
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(8, 1)
476
        }
477
        if (ed.image_index >= (ed.image_number - 1))
478
        {
479
            ed.image_speed = 0
480
            scene++
481
        }
482
        break
483
    case 30:
484
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
485
        with (msg)
486
        {
487
            color = true
488
            col_modif[0] = 65535
489
            message_col[0][0] = "  F"
490
            sndfnt = 104
491
            message[0] = "* Fearlessness!"
492
            prt[0] = 452
493
        }
494
        if (!global.dialogue_open)
495
        {
496
            moray.action_sprite = true
497
            moray.sprite_index = spr_moray_pose
498
            moray.image_speed = 0.25
499
            scene++
500
        }
501
        break
502
    case 31:
503
        if (floor(moray.image_index) == 4 && (!audio_is_playing(snd_shotweak)))
504
        {
505
            audio_play_sound(snd_shotweak, 1, 0)
506
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(6, 1)
507
        }
508
        if (moray.image_index >= (moray.image_number - 1))
509
        {
510
            moray.image_speed = 0
511
            scene++
512
        }
513
        break
514
    case 32:
515
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
516
        with (msg)
517
        {
518
            color = true
519
            col_modif[0] = 65535
520
            message_col[0][0] = "  E"
521
            sndfnt = 109
522
            message[0] = "* Excellence!"
523
            prt[0] = 445
524
        }
525
        if (!global.dialogue_open)
526
        {
527
            ace.action_sprite = true
528
            ace.sprite_index = spr_ace_pose
529
            ace.image_speed = 0.25
530
            scene++
531
        }
532
        break
533
    case 33:
534
        if (floor(ace.image_index) == 11 && (!audio_is_playing(snd_shotmid)))
535
        {
536
            audio_play_sound(snd_shotmid, 1, 0)
537
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(6, 1)
538
        }
539
        if (ace.image_index >= (ace.image_number - 1))
540
        {
541
            ace.image_speed = 0
542
            scene++
543
        }
544
        break
545
    case 34:
546
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
547
        with (msg)
548
        {
549
            color = true
550
            col_modif[0] = 65535
551
            message_col[0][0] = "  I"
552
            sndfnt = 106
553
            message[0] = "* Intuition!"
554
            prt[0] = 436
555
        }
556
        if (!global.dialogue_open)
557
        {
558
            mooch.action_sprite = true
559
            mooch.sprite_index = spr_mooch_pose
560
            mooch.image_speed = 0.25
561
            scene++
562
        }
563
        break
564
    case 35:
565
        if (floor(mooch.image_index) == 6 && (!audio_is_playing(snd_attackhitcrit)))
566
        {
567
            audio_play_sound(snd_attackhitcrit, 1, 0)
568
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(10, 1)
569
        }
570
        if (mooch.image_index >= (mooch.image_number - 1))
571
        {
572
            mooch.image_speed = 0
573
            scene++
574
        }
575
        break
576
    case 36:
577
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
578
        with (msg)
579
        {
580
            color = true
581
            col_modif[0] = 65535
582
            message_col[0][0] = "  S"
583
            sndfnt = 105
584
            message[0] = "* Sneakiness!"
585
            prt[0] = 462
586
        }
587
        if (!global.dialogue_open)
588
        {
589
            scene += 0.5
590
            ed.image_index = 0
591
            ed.image_speed = (1/3)
592
        }
593
        break
594
    case 36.5:
595
        if (floor(ed.image_index) == 6 && (!audio_is_playing(snd_impact_gunshot)))
596
        {
597
            audio_play_sound(snd_impact_gunshot, 1, 0)
598
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(8, 1)
599
        }
600
        if (ed.image_index >= (ed.image_number - 1))
601
        {
602
            ed.image_speed = 0
603
            scene += 0.5
604
        }
605
        break
606
    case 37:
607
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
608
        with (msg)
609
        {
610
            color = true
611
            col_modif[0] = 65535
612
            message_col[0][0] = "  T"
613
            sndfnt = 104
614
            message[0] = "* Toughness!"
615
            prt[0] = 451
616
        }
617
        if (!global.dialogue_open)
618
        {
619
            moray.image_index = 0
620
            moray.image_speed = 0.25
621
            scene += 0.5
622
        }
623
        break
624
    case 37.5:
625
        if (floor(moray.image_index) == 4 && (!audio_is_playing(snd_shotweak)))
626
        {
627
            audio_play_sound(snd_shotweak, 1, 0)
628
            scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(6, 1)
629
        }
630
        if (moray.image_index >= (moray.image_number - 1))
631
        {
632
            moray.image_speed = 0
633
            scene += 0.5
634
        }
635
        break
636
    case 38:
637
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
638
        with (msg)
639
        {
640
            color = true
641
            col_modif[0] = 65535
642
            message_col[0][0] = "  Y"
643
            sndfnt = 109
644
            message[0] = "* Youthfulness!"
645
            prt[0] = 445
646
        }
647
        if (!global.dialogue_open)
648
            scene += 1
649
        break
650
    case 39:
651
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
652
        with (msg)
653
        {
654
            color = true
655
            col_modif[0] = 65535
656
            message_col[0][0] = "  J"
657
            sndfnt = 107
658
            message[0] = "* Justice!"
659
            message[1] = "* ..."
660
            talker[1] = 1169
661
            message[2] = "* The J is silent."
662
            message[3] = "* Anyway,"
663
            message[4] = "* Now that we're#  introduced..."
664
            message[5] = "* I'd be glad to give you#  and yer buddy a tour-"
665
            message[6] = "* Hold on..."
666
            message[7] = "* Yer buddy..."
667
            message[8] = "* Are they a... HUMAN?"
668
            prt[0] = 422
669
            prt[1] = 421
670
            prt[2] = 407
671
            prt[3] = 417
672
            prt[4] = 415
673
            prt[5] = 417
674
            prt[6] = 421
675
            prt[7] = 421
676
            prt[8] = 426
677
        }
678
        if (msg.message_current == 1)
679
            audio_sound_gain(mus_feisty, 0, 100)
680
        if (msg.message_current == 2)
681
        {
682
            starlo.action_sprite = false
683
            mooch.action_sprite = false
684
            ed.action_sprite = false
685
            moray.action_sprite = false
686
            ace.action_sprite = false
687
        }
688
        if (msg.message_current == 3)
689
            audio_sound_gain(mus_feisty, 1, 100)
690
        if (!global.dialogue_open)
691
            scene++
692
        break
693
    case 40:
694
        with (martlet)
695
        {
696
            x_dest[0] = obj_pl.x
697
            y_dest[0] = obj_pl.y - 15
698
            end_direction = "up"
699
            actor_speed = 4
700
            axis_override = "y"
701
            can_walk = true
702
        }
703
        scene++
704
        break
705
    case 41:
706
        if (!martlet.npc_arrived)
707
            return;
708
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
709
        with (msg)
710
        {
711
            sndfnt = 102
712
            talker[0] = other.martlet
713
            message[0] = "* Um..."
714
            message[1] = "* Well... I won't say no?"
715
            prt[0] = 322
716
            prt[1] = 323
717
        }
718
        if (!global.dialogue_open)
719
            scene++
720
        break
721
    case 42:
722
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
723
        with (msg)
724
        {
725
            sndfnt = 107
726
            talker[0] = 1169
727
            message[0] = "* I knew it!"
728
            message[1] = "* There ain't no doubt in#  my mind!"
729
            message[2] = "* That this kid is a real,#  living, authentic human!"
730
            message[3] = "* Sorry 'bout this."
731
            message[4] = "* I gotta seize this#  once-in-a-lifetime#  opportunity!"
732
            message[5] = "* Ed, fetch me that kid."
733
            prt[0] = 417
734
            prt[1] = 419
735
            prt[2] = 422
736
            prt[3] = 415
737
            prt[4] = 417
738
            prt[5] = 421
739
        }
740
        if (!global.dialogue_open)
741
            scene++
742
        break
743
    case 43:
744
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
745
        with (msg)
746
        {
747
            sndfnt = 104
748
            talker[0] = other.ed
749
            message[0] = "* Sure thing."
750
            prt[0] = 451
751
        }
752
        if (!global.dialogue_open)
753
            scene++
754
        break
755
    case 44:
756
        ed.x_dest[0] = player_npc.x
757
        ed.y_dest[0] = player_npc.y - 15
758
        ed.can_walk = true
759
        ed.end_direction = "down"
760
        with (martlet)
761
        {
762
            if place_meeting(x, (y - 30), other.ed)
763
            {
764
                x_dest[0] = x + 40
765
                y_dest[0] = y
766
                can_walk = true
767
                actor_speed = 2
768
                end_direction = "left"
769
                right_sprite = left_sprite
770
                other.scene++
771
            }
772
        }
773
        break
774
    case 45:
775
        if ed.npc_arrived
776
        {
777
            ed.action_sprite = true
778
            ed.sprite_index = spr_ed_grab_clover
779
            ed.image_speed = 0.25
780
            instance_destroy(player_npc)
781
            obj_pl.image_alpha = 0
782
            if (round(ed.image_index) == 7)
783
            {
784
                if (!audio_is_playing(snd_toy_squeak))
785
                    audio_play_sound(snd_toy_squeak, 1, 0)
786
            }
787
            if (ed.image_index >= (ed.image_number - 1))
788
            {
789
                ed.image_speed = 0
790
                ed.up_sprite = 155
791
                ed.right_sprite = 152
792
                ed.down_sprite = 154
793
                ed.left_sprite = 150
794
                ed.up_sprite_idle = 155
795
                ed.right_sprite_idle = 152
796
                ed.down_sprite_idle = 154
797
                ed.left_sprite_idle = 150
798
                ed.action_sprite = false
799
                ed.x_dest[0] = starlo.x - 74
800
                ed.y_dest[0] = starlo.y - 20
801
                ed.can_walk = true
802
                ed.end_direction = "down"
803
                ed.npc_arrived = false
804
                scene++
805
            }
806
        }
807
        break
808
    case 46:
809
        if ed.npc_arrived
810
            scene++
811
        break
812
    case 47:
813
        martlet.x_dest[0] = 720
814
        martlet.y_dest[0] = martlet.y
815
        martlet.end_direction = "up"
816
        martlet.actor_speed = 2
817
        martlet.can_walk = true
818
        if martlet.npc_arrived
819
        {
820
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
821
            with (msg)
822
            {
823
                sndfnt = 102
824
                talker[0] = other.martlet
825
                message[0] = "* Wait! What are you doing#  with Clover!"
826
                prt[0] = 330
827
            }
828
            if (!global.dialogue_open)
829
            {
830
                ace.npc_arrived = false
831
                mooch.npc_arrived = false
832
                moray.npc_arrived = false
833
                moray.x_dest[0] = starlo.x - 30
834
                moray.y_dest[0] = ace.y
835
                moray.can_walk = true
836
                mooch.x_dest[0] = starlo.x
837
                mooch.y_dest[0] = ace.y
838
                mooch.can_walk = true
839
                ace.x_dest[0] = starlo.x + 30
840
                ace.y_dest[0] = ace.y
841
                ace.can_walk = true
842
                scene++
843
            }
844
        }
845
        break
846
    case 48:
847
        if (ace.npc_arrived == true && mooch.npc_arrived == true && moray.npc_arrived == true && ed.npc_arrived == true)
848
        {
849
            timer = 15
850
            scene++
851
        }
852
        break
853
    case 49:
854
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
855
            return;
856
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
857
        with (msg)
858
        {
859
            sndfnt = 107
860
            talker[0] = 1169
861
            message[0] = "* Ah, Clover, is it?#  That's a mighty fine#  name!"
862
            message[1] = "* To answer yer question,#  Feathers, Clover and I#  got a town to run!"
863
            prt[0] = 407
864
            prt[1] = 417
865
        }
866
        if (!global.dialogue_open)
867
            scene++
868
        break
869
    case 50:
870
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
871
        with (msg)
872
        {
873
            sndfnt = 102
874
            talker[0] = other.martlet
875
            message[0] = "* Don't \"Feathers\" me!"
876
            message[1] = "* You're speaking to#  Martlet of the Royal#  Guard!"
877
            message[2] = "* I can and will report#  you to King ASGORE for#  this abrasive behavior!"
878
            prt[0] = 309
879
            prt[1] = 309
880
            prt[2] = 309
881
        }
882
        if (!global.dialogue_open)
883
            scene++
884
        break
885
    case 51:
886
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
887
        with (msg)
888
        {
889
            sndfnt = 107
890
            talker[0] = 1169
891
            message[0] = "* Ye're Royal Guard? "
892
            message[1] = "* That's funny, 'cuz I#  don't see anythin' to#  indicate that."
893
            message[2] = "* No armor? Weapon? Badge?"
894
            prt[0] = 407
895
            prt[1] = 421
896
            prt[2] = 424
897
        }
898
        if (!global.dialogue_open)
899
            scene++
900
        break
901
    case 52:
902
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
903
        with (msg)
904
        {
905
            sndfnt = 102
906
            talker[0] = other.martlet
907
            message[0] = "* I... left it all at#  my post in Snowdin!"
908
            prt[0] = 329
909
        }
910
        if (!global.dialogue_open)
911
            scene++
912
        break
913
    case 53:
914
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
915
        with (msg)
916
        {
917
            sndfnt = 106
918
            talker[0] = other.ace
919
            message[0] = "* Please, don't bother#  trying to fool#  us."
920
            prt[0] = 435
921
        }
922
        if (!global.dialogue_open)
923
            scene++
924
        break
925
    case 54:
926
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
927
        with (msg)
928
        {
929
            sndfnt = 107
930
            talker[0] = 1169
931
            message[0] = "* He's right."
932
            message[1] = "* I am truly sorry 'bout#  this, I really am."
933
            message[2] = "* But business is#  business."
934
            message[3] = "* Together, we'll be the#  Feisty SIX!"
935
            prt[0] = 421
936
            prt[1] = 415
937
            prt[2] = 417
938
            prt[3] = 422
939
        }
940
        if (!global.dialogue_open)
941
        {
942
            timer = 15
943
            scene++
944
        }
945
        break
946
    case 55:
947
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
948
        with (msg)
949
        {
950
            sndfnt = 104
951
            talker[0] = other.ed
952
            message[0] = "* The alliteration..."
953
            prt[0] = 454
954
        }
955
        if (!global.dialogue_open)
956
            scene++
957
        break
958
    case 56:
959
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
960
        with (msg)
961
        {
962
            sndfnt = 107
963
            talker[0] = 1169
964
            message[0] = "* Shh."
965
            prt[0] = 412
966
        }
967
        if (!global.dialogue_open)
968
            scene++
969
        break
970
    case 57:
971
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
972
        with (msg)
973
        {
974
            sndfnt = 102
975
            talker[0] = other.martlet
976
            message[0] = "* Tsk!"
977
            message[1] = "* Clover! I can't go up#  against these guys."
978
            message[2] = "* Don't worry! I'll figure#  this out!"
979
            prt[0] = 309
980
            prt[1] = 329
981
            prt[2] = 317
982
        }
983
        if (!global.dialogue_open)
984
            scene++
985
        break
986
    case 58:
987
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
988
        with (msg)
989
        {
990
            sndfnt = 109
991
            talker[0] = other.moray
992
            message[0] = "* Star, should we be doing#  this?"
993
            message[1] = "* Poor Martlet is upset."
994
            prt[0] = 449
995
            prt[1] = 446
996
        }
997
        if (!global.dialogue_open)
998
            scene++
999
        break
1000
    case 59:
1001
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
1002
        with (msg)
1003
        {
1004
            color = true
1005
            col_modif[0] = make_color_rgb(90, 88, 207)
1006
            sndfnt = 105
1007
            talker[0] = other.mooch
1008
            message[0] = "* Don't be a buzzkill,#  Moray."
1009
            message_col[0][0] = "                      #  Moray "
1010
            message[1] = "* When's the last time#  something exciting#  happened around here?"
1011
            prt[0] = 460
1012
            prt[1] = 455
1013
        }
1014
        if (!global.dialogue_open)
1015
            scene++
1016
        break
1017
    case 60:
1018
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
1019
        with (msg)
1020
        {
1021
            sndfnt = 109
1022
            talker[0] = other.moray
1023
            message[0] = "* You've got a point."
1024
            prt[0] = 449
1025
        }
1026
        if (!global.dialogue_open)
1027
            scene++
1028
        break
1029
    case 61:
1030
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
1031
        with (msg)
1032
        {
1033
            sndfnt = 107
1034
            talker[0] = 1169
1035
            message[0] = "* Ahem!"
1036
            message[1] = "* This town's FULL of#  excitement. Especially#  now."
1037
            message[2] = "* Let's go, bud!"
1038
            prt[0] = 421
1039
            prt[1] = 417
1040
            prt[2] = 417
1041
        }
1042
        if (!global.dialogue_open)
1043
        {
1044
            scene++
1045
            starlo.can_walk = true
1046
            starlo.npc_arrived = false
1047
            starlo.x_dest[0] = starlo.x
1048
            starlo.y_dest[0] = starlo.y - 60
1049
            starlo.actor_speed = 1
1050
            starlo.end_direction = "up"
1051
            scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len) if instance_exists(obj_audio_fade_helper) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd }
(mus_feisty, 3000)
1052
        }
1053
        break
1054
    case 62:
1055
        if (!starlo.npc_arrived)
1056
            return;
1057
        with (starlo)
1058
        {
1059
            action_sprite = true
1060
            sprite_index = spr_starlo_turn_back
1061
        }
1062
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
1063
        with (msg)
1064
        {
1065
            color = true
1066
            col_modif[0] = 65535
1067
            sndfnt = 107
1068
            position = 0
1069
            talker[0] = other.starlo
1070
            message[0] = "* Oh, and Feathers..."
1071
            message[1] = "* Welcome to The Wild#  East."
1072
            message_col[1][0] = "             The Wild#  East "
1073
            prt[0] = 415
1074
            prt[1] = 417
1075
        }
1076
        if (!global.dialogue_open)
1077
        {
1078
            starlo.action_sprite = false
1079
            starlo.npc_arrived = false
1080
            starlo.can_walk = true
1081
            starlo.x_dest[0] = starlo.x
1082
            starlo.y_dest[0] = starlo.y - 80
1083
            starlo.actor_speed = 1
1084
            ed.can_walk = true
1085
            ed.axis_override = "x"
1086
            ed.x_dest[0] = starlo.x
1087
            ed.y_dest[0] = starlo.y - 100
1088
            ed.actor_speed = 1.5
1089
            scene++
1090
        }
1091
        break
1092
    case 63:
1093
        if (starlo.npc_arrived == true)
1094
        {
1095
            trn = instance_create(0, 0, obj_transition)
1096
            trn.newRoom = 128
1097
            trn.fadespeed = 4
1098
            trn.xx = 200
1099
            trn.yy = 390
1100
            instance_destroy()
1101
            global.party_member = -4
1102
        }
1103
        break
1104
}