Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_tntman_dunes_06_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 = true
6
    switch npc_flag
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                portrait = false
12
                sndfnt = 99
13
                message[0] = "* I'm not up to anything#  suspicious, okay?"
14
                message[1] = "* There is no treasure behind#  this wall, okay?"
15
                message[2] = "* Don't rat me out, okay?"
16
            }
17
            npc_flag = 1
18
            break
19
        case 1:
20
            with (msg)
21
            {
22
                portrait = false
23
                sndfnt = 99
24
                message[0] = "* This is my TNT, okay?"
25
                message[1] = "* I didn't steal it from my#  brother at the mines, okay?"
26
                message[2] = "* This X was here before I#  arrived, okay?"
27
            }
28
            npc_flag = 2
29
            break
30
        case 2:
31
            with (msg)
32
            {
33
                portrait = false
34
                sndfnt = 99
35
                message[0] = "* I'm just waiting out the storm,#  okay?"
36
                message[1] = "* Get off my case......"
37
                message[2] = "* please."
38
            }
39
            break
40
    }
41
42
}