Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ta_overworld_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact == 1)
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
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                message[0] = "* Hey, where you going to next?";
12
                message[1] = "* Anywhere exciting?";
13
                message[2] = "* Can I come?";
14
            }
15
            npc_flag += 1;
16
            break;
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* I can be helpful if you let me#  come!";
21
                message[1] = "* I can be, um, uh-a hat!";
22
                message[2] = "* I'll be a great hat! Keep your#  head nice an' toasty!";
23
            }
24
            npc_flag += 1;
25
            break;
26
        case 2:
27
            with (msg)
28
            {
29
                message[0] = "* You want a nice snuggly hat?";
30
                message[1] = "* I can keep your ears warm!";
31
            }
32
            break;
33
    }
34
}