Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_slither_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] = "* Hey, where are you off to,#  mate?";
12
                message[1] = "* Any space for a plus one?";
13
                message[2] = "* Just joking around of course!#  Heh...";
14
            }
15
            npc_flag += 1;
16
            break;
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* I just... I think it would be#  NEAT if I could like...";
21
                message[1] = "* Join your party or...#  something.";
22
                message[2] = "* But I know you're busy and all#  - so am I!";
23
                message[3] = "* Things pile up, right? Life...";
24
                message[4] = "* 'Course,";
25
                message[5] = "* Your \"busy\" involves adventure#  and the discovery of wonderful#  treasures.";
26
                message[6] = "* My \"busy\" is more like making#  sure I don't miss my alimony#  payments.";
27
                message[7] = "* But nah it's cool... it's#  cool...";
28
            }
29
            npc_flag += 1;
30
            break;
31
        case 2:
32
            with (msg)
33
            {
34
                message[0] = "* No need to stick around#  worrying about me!";
35
                message[1] = "* You can tell me all about your#  grand journey later.";
36
                message[2] = "* Maybe you could write a book#  about it? And I would like, be#  your editor?";
37
                message[3] = "* I don't know, just thinking#  out loud, heh...";
38
            }
39
            break;
40
    }
41
}