Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_virgil_break_1_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
    is_talking = 1
6
    switch npc_flag
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                message[0] = "* You gotta get me outta here,#  kid!"
12
                message[1] = "* I have a family! Hopes! Dreams!#  TV programs I've missed!"
13
                message[2] = "* I didn't do nothin' bad, I#  swear!"
14
            }
15
            npc_flag = 1
16
            break
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* North Star will pay for this..."
21
                message[1] = "* Ah-I mean I bought a drink for#  him the other day."
22
                message[2] = "* He needs to pay me back... Yeah."
23
            }
24
            npc_flag = 2
25
            break
26
        case 2:
27
            with (msg)
28
            {
29
                message[0] = "* I wonder where I could buy a#  train..."
30
                message[1] = "* What? I'm just talkin' to#  myself. Ignore me."
31
            }
32
            break
33
    }
34
35
}