Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_insomnitot_overworld_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if (interact == 1)
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
                message[0] = "* Zzz ... zzz"
12
                message[1] = "* ... ngh uh... mmm..."
13
                message[2] = "* ... no I don't know where the...#  pudding..."
14
                message[3] = "* The pudding... is... zzz"
15
            }
16
            npc_flag += 1
17
            break
18
        case 1:
19
            with (msg)
20
            {
21
                message[0] = "* I-I, I'm up! Yeah -uh- up! "
22
                message[1] = "* Is-is there school today?"
23
                message[2] = "* Am I late? Did I miss it?"
24
                message[3] = "* What time is it?"
25
            }
26
            npc_flag += 1
27
            break
28
        case 2:
29
            with (msg)
30
            {
31
                message[0] = "* Aw, I'm never gonna be able to#  fall back to sleep now."
32
                message[1] = "* I was having this great dream#  about clementine pudding."
33
                message[2] = "* It was delicious and now I'll#  YAWN* never be..."
34
                message[3] = "* Never... be able to... go back#  to... zzz."
35
            }
36
            npc_flag = 0
37
            break
38
    }
39
40
}