Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_snowdin3_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(scr_depth, 0, 0, 0, 0, 0);
2
obj_pl.state = scr_frozen_state;
3
if (global.route != 3)
4
{
5
    if (waiter == 1)
6
    {
7
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
8
        with (msg)
9
        {
10
            sndfnt = 96;
11
            message[0] = "* Howdy!";
12
            message[1] = "* Congratulations on being#  rid of those old ruins#  for good!";
13
            message[2] = "* You couldn't even go#  back if you wanted#  to now!";
14
            message[3] = "* Isn't the thought of#  fresh air exciting?";
15
            message[4] = "* Well, don't get ahead#  of yourself.";
16
            message[5] = "* You're still in the#  Underground.";
17
            message[6] = "* We won't be anywhere#  near your fancy Surface#  air for a while!";
18
            message[7] = "* Now, let's get moving#  before my petals freeze.";
19
            message[8] = "* Hop to it, bud!";
20
            prt[0] = 348;
21
            prt[1] = 357;
22
            prt[2] = 347;
23
            prt[3] = 352;
24
            prt[4] = 348;
25
            prt[5] = 348;
26
            prt[6] = 348;
27
            prt[7] = 348;
28
            prt[8] = 348;
29
        }
30
        waiter = 2;
31
    }
32
    if (waiter == 2 && !instance_exists(obj_dialogue))
33
    {
34
        timer = 30;
35
        waiter = 3;
36
    }
37
    if (waiter == 4)
38
    {
39
        if (!instance_exists(obj_dialogue))
40
            msg = instance_create(x, y, obj_dialogue);
41
        with (msg)
42
        {
43
            sndfnt = 96;
44
            message[0] = "* Actually, what was your#  name again?";
45
            message[1] = "* It isn't bud.";
46
            message[2] = "* It's... Gun... hat...?";
47
            prt[0] = 348;
48
            prt[1] = 352;
49
            prt[2] = 348;
50
            ch_msg = 2;
51
            ch[1] = "It's\nClover";
52
            ch[2] = "That's\nRight";
53
            if (outcome == 1 && message_current == 2)
54
            {
55
                message[3] = "* Clover.";
56
                prt[3] = 347;
57
                other.choice = 2;
58
                other.waiter = 6;
59
            }
60
            else if (outcome == 2 && message_current == 2)
61
            {
62
                message[3] = "* It is?";
63
                prt[3] = 352;
64
                other.choice = 1;
65
                other.waiter = 6;
66
            }
67
        }
68
    }
69
    if (waiter == 6 && !instance_exists(obj_dialogue))
70
    {
71
        if (timer == -1)
72
            timer = 30;
73
    }
74
    if (waiter == 7)
75
    {
76
        if (!instance_exists(obj_dialogue))
77
            msg = instance_create(x, y, obj_dialogue);
78
        with (msg)
79
        {
80
            if (other.choice == 1)
81
            {
82
                sndfnt = 96;
83
                message[0] = "* Well, Gun-hat.#  Enough talk.";
84
                message[1] = "* See ya.";
85
                prt[0] = 352;
86
                prt[1] = 348;
87
                global.snowdin_flag[15] = 2;
88
            }
89
            else if (other.choice == 2)
90
            {
91
                sndfnt = 96;
92
                message[0] = "* Nice name there.";
93
                message[1] = "* I thought I was the#  only flower around here.";
94
                message[2] = "* Well then, 'Clover.'#  Let's get a move on.";
95
                message[3] = "* I'll see you up ahead,#  hopefully somewhere#  warmer.";
96
                prt[0] = 347;
97
                prt[1] = 348;
98
                prt[2] = 348;
99
                prt[3] = 347;
100
                global.snowdin_flag[15] = 1;
101
            }
102
        }
103
        waiter = 8;
104
    }
105
}
106
else if (global.route == 3)
107
{
108
    if (waiter == 1)
109
    {
110
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
111
        with (msg)
112
        {
113
            sndfnt = 96;
114
            message[0] = "* Howdy!";
115
            message[1] = "* Enjoying the scenery?";
116
            message[2] = "* Before you continue, I#  just wanted to let you#  know.";
117
            message[3] = "* No one from out here#  really goes in the#  Ruins.";
118
            message[4] = "* Now that we're out here,#  well, how should I put#  it?";
119
            message[5] = "* No one will ever notice#  a few missing monsters#  and a little extra dust.";
120
            message[6] = "* All your actions up#  'til now, they're as#  good as sealed away.";
121
            message[7] = "* Our little secret.";
122
            message[8] = "* So, if you want, you#  could change everything#  right now.";
123
            message[9] = "* Run around the rest of#  the Underground like#  nothing happened.";
124
            message[10] = "* Just remember, killing#  some lonely ruins#  residents was one thing.";
125
            message[11] = "* But you're outside now#  pal.";
126
            message[12] = "* There's no erasing#  anymore, so think#  carefully.";
127
            prt[0] = 348;
128
            prt[1] = 348;
129
            prt[2] = 347;
130
            prt[3] = 348;
131
            prt[4] = 348;
132
            prt[5] = 348;
133
            prt[6] = 348;
134
            prt[7] = 349;
135
            prt[8] = 348;
136
            prt[9] = 347;
137
            prt[10] = 348;
138
            prt[11] = 348;
139
            prt[12] = 348;
140
        }
141
        timer = 30;
142
        waiter++;
143
    }
144
    if (waiter == 2 && !global.dialogue_open)
145
    {
146
        if (!scr_timer
scr_timer

function scr_timer() { if (timer > 0) { timer--; return false; } else { return true; } }
())
147
            exit;
148
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
149
        with (msg)
150
        {
151
            sndfnt = 96;
152
            message[0] = "* Or don't, 'cause that#  sounds boring.";
153
            message[1] = "* Whatever you pick, I'm#  rootin' for ya, pal!";
154
            prt[0] = 349;
155
            prt[1] = 348;
156
        }
157
        if (!global.dialogue_open)
158
            waiter = 8;
159
    }
160
}
161
if (waiter == 8 && !instance_exists(obj_dialogue))
162
{
163
    image_index = 0;
164
    sprite_index = spr_floweyleave;
165
    image_speed = 0.2;
166
    waiter = 9;
167
}
168
if (waiter == 9 && image_index >= (image_number - 1))
169
{
170
    instance_destroy();
171
    instance_create(x, y, obj_determination);
172
    scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
173
    global.snowdin_flag[0] = 1;
174
}
175
if (global.route == 3)
176
    exit;
177
if (timer > 0)
178
{
179
    timer--;
180
}
181
else if (timer == 0)
182
{
183
    if (waiter == 6)
184
        waiter = 7;
185
    else
186
        waiter = 4;
187
    timer = -1;
188
}
189
if (instance_exists(obj_dialogue) && obj_dialogue.sndfnt == 96)
190
{
191
    if (obj_dialogue.cutoff == string_length(obj_dialogue.message[obj_dialogue.message_current]))
192
    {
193
        image_speed = 0;
194
        image_index = 0;
195
    }
196
    else
197
    {
198
        image_speed = 0.2;
199
    }
200
}