Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_kevin_backtrack_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] = "* I got put on minecart duty a#  few minutes ago."
16
                message[1] = "* Sure, you already completed#  today's job but tomorrow's#  coming!"
17
                message[2] = "* First I get tied down to#  tracks, now I gotta operate#  tracks!"
18
                message[3] = "* This wasn't what I meant by#  wanting to get my life back on#  track!!!"
19
            }
20
            can_talk = false
21
            npc_flag++
22
            break
23
        case 1:
24
            with (msg)
25
            {
26
                message[0] = "* You're gonna show up tomorrow#  to do this for me, right?"
27
                message[1] = "* We're best buds... right?"
28
                message[2] = "* DID OUR INTIMATE ELEVATOR RIDE#  MEAN NOTHING???"
29
            }
30
            can_talk = false
31
            npc_flag++
32
            break
33
        case 2:
34
            with (msg)
35
                message[0] = "* Sorry, can't talk anymore.#  I've got everything to#  overthink."
36
            can_talk = false
37
            break
38
    }
39
40
}