Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_pyramid_break_5_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
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                message[0] = "* North Star is the worst! Hate#  that guy.";
12
                message[1] = "* ...Right?";
13
            }
14
            npc_flag = 1;
15
            break;
16
        case 1:
17
            with (msg)
18
            {
19
                message[0] = "* Heh, I don't ACTUALLY think#  North Star sucks.";
20
                message[1] = "* I just say whatever's popular#  in hopes to rise in the Wild#  East ranks.";
21
            }
22
            npc_flag = 2;
23
            break;
24
        case 2:
25
            with (msg)
26
            {
27
                message[0] = "* I uh... I kinda need North#  Star to return asap.";
28
                message[1] = "* Who else am I supposed to#  blindly follow in life? My dad?";
29
                message[2] = "* Sure, if I wanna grill meat#  and browse sketchy Undernet#  pages all day.";
30
            }
31
            break;
32
    }
33
}