Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_mooch_break_2_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if (global.dunes_flag_ext[0] < 3)
3
    global.dunes_flag_ext[0] = 3
4
if (!interact)
5
    return;
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
switch global.dunes_flag_ext[0]
8
{
9
    case 3:
10
        with (msg)
11
        {
12
            talker[0] = other.object_index
13
            message[0] = "* Missions here can be#  real tiring."
14
            message[1] = "* That's why we have a#  designated nap time!"
15
            message[2] = "* It's a good way to#  recharge for future#  servings of justice!"
16
            message[3] = "* Now that I think about#  it, nap time should be#  after this next mission."
17
            message[4] = "* Hope you join us!"
18
            prt[0] = 455
19
            prt[1] = 458
20
            prt[2] = 462
21
            prt[3] = 455
22
            prt[4] = 462
23
        }
24
        global.dunes_flag_ext[0] += 1
25
        break
26
    case 4:
27
        with (msg)
28
        {
29
            talker[0] = other.object_index
30
            message[0] = "* What?"
31
            message[1] = "* I don't search through#  my friends' belongings#  while they nap."
32
            message[2] = "* Why would you suggest#  such a thing? I have#  SOME restraint!"
33
            message[3] = "* Oh... You didn't say#  anything."
34
            message[4] = "* ..."
35
            message[5] = "* This conversation didn't#  happen, got that?"
36
            prt[0] = 455
37
            prt[1] = 460
38
            prt[2] = 460
39
            prt[3] = 456
40
            prt[4] = 455
41
            prt[5] = 455
42
        }
43
        global.dunes_flag_ext[0] += 1
44
        break
45
    case 5:
46
        with (msg)
47
        {
48
            talker[0] = other.object_index
49
            message[0] = "* Naps naps naps!"
50
            message[1] = "* Gotta love 'em!"
51
            prt[0] = 458
52
            prt[1] = 462
53
        }
54
        break
55
}