Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_barnpc_snowdin14b_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
5
    is_talking = 1;
6
    with (msg)
7
    {
8
        portrait = false;
9
        switch (other.npc_flag)
10
        {
11
            case 0:
12
                color = true;
13
                col_modif[0] = 255;
14
                message[0] = "* 'Ay kid. The getup.";
15
                message[1] = "* I'm guessin' you're from the#  Dunes eh?";
16
                message_col[1][0] = "                              #  Dunes    ";
17
                message[2] = "* Wacky place that is.";
18
                message[3] = "* I'm probably the only other one#  'ere that's been around those#  parts.";
19
                message[4] = "* Some monsters avoid it due to#  the dryness and high#  temperature.";
20
                message[5] = "* What's a kid like you doin'#  hangin' with those wild guys,#  eh?";
21
                message[6] = "* Don't look so confused, I'm#  just messin' with ya, heh heh.";
22
                other.npc_flag += 1;
23
                global.snowdin_flag[18] = 1;
24
                break;
25
            case 1:
26
                message[0] = "* You've gotta try the pancakes#  'ere.";
27
                message[1] = "* They're the main reason I#  traveled all this way.";
28
                break;
29
        }
30
    }
31
}