Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_35b_clerk_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
                portrait = false
12
                sndfnt = 99
13
                message[0] = "* I would sell you something,#  but I'm on strike. The owner#  needs to better themself."
14
                message[1] = "* That's me. I'm the owner."
15
            }
16
            npc_flag = 1
17
            break
18
        case 1:
19
            with (msg)
20
            {
21
                portrait = false
22
                sndfnt = 99
23
                message[0] = "* Run along now. I don't see#  myself improving anytime soon."
24
            }
25
            break
26
    }
27
28
}