Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_cabin_blankie_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
    if global.geno_complete[2]
6
    {
7
        with (msg)
8
        {
9
            switch other.npc_flag
10
            {
11
                case 2:
12
                case 3:
13
                case 4:
14
                case 6:
15
                    message[0] = "* (You stare at the log.)"
16
                    message[1] = "* (Nothing happens.)"
17
                    if (other.npc_flag != 6)
18
                        other.npc_flag += 1
19
                    break
20
                case 5:
21
                    message[0] = "* (You stare at the log.)"
22
                    message[1] = "* ..."
23
                    message[2] = "* I saw everything."
24
                    other.npc_flag++
25
                    break
26
            }
27
28
        }
29
    }
30
    is_talking = true
31
    with (msg)
32
    {
33
        portrait = false
34
        switch other.npc_flag
35
        {
36
            case 0:
37
                message[0] = "* Nothing like avoiding life's#  responsibilities by lounging#  all day."
38
                message[1] = "* Been here for two weeks, hit#  this same spot everyday."
39
                message[2] = "* It's so easy to lose yourself#  out here."
40
                message[3] = "* I don't even know if I have a#  job to go back to."
41
                message[4] = "* It's pretty great."
42
                other.npc_flag += 1
43
                break
44
            case 1:
45
                message[0] = "* Maybe it would be nice if I was#  fired."
46
                message[1] = "* I'll just go live in the wild#  and find my own food."
47
                message[2] = "* That should be everyone's goal#  in life."
48
                other.npc_flag += 1
49
                break
50
            case 2:
51
                message[0] = "* I'm gonna be here a while."
52
                message[1] = "* Know any good campfire songs?"
53
                break
54
        }
55
56
    }
57
}