Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_kevin_happy_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if (interact && (!can_talk))
3
{
4
    can_talk = true
5
    is_talking = 1
6
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
7
}
8
if can_talk
9
{
10
    switch npc_flag
11
    {
12
        case 0:
13
            with (msg)
14
            {
15
                message[0] = "* Hey, thanks for saving me back#  there!"
16
                message[1] = "* Now I can stand in place at a#  higher elevation."
17
            }
18
            can_talk = false
19
            npc_flag++
20
            break
21
        case 1:
22
            with (msg)
23
                message[0] = "* Work is rad."
24
            can_talk = false
25
            break
26
    }
27
28
}