Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_42_npc_orion_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] = "* Sorry, can't talk long. I'm#  preparing for harvest.";
12
                message[1] = "* (Must be one of those Wild#  East folk.)";
13
                message[2] = "* Huh? No, I didn't say#  anything.";
14
            }
15
            npc_flag += 1;
16
            break;
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* Have you been to Snowdin?";
21
                message[1] = "* I've heard rumors of our crops#  being cultivated around those#  parts.";
22
                message[2] = "* I'm thinking of opening up an#  investigation soon.";
23
                message[3] = "* I'm not bored or anything,#  just wanna protect the#  business.";
24
            }
25
            npc_flag += 1;
26
            break;
27
        case 2:
28
            with (msg)
29
            {
30
                message[0] = "* Don't you have role-playing to#  do or something?";
31
                message[1] = "* Shootouts? Inconveniencing#  pedestrians? That's all bro#  does after all.";
32
                message[2] = "* He's always up to something;#  having fun while I'm stuck with#  the farm work...";
33
                message[3] = "* Ugh.";
34
            }
35
            npc_flag += 1;
36
            break;
37
        case 3:
38
            with (msg)
39
                message[0] = "* Go on. I have work to do.";
40
            break;
41
    }
42
}