Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_guardener_bot_2_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] = "* bot fact:";
12
                message[1] = "* \"bots all have a passion for#  something. a programmed#  fixation.\"";
13
                message[2] = "* for example, i'm a huge fan of#  arson.";
14
            }
15
            npc_flag += 1;
16
            break;
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* bot fact:";
21
                message[1] = "* \"bots are not allowed to#  swear. it is indecent and#  rude.\"";
22
                message[2] = "* alas, i am cursed to this#  family friendly environment.";
23
            }
24
            npc_flag += 1;
25
            break;
26
        case 2:
27
            with (msg)
28
            {
29
                message[0] = "* bot fact:";
30
                message[1] = "* \"bots are not allowed to#  engage in romantic#  relationships.";
31
                message[2] = "* it would run the risk of#  bypassing the sentience#  suppression system.\"";
32
                message[3] = "* ...what does \"romantic#  relationships\" mean?";
33
                message[4] = "* why can't we interact with#  friendly boats from the roman#  empire?";
34
            }
35
            npc_flag += 1;
36
            break;
37
        case 3:
38
            with (msg)
39
            {
40
                message[0] = "* i only memorized three bot#  facts.";
41
                message[1] = "* anything i say now would only#  be bot fiction.";
42
            }
43
            break;
44
    }
45
}