Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_boba_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
    with (msg)
7
    {
8
        switch (other.npc_flag)
9
        {
10
            case 0:
11
                message[0] = "* (Slurp slurrrrp)";
12
                message[1] = "* Ahhhh!";
13
                message[2] = "* Nothing like Steamworks#  Boba-Soup (TM) to fuel the#  engine!";
14
                message[3] = "* What? Don't act like you've#  never heard of it.";
15
                other.npc_flag++;
16
                break;
17
            case 1:
18
                message[0] = "* Did you know that humans also#  run on a liquid? It's called#  \"blood.\"";
19
                message[1] = "* Apparently it doesn't taste#  any good, which is like, a#  total shame.";
20
                other.npc_flag++;
21
                break;
22
            case 2:
23
                message[0] = "* I'd let you try this stuff but#  it's total poison to#  non-robots.";
24
                message[1] = "* How do I know that? I don't.";
25
                message[2] = "* I just wanna deter you from#  draining my sweet sweet lake.";
26
                other.npc_flag++;
27
                break;
28
            case 3:
29
                message[0] = "* (Slurp slurrrp)";
30
                break;
31
        }
32
    }
33
}