Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_backtrack_miner_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
                portrait = false;
11
                sndfnt = 99;
12
                talker[0] = other;
13
                message[0] = "* I was called over to break#  down this large boulder but...";
14
                message[1] = "* Man, it looks real tiring.";
15
                message[2] = "* It'll probably be a while#  before anyone can enter.";
16
                message[3] = "* ...Mostly because I don't#  wanna start.";
17
            }
18
            npc_flag = 1;
19
            break;
20
        case 1:
21
            with (msg)
22
            {
23
                portrait = false;
24
                sndfnt = 99;
25
                talker[0] = other;
26
                message[0] = "* As I said, this could take a#  while.";
27
                message[1] = "* Just the journey to get here#  took all my energy.";
28
                message[2] = "* Patience, buddy.";
29
            }
30
            break;
31
    }
32
}