Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mail_whale_snowdin_11_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 1:
4
        y += fly_speed
5
        if (y > 0)
6
            mail_whale_shadow_alpha += 0.025
7
        if (y > 80 && fly_speed > 0)
8
            fly_speed -= 0.2
9
        else if (fly_speed == 0)
10
            scene = 2
11
        break
12
    case 2:
13
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
14
        with (msg)
15
        {
16
            portrait = false
17
            message[0] = "* Oh boy, oh gee, a customer!#* I'm nervous!"
18
            message[1] = "* I'm a Mail Whale from the#  Underground Postal Service!"
19
            message[2] = "* Haven't heard of us? We're the#  best!"
20
            message[3] = "* For short, just call us UGPS!"
21
            message[4] = "* So I hear you're new to the#  Underground!"
22
            message[5] = "* How you ask? Well, word sure#  gets around!"
23
            message[6] = "* The Underground is great and it#  keeps getting better."
24
            message[7] = "* 'Cause I brought for you your#  very first letter!"
25
            message[8] = "* (YOU RECEIVED MAIL!)"
26
            message[9] = "* That was a special letter, from#  us to you!"
27
            message[10] = "* Do you feel welcome now? I hope#  you do!"
28
            message[11] = "* Isn't the mail system a#  wonderful innovation?"
29
            message[12] = "* If you ever want to use it,#  just come to a station!"
30
            message[13] = "* They look just like this and#  they're scattered all about!"
31
            message[14] = "* If you want to receive some#  mail, find one, and give a#  shout!"
32
            message[15] = "* We assure you, they are#  conveniently situated!"
33
            message[16] = "* Here at UGPS, we're anything#  but dated!"
34
            message[17] = "* Talking and sharing, all using#  mail!"
35
            message[18] = "* From your Underground friends,#  but that's all for this whale!"
36
            message[19] = "* Now, I must be off! The mail#  mustn't be late!"
37
            message[20] = "* See you later on in your#  journey, mate!"
38
            if (message_current == 8)
39
            {
40
                scr_mail_add
scr_mail_add

function scr_mail_add(argument0) //gml_Script_scr_mail_add { ds_list_add(global.mail_list, argument0) if (irandom(global.spam_mail_chance) == 1) { show_debug_message("success") ds_list_add(global.mail_list, choose("Spam Letter 1", "Spam Letter 2", "Spam Letter 3", "Spam Letter 4", "Spam Letter 5", "Spam Letter 6", "Spam Letter 7", "Spam Letter 8", "Spam Letter 9")) global.spam_mail_chance = 30 } else global.spam_mail_chance = clamp((global.spam_mail_chance - 1), 1, 999) scr_mail_sort() }
("Intro Letter")
41
                audio_play_sound(snd_success, 20, 0)
42
                other.scene++
43
            }
44
        }
45
        break
46
    case 3:
47
        if (!instance_exists(obj_dialogue))
48
        {
49
            audio_sound_gain(mus_delivery, 0, 1000)
50
            y -= fly_speed
51
            mail_whale_shadow_alpha -= 0.05
52
            if (y > -40 && fly_speed < 2)
53
                fly_speed += 0.2
54
            if (y <= -40)
55
            {
56
                instance_destroy()
57
                scr_radio_fade
scr_radio_fade

function scr_radio_fade(argument0, argument1) //gml_Script_scr_radio_fade { var fade_vol = argument0 var fade_len = argument1 with (obj_radio) audio_sound_gain(current_song, fade_vol, fade_len) }
(1, 1000)
58
                scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
59
                global.snowdin_flag[7] = 1
60
                instance_destroy()
61
            }
62
        }
63
        break
64
}