Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_violeta_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() //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] = "* O-Oh... Hello."
12
                message[1] = "* Please don't mind me."
13
                message[2] = "* I was only tending to this#  little fella."
14
            }
15
            npc_flag += 1
16
            break
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* You wanna talk more?"
21
                message[1] = "* Uh... h-how about that#  weather?"
22
                message[2] = "* Sure is hot today... like...#  always."
23
            }
24
            npc_flag += 1
25
            break
26
        case 2:
27
            with (msg)
28
            {
29
                message[0] = "* Do you like, um... air?"
30
                message[1] = "* I do... I breathe it all the#  time."
31
            }
32
            npc_flag += 1
33
            break
34
        case 3:
35
            with (msg)
36
            {
37
                message[0] = "* ...Uh, I'm very sorry."
38
                message[1] = "* I'm just not in a talking mood#  right now."
39
                message[2] = "* M-Maybe later...?"
40
            }
41
            break
42
    }
43
44
}