Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_newhome_lad_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
                portrait = false;
12
                sndfnt = 99;
13
                message[0] = "* Can't a guy catch a break?";
14
                message[1] = "* They put me in doc review all#  afternoon! ";
15
                message[2] = "* I can barely move my fingers,#  let alone lather them in your#  weird soap!";
16
            }
17
            npc_flag = 1;
18
            break;
19
        case 1:
20
            with (msg)
21
            {
22
                portrait = false;
23
                sndfnt = 99;
24
                message[0] = "* What's up with that anyway?#  What's wrong with soap from the#  store?";
25
                message[1] = "* I can't even pronounce half#  the ingredients on that bottle#  by the sink!";
26
                message[2] = "* \"Eu... Eu-ca...\" ";
27
                message[3] = "* Nope I can't do it, I just#  can't.";
28
            }
29
            npc_flag = 2;
30
            break;
31
        case 2:
32
            with (msg)
33
            {
34
                portrait = false;
35
                sndfnt = 99;
36
                message[0] = "* Are we even at the right#  station?";
37
                message[1] = "* Darn it all, I think we took#  the wrong elevator!";
38
                message[2] = "* See what happens when I'm#  stressed?";
39
                message[3] = "* I knew we should've moved to#  Hotland! Should've trusted my#  gut!";
40
                message[4] = "* This wouldn't have happened#  with their respectable elevator#  system!";
41
            }
42
            npc_flag = 3;
43
            break;
44
        case 3:
45
            with (msg)
46
            {
47
                portrait = false;
48
                sndfnt = 99;
49
                message[0] = "* Yeah yeah, I know there's a#  map over there!";
50
                message[1] = "* But I'm too angry to improve#  our situation!";
51
            }
52
    }
53
}