Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_jandroid_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] = "* Hum-dee-dum!";
12
                message[1] = "* A few more days of scrubbing#  and this inch of the bridge#  will be spotless!!";
13
            }
14
            npc_flag += 1;
15
            break;
16
        case 1:
17
            with (msg)
18
            {
19
                message[0] = "* No offense, but you look like#  you could use a cleaning!";
20
                message[1] = "* Golly gee! If I weren't on#  duty, I'd help!";
21
                message[2] = "* What to do? What to do?";
22
                message[3] = "* Say... mosey on back to the#  generator complex!";
23
                message[4] = "* You can toss yourself into one#  of the washing#  machines!!!";
24
                message[5] = "* (Note: You should not toss#  yourself in a washing machine.)";
25
            }
26
            npc_flag += 1;
27
            break;
28
        case 2:
29
            with (msg)
30
            {
31
                message[0] = "* You want a sip of my mop#  water???";
32
                message[1] = "* I know you do!!";
33
                message[2] = "* Drink up!! DriNk UP!!!";
34
            }
35
            npc_flag += 1;
36
            break;
37
        case 3:
38
            with (msg)
39
                message[0] = "* Hum-dee-dum!";
40
            break;
41
    }
42
}
43
image_speed = 1;