Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_kanakofriend_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
depth = obj_playground_swing.depth - 1
3
if interact
4
{
5
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
6
    is_talking = 1
7
    with (msg)
8
    {
9
        switch other.npc_flag
10
        {
11
            case 0:
12
            case 1:
13
                message[0] = "* Sigh..."
14
                message[1] = "* This playground used to be fun."
15
                message[2] = "* Ever since my playmate stopped#  showing up, it's become boring."
16
                message[3] = "* I wonder where they went?"
17
                if (other.npc_flag == 0)
18
                    other.npc_flag++
19
                break
20
            case 2:
21
                message[0] = "* Thanks for sitting with me."
22
                message[1] = "* I hope we can be friends."
23
                other.npc_flag++
24
                break
25
            case 3:
26
                message[0] = "* I better get going soon."
27
                message[1] = "* My papa's probably wondering#  where I am."
28
                break
29
        }
30
31
    }
32
}