Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_east_wagon_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() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
5
    if (instance_exists(obj_martlet_follower) && global.sworks_flag[0] == 0)
6
    {
7
        if (npc_flag == 0)
8
        {
9
            with (msg)
10
            {
11
                talker[0] = 1170
12
                sndfnt = 102
13
                message[0] = "* Ah... I see...."
14
                message[1] = "* An oak base with iron#  nails holding it#  together..."
15
                message[2] = "* Oh, sorry. I was#  nerding out for a#  second."
16
                message[3] = "* Sure is a cool wagon!"
17
                prt[0] = 328
18
                prt[1] = 328
19
                prt[2] = 323
20
                prt[3] = 318
21
                other.npc_flag = 1
22
            }
23
        }
24
        else if (npc_flag == 1)
25
        {
26
            with (msg)
27
            {
28
                talker[0] = 1170
29
                sndfnt = 102
30
                message[0] = "* We can move on, I've#  seen enough."
31
                prt[0] = 312
32
            }
33
        }
34
    }
35
    else
36
    {
37
        with (msg)
38
            message[0] = "* (An old, abandoned wagon.)"
39
    }
40
}