Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_train_bed_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
    switch (npc_flag)
6
    {
7
        case 0:
8
            with (msg)
9
            {
10
                talker[0] = other.object_index;
11
                message[0] = "* Oh hey, you're the human Star#  brought to town.";
12
                message[1] = "* Apologies if I scared ya' back#  there.";
13
                message[2] = "* You see, I'm the onl-... best#  actor in all of the Wild East.";
14
                message[3] = "* I warned Star I'd go all in.#  Poor Ed must have#  been TERRIFIED.";
15
                if (global.dunes_flag[23] == true)
16
                    message[3] = "* I warned Star I'd go all in.#  Poor townsfolk must have#  been TERRIFIED.";
17
            }
18
            npc_flag++;
19
            break;
20
        case 1:
21
            with (msg)
22
            {
23
                talker[0] = other.object_index;
24
                message[0] = "* You're probably thinking I hurt#  myself when I fell over...";
25
                message[1] = "* Nope. I'm here cause I can't#  get this darn costume off.";
26
            }
27
            npc_flag++;
28
            break;
29
        case 2:
30
            with (msg)
31
            {
32
                talker[0] = other.object_index;
33
                message[0] = "* Sorry kid, if you want an#  autograph now is really not the#  best time.";
34
            }
35
            break;
36
    }
37
}