Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_08b_room_controller_Step_0

(view raw script w/o annotations or w/e)
1
var mo = obj_dunes_08b_mo
2
var stand = obj_dunes_08b_stand
3
switch scene
4
{
5
    case 0:
6
        if (global.dunes_flag[3] == 0)
7
        {
8
            if (obj_pl.y < 320)
9
            {
10
                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 }
()
11
                scr_audio_fade
scr_audio_fade

function scr_audio_fade(argument0, argument1) //gml_Script_scr_audio_fade { var snd = argument0 var fade_len = argument1 with (obj_radio) { audio_other_fade = true audio_to_fade = snd audio_fade_length = fade_len } }
(obj_radio.current_song, 500)
12
                scene++
13
            }
14
        }
15
        else
16
        {
17
            with (stand)
18
            {
19
                if (scr_interact
scr_interact

function scr_interact() //gml_Script_scr_interact { if (distance_to_object(obj_pl) < 20 && obj_pl.state == gml_Script_scr_normal_state) { var pl_dir = obj_pl.direction var pl_x = 0 var pl_y = 0 var check_distance_x = 0 var check_distance_y = 0 switch pl_dir { case 0: pl_x = obj_pl.bbox_right pl_y = obj_pl.bbox_top + 1 check_distance_x = 20 break case 180: pl_x = obj_pl.bbox_left pl_y = obj_pl.bbox_top + 1 check_distance_x = -20 break case 90: pl_x = obj_pl.x pl_y = obj_pl.bbox_top check_distance_y = -20 break case 270: pl_x = obj_pl.x pl_y = obj_pl.bbox_bottom check_distance_y = 20 break } if collision_line_first(pl_x, pl_y, (pl_x + check_distance_x), (pl_y + check_distance_y), id, false, false) return true; } }
() && keyboard_multicheck_pressed(0))
20
                    other.scene = 24
21
            }
22
        }
23
        break
24
    case 1:
25
        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, 280, 1)
26
        timer = 60
27
        scene++
28
        break
29
    case 2:
30
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
31
            return;
32
        with (obj_radio)
33
        {
34
            bgm = 164
35
            global.radio_restart = true
36
        }
37
        instance_create(200, 460, obj_dunes_08b_mo)
38
        with (mo)
39
        {
40
            x_dest[0] = x
41
            y_dest[0] = 370
42
            npc_dynamic_depth = false
43
            depth = (-room_height)
44
        }
45
        timer = 25
46
        scene++
47
        break
48
    case 3:
49
        with (mo)
50
        {
51
            if npc_arrived
52
            {
53
                with (other)
54
                {
55
                    if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
56
                    {
57
                    }
58
                }
59
                path_start(pt_small_jump, 4, path_action_stop, false)
60
                audio_play_sound(snd_playerjump, 1, 0)
61
                instance_create(x, (y - 29), obj_cutscene_ex)
62
                other.timer = 30
63
                other.scene++
64
            }
65
        }
66
        break
67
    case 4:
68
        if instance_exists(obj_cutscene_ex)
69
            obj_cutscene_ex.y = mo.y - 29
70
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
71
            return;
72
        instance_destroy(obj_cutscene_ex)
73
        with (mo)
74
        {
75
            image_speed = 0.4
76
            image_index = 0
77
            action_sprite = true
78
            sprite_index = spr_mo_dunes_sleeves
79
            other.scene++
80
        }
81
        break
82
    case 5:
83
        with (mo)
84
        {
85
            if (floor(image_index) == 4 || floor(image_index) == 11)
86
                audio_play_sound(snd_fabric_rip, 1, 0)
87
            if (floor(image_index) == 20)
88
            {
89
                if (!audio_is_playing(snd_mo_pop))
90
                    audio_play_sound(snd_mo_pop, 1, 0)
91
            }
92
            if on_animation_end()
93
            {
94
                action_sprite = false
95
                up_sprite = 958
96
                right_sprite = 960
97
                down_sprite = 962
98
                left_sprite = 961
99
                up_sprite_idle = 964
100
                right_sprite_idle = 960
101
                down_sprite_idle = 963
102
                left_sprite_idle = 961
103
                other.scene++
104
            }
105
        }
