Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_snowdin_22_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_dialogue) && obj_dialogue.sndfnt == 96)
2
{
3
    if (obj_dialogue.cutoff == string_length(obj_dialogue.message[obj_dialogue.message_current]))
4
    {
5
        image_speed = 0
6
        image_index = 0
7
    }
8
    else
9
        image_speed = 0.2
10
}
11
switch scene
12
{
13
    case 1:
14
        image_speed = 0.2
15
        image_alpha = 1
16
        scene++
17
        break
18
    case 2:
19
        if on_animation_end()
20
        {
21
            sprite_index = spr_flowey
22
            image_speed = 0
23
            timer = 15
24
            scene++
25
        }
26
        break
27
    case 3:
28
        if (!scr_timer
scr_timer

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

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
31
        with (msg)
32
        {
33
            sndfnt = 96
34
            message[0] = "* Wowie, what a day!"
35
            message[1] = "* Congrats, pal."
36
            message[2] = "* You beat your first#  Royal Guard."
37
            message[3] = "* Though, I'm not sure#  how she got promoted#  past feather-duster."
38
            message[4] = "* Have to give her some#  credit though,"
39
            message[5] = "* This boat looks like#  your ticket out of the#  cold."
40
            message[6] = "* If you follow this#  current..."
41
            message[7] = "* You'll be living it up#  in Hotland before you#  know it."
42
            message[8] = "* Now there's no time to#  waste."
43
            prt[0] = 348
44
            prt[1] = 349
45
            prt[2] = 349
46
            prt[3] = 347
47
            prt[4] = 348
48
            prt[5] = 347
49
            prt[6] = 348
50
            prt[7] = 348
51
            prt[8] = 348
52
            if (global.snowdin_flag[15] == 1)
53
            {
54
                message[9] = "* See you later,#  Clover!"
55
                prt[9] = 348
56
                other.timer = 15
57
                other.scene = 6
58
            }
59
            else
60
            {
61
                message[9] = "* See you later,#  Gun-hat!"
62
                prt[9] = 349
63
                other.timer = 30
64
                other.scene = 4
65
            }
66
        }
67
        break
68
    case 4:
69
        if (global.dialogue_open || (!scr_timer
scr_timer

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

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
72
        with (msg)
73
        {
74
            sndfnt = 96
75
            message[0] = "* Okay, I've been#  thinking. "
76
            message[1] = "* Gun-hat can't be your#  real name."
77
            message[2] = "* You can't pull one over#  on old Flowey."
78
            prt[0] = 348
79
            prt[1] = 347
80
            prt[2] = 3251
81
        }
82
        if (!global.dialogue_open)
83
        {
84
            timer = 30
85
            scene++
86
        }
87
        break
88
    case 5:
89
        if (!scr_timer
scr_timer

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

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
92
        with (msg)
93
        {
94
            sndfnt = 96
95
            message[0] = "* Whatever your real name#  is,"
96
            message[1] = "* I've decided I don't#  care."
97
            message[2] = "* Just know, friends#  shouldn't do that to one#  another."
98
            message[3] = "* I wouldn't do that to#  you, now would I,#  Clover?"
99
            prt[0] = 348
100
            prt[1] = 349
101
            prt[2] = 349
102
            prt[3] = 3251
103
        }
104
        if (!global.dialogue_open)
105
        {
106
            timer = 30
107
            scene++
108
        }
109
        break
110
    case 6:
111
        if (global.dialogue_open == true || (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()))
112
            return;
113
        sprite_index = spr_floweyleave
114
        image_speed = 0.2
115
        scene++
116
        break
117
    case 7:
118
        if (!on_animation_end())
119
            return;
120
        image_speed = 0
121
        instance_destroy()
122
        global.snowdin_flag[14] = 2
123
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
124
        audio_sound_gain(obj_radio.current_song, 1, 500)
125
        break
126
}