106
        break
107
    case 6:
108
        with (mo)
109
        {
110
            x_dest[0] = x
111
            y_dest[0] = 460
112
            actor_speed = 5
113
            can_walk = true
114
        }
115
        scene++
116
        break
117
    case 7:
118
        with (mo)
119
        {
120
            if npc_arrived
121
            {
122
                x = -15
123
                y = 250
124
                action_sprite = true
125
                can_walk = false
126
                hsp = 6
127
                sprite_index = spr_mo_slide_dunes
128
                audio_play_sound(snd_mo_slide, 1, 0)
129
                npc_dynamic_depth = true
130
                other.scene++
131
            }
132
        }
133
        break
134
    case 8:
135
        with (mo)
136
        {
137
            var xtarget = 160
138
            if (global.route == 3)
139
                xtarget = 200
140
            if (hsp > 0)
141
            {
142
                if (x > (xtarget - 175))
143
                    hsp -= 0.1
144
                x += hsp
145
            }
146
            if (x > xtarget)
147
            {
148
                action_sprite = false
149
                npc_direction = "down"
150
                x = xtarget
151
                other.timer = 15
152
                other.scene++
153
            }
154
        }
155
        break
156
    case 9:
157
        if (!scr_timer
scr_timer

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

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
160
        if (global.route != 3)
161
        {
162
            with (msg)
163
            {
164
                position = 0
165
                talker[0] = mo
166
                message[0] = "* Bam!"
167
                message[1] = "* Guess who it is?"
168
                message[2] = "* That's right! It's Mo!"
169
                message[3] = "* Long time no see!"
170
                message[4] = "* How have ya been? Don't answer#  that, we don't have the time."
171
                message[5] = "* I'm here to make you a BRAND.#  NEW. OFFER!"
172
                message[6] = "* A hot climate calls for a hot#  item!"
173
                message[7] = "* Check it!"
174
            }
175
            scene++
176
        }
177
        else
178
        {
179
            with (msg)
180
            {
181
                position = 0
182
                talker[0] = mo
183
                message[0] = "* Bam! Wam! Shang-a-lang!"
184
                message[1] = "* It's Mo time!"
185
                message[2] = "* And you know what they say:"
186
                message[3] = "* There's no time like MO TIME!"
187
                message[4] = "* Wait..."
188
                message[5] = "* You're that uh... that human#  from Snowdin."
189
                message[6] = "* There's some pretty nasty#  rumors going on about you..."
190
                if (message_current == 0)
191
                    message_check = 0
192
                if (message_current == 4 && message_check < 4)
193
                {
194
                    scr_music_sudden_stop
scr_music_sudden_stop

function scr_music_sudden_stop(argument0, argument1, argument2) //gml_Script_scr_music_sudden_stop { with (instance_create(0, 0, obj_audio_sudden_stop_helper)) { audio_to_fade = argument0 fade_strength = argument1 / 100 audio_stop = argument2 if (audio_stop == false) audio_resume_sound(argument0) } }
(mus_gimme_ur_cash_yellow, 3, 1)
195
                    message_check = 4
196
                    obj_dunes_08b_mo.down_sprite_idle = 3352
197
                    other.scene = 9.1
198
                    other.timer = 45
199
                }
200
            }
201
        }
202
        break
203
    case 9.1:
204
        if (global.dialogue_open || (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()))
205
            return;
206
        if (obj_dunes_08b_mo.down_sprite != 963)
207
        {
208
            obj_dunes_08b_mo.down_sprite_idle = 963
209
            scr_music_sudden_stop
scr_music_sudden_stop

function scr_music_sudden_stop(argument0, argument1, argument2) //gml_Script_scr_music_sudden_stop { with (instance_create(0, 0, obj_audio_sudden_stop_helper)) { audio_to_fade = argument0 fade_strength = argument1 / 100 audio_stop = argument2 if (audio_stop == false) audio_resume_sound(argument0) } }
(mus_gimme_ur_cash_yellow, 10, false)
210
        }
211
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
212
        with (msg)
213
        {
214
            position = 0
215
            talker[0] = mo
216
            message[0] = "* But come on! We've all#  committed a few felonies in our#  time, right?"
217
            message[1] = "* For me, a pinch of petty#  theft, a sprinkle of tax#  fraud... Diet crime!"
218
            message[2] = "* For you, disturbing the peace,#  battery, several...#  homicides..."
219
            message[3] = "* ALLEGEDLY!"
220
            message[4] = "* Who's got proof, right?#  Gossip's gotta gossip!"
221
            message[5] = "* ..."
222
            message[6] = "* So, you're probably thinkin'#  “What's this handsome cat#  selling???”"
223
            message[7] = "* First of all, I ain't a cat#  but I do appreciate the#  compliment!"
224
            message[8] = "* I had this whole spiel about#  “Water” but, hey, for my best#  customer?"
225
            message[9] = "* I'll skip RIGHT to the premium#  inventory!"
226
            message[10] = "* Check it!"
227
        }
228
        scene = 9.2
229
        break
230
    case 9.2:
231
        if ((!global.dialogue_open) && cutscene_npc_action_sprite(1615, 980, 0.25, false, 0, 303, 2))
232
            scene = 9.3
233
        break
234
    case 9.3:
235
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
236
            return;
237
        stand = instance_create(-60, 240, obj_dunes_08b_stand)
238
        stand.hsp = 8.7
239
        audio_play_sound(snd_mo_stand_depart, 1, 0)
240
        audio_resume_sound(obj_radio.current_song)
241
        scene = 9.4
242
        break
243
    case 9.4:
244
        with (stand)
245
        {
246
            if (hsp > 0)
247
            {
248
                hsp -= 0.1
249
                x += hsp
250
            }
251
            if (x > 200)
252
            {
253
                x = 200
254
                other.scene = 9.5
255
            }
256
        }
257
        break
258
    case 9.5:
259
        if cutscene_npc_walk(1615, 240, obj_dunes_08b_mo.y, 2, "y", "down", -4, 205, 230)
260
            scene = 23
261
        break
262
    case 10:
263
        if global.dialogue_open
264
            return;
265
        with (mo)
266
        {
267
            action_sprite = true
268
            image_speed = 0.4
269
            image_index = 0
270
            sprite_index = spr_mo_dunes_water
271
            other.scene++
272
        }
273
        obj_dunes_08b_dispenser.image_index = 1
274
        break
275
    case 11:
276
        with (mo)
277
        {
278
            if (floor(image_index) == 7)
279
            {
280
                if (!audio_is_playing(snd_tarpdrop))
281
                    audio_play_sound(snd_tarpdrop, 1, 0)
282
            }
283
            if on_animation_end()
284
            {
285
                instance_create(mo.x, mo.y, obj_dunes_08b_mo_tarp)
286
                action_sprite = false
287
                other.scene++
288
            }
289
        }
290
        break
291
    case 12:
292
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
293
        with (msg)
294
        {
295
            position = 0
296
            ch_msg = 4
297
            ch[1] = "Yes"
298
            ch[2] = "No"
299
            talker[0] = mo
300
            message[0] = "* Thaaat's right!"
301
            message[1] = "* I went all out this time. This#  is a real delicacy 'round here!"
302
            message[2] = "* It's called WATER. Catchy name,#  I know!"
303
            message[3] = "* Lucky for you, I'm giving out#  free samples!"
304
            message[4] = "* Want a glass?"
305
            if (outcome == 1)
306
            {
307
                message[5] = "* Comin' right up!"
308
                other.scene++
309
            }
310
            if (outcome == 2)
311
            {
312
                message[5] = "* Oh, come on, buddy!"
313
                message[6] = "* Your tongue must be as dry as#  the ground!"
314
                message[7] = "* Let me treat ya!"
315
                other.scene++
316
            }
317
        }
318
        break
319
    case 13:
320
        if global.dialogue_open
321
            return;
322
        with (mo)
323
        {
324
            x_dest[0] = x
325
            y_dest[0] = 220
326
            x_dest[1] = 232
327
            y_dest[1] = 252
328
            actor_speed = 2
329
            can_walk = true
330
            other.scene++
331
        }
332
        break
333
    case 14:
334
        with (mo)
335
        {
336
            if (!npc_arrived)
337
                return;
338
            action_sprite = true
339
            image_speed = 0.4
340
            image_index = 0
341
            sprite_index = spr_mo_dunes_dispense
342
            obj_dunes_08b_dispenser.image_index = 2
343
            instance_create(199, 269, part_steam_mo)
344
            other.scene++
345
        }
346
        break
347
    case 15:
348
        with (mo)
349
        {
350
            if (floor(image_index) == 7)
351
            {
352
                if (!audio_is_playing(snd_mo_kicks_the_bucket))
353
                    audio_play_sound(snd_mo_kicks_the_bucket, 1, 0)
354
            }
355
            if (floor(image_index) == 16)
356
            {
357
                if (!audio_is_playing(snd_switch))
358
                    audio_play_sound(snd_switch, 1, 0)
359
            }
360
            if (floor(image_index) == 59)
361
                audio_pause_sound(obj_radio.current_song)
362
            if (floor(image_index) == 75)
363
            {
364
                if (!audio_is_playing(snd_drip))
365
                    audio_play_sound(snd_drip, 1, 0)
366
            }
367
            if on_animation_end()
368
            {
369
                image_speed = 0
370
                with (obj_dunes_08b_dispenser)
371
                {
372
                    image_index = 3
373
                    depth = mo.depth - 1
374
                }
375
                other.scene++
376
                other.timer = 15
377
            }
378
        }
379
        break
380
    case 16:
381
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
382
            return;
383
        with (mo)
384
        {
385
            instance_create(198, 270, obj_dunes_08b_mo_bucket)
386
            mo.y -= 2
387
            action_sprite = false
388
            npc_direction = "left"
389
            other.timer = 15
390
            other.scene++
391
        }
392
        break
393
    case 17:
394
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
395
            return;
396
        with (mo)
397
        {
398
            action_sprite = false
399
            npc_direction = "right"
400
            other.timer = 15
401
            other.scene++
402
        }
403
        break
404
    case 18:
405
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
406
            return;
407
        mo.npc_direction = "down"
408
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
409
        with (msg)
410
        {
411
            position = 0
412
            talker[0] = mo
413
            message[0] = "* One moment."
414
        }
415
        scene++
416
        break
417
    case 19:
418
        if global.dialogue_open
419
            return;
420
        with (mo)
421
        {
422
            x_dest[0] = -40
423
            y_dest[0] = y
424
            actor_speed = 6
425
            can_walk = true
426
        }
427
        timer = 60
428
        scene++
429
        break
430
    case 20:
431
        if mo.npc_arrived
432
        {
433
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
434
                return;
435
            stand = instance_create(-60, 240, obj_dunes_08b_stand)
436
            stand.hsp = 8.7
437
            audio_play_sound(snd_mo_stand_depart, 1, 0)
438
            audio_resume_sound(obj_radio.current_song)
439
            with (mo)
440
            {
441
                hsp = 7.3
442
                action_sprite = true
443
                y = 230
444
                sprite_index = spr_mo_slide_dunes
445
            }
446
            scene++
447
        }
448
        break
449
    case 21:
450
        with (stand)
451
        {
452
            if (hsp > 0)
453
            {
454
                hsp -= 0.1
455
                x += hsp
456
            }
457
            if (x > 200)
458
            {
459
                x = 200
460
                other.scene++
461
                audio_play_sound(snd_mo_slide, 1, 0)
462
            }
463
        }
464
        break
465
    case 22:
466
        with (mo)
467
        {
468
            if (hsp > 0)
469
            {
470
                hsp -= 0.1
471
                x += hsp
472
            }
473
            if (x > 200)
474
            {
475
                x = 200
476
                action_sprite = false
477
                npc_direction = "down"
478
                other.scene++
479
            }
480
        }
481
        break
482
    case 23:
483
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
484
        with (msg)
485
        {
486
            position = 0
487
            talker[0] = mo
488
            if (global.route != 3)
489
            {
490
                message[0] = "* If you know your boy Mo, you#  know I planned all of that."
491
                message[1] = "* Here's my REAL product:#  ICE TEA!"
492
                message[2] = "* It's like the sequel to water.#  Way better!"
493
                message[3] = "* Now, I'ma be real with you."
494
                message[4] = "* The tea doesn't have ice in it#  particularly."
495
                message[5] = "* It started as a glass of ice,#  but that melted."
496
                message[6] = "* All I had to do was throw a tea#  bag in there and WAM!"
497
                message[7] = "* Don't worry! It tastes better#  this way."
498
            }
499
            else
500
            {
501
                message[0] = "* Ice Tea, baby!"
502
                message[1] = "* It's like the sequel to water!"
503
                message[2] = "* So..."
504
                message[3] = "* This is the part where you#  spend the G that may or may not#  belong to you!"
505
                message[4] = "* Hey, I ain't here to judge,#  I'm here to live!"
506
            }
507
        }
508
        if (!global.dialogue_open)
509
            scene++
510
        break
511
    case 24:
512
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
513
        with (msg)
514
        {
515
            dialogue_is_minishop = true
516
            portrait = false
517
            position = 0
518
            ch_msg = 0
519
            ch[1] = "Ice Tea"
520
            ch[2] = "Green Tea"
521
            ch[3] = "Sea Tea"
522
            ch[4] = "Cancel"
523
            if (global.extra_flag[4] == true)
524
                ch[1] = "-SOLD OUT-"
525
            if (global.extra_flag[5] == true)
526
                ch[2] = "-SOLD OUT-"
527
            if (global.extra_flag[6] == true)
528
                ch[3] = "-SOLD OUT-"
529
            talker[0] = mo
530
            message[0] = "* Here's what I got. (20 G)"
531
            if (global.dunes_flag[3] == 1)
532
            {
533
                message[0] = "* BAM!"
534
                message[1] = "* Welcome back!"
535
                message[2] = "* Here's what I got. (20 G)"
536
                ch_msg = 2
537
            }
538
            switch outcome
539
            {
540
                case 1:
541
                case 2:
542
                case 3:
543
                    ch_msg = -1
544
                    if (global.extra_flag[(outcome + 3)] == false)
545
                    {
546
                        if (!scr_inventory_check_space
scr_inventory_check_space

function scr_inventory_check_space() //gml_Script_scr_inventory_check_space { var i = 1 while (i <= 8) { if (global.item_slot[i] == "Nothing") return true; else { if (i == 8) return false; i++ continue } } }
())
547
                        {
548
                            message[(message_current + 1)] = "* Uh-oh, looks like you've got no#  space for this item."
549
                            message[(message_current + 2)] = "* Come back when you've made some#  more room."
550
                        }
551
                        else if (global.player_gold < 20)
552
                            message[(message_current + 1)] = "* Sorry, buddy. I'm gonna#  need more G than that."
553
                        else
554
                        {
555
                            message[(message_current + 1)] = "* Great choice."
556
                            message[(message_current + 2)] = "* Drink up!"
557
                            global.player_gold -= 20
558
                            scr_item
scr_item

function scr_item(argument0) //gml_Script_scr_item { nm = argument0 var i = 1 while (i <= 8) { if (global.item_slot[i] == "Nothing") { global.item_slot[i] = nm return true; } else { if (i == 8) return false; i++ continue } } }
(ch[outcome])
559
                            global.extra_flag[(outcome + 3)] = true
560
                            audio_play_sound(snd_shop_purchase, 1, 0)
561
                        }
562
                    }
563
                    else
564
                    {
565
                        message[(message_current + 1)] = "* What a popular item! I wish I#  could sell you more, but I'm#  fresh out."
566
                        choice = false
567
                    }
568
                    other.scene++
569
                    break
570
                case 4:
571
                    ch_msg = -1
572
                    message[(message_current + 1)] = "* Come on, pal."
573
                    message[(message_current + 2)] = "* I know my pitch was a little#  sloppy but I'm really tryin'."
574
                    message[(message_current + 3)] = "* If you change your mind, I'll#  be here."
575
                    other.scene++
576
                    break
577
            }
578
579
        }
580
        break
581
    case 25:
582
        if global.dialogue_open
583
            return;
584
        if (global.extra_flag[4] && global.extra_flag[5] && global.extra_flag[6])
585
        {
586
            scene = 27
587
            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 }
()
588
            return;
589
        }
590
        if 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, 1)
591
        {
592
            global.dunes_flag[3] = 1
593
            __view_set((9 << 0), 0, 1031)
594
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
595
            scene = 0
596
        }
597
        break
598
    case 27:
599
        cutscene_dialogue()
600
        with (msg)
601
        {
602
            message[0] = "* The alphabet must have#  25 letters now, cause I'm#  fresh outta T!"
603
            message[1] = "* I'm sure we'll meet#  again! Thanks for believin'#  in me!"
604
            talker[0] = 1615
605
        }
606
        break
607
    case 28:
608
        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_gimme_ur_cash_yellow, 300)
609
        cutscene_npc_action_sprite(1615, 980, 0.25, false, 0, 303, 2)
610
        break
611
    case 29:
612
        with (obj_dunes_08b_stand)
613
            hspeed = -6
614
        audio_play_sound(snd_mo_stand_depart, 1, 0)
615
        scene++
616
        break
617
    case 30:
618
        cutscene_wait(2)
619
        break
620
    case 31:
621
        cutscene_dialogue()
622
        with (msg)
623
        {
624
            message[0] = "* MO, OUT!"
625
            talker[0] = 1615
626
        }
627
        break
628
    case 32:
629
        cutscene_npc_walk(1615, -40, 260, 4, "y", "left")
630
        break
631
    case 33:
632
        if (global.party_member != -4)
633
        {
634
            cutscene_advance(34)
635
            return;
636
        }
637
        cutscene_advance(35)
638
        break
639
    case 34:
640
        cutscene_dialogue()
641
        with (msg)
642
        {
643
            sndfnt = 102
644
            talker[0] = 1170
645
            message[0] = "* That Mo is an odd one.	"
646
            message[1] = "* I woulda talked to him#  but I don't know how...#  legal his business is."
647
            message[2] = "* Our conversation#  could've turned very#  awkward, very fast."
648
            prt[0] = 321
649
            prt[1] = 324
650
            prt[2] = 321
651
        }
652
        break
653
    case 35:
654
        instance_destroy()
655
        instance_destroy(obj_dunes_08b_mo)
656
        instance_destroy(obj_dunes_08b_stand)
657
        global.dunes_flag[3] = 2
658
        scr_radio_restart
scr_radio_restart

function scr_radio_restart() //gml_Script_scr_radio_restart { with (obj_radio) event_user(0) }
()
659
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
660
        break
661
}