Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_moray_break_2_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if (global.dunes_flag_ext[1] < 2)
3
    global.dunes_flag_ext[1] = 2
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[1]
8
{
9
    case 2:
10
        with (msg)
11
        {
12
            talker[0] = other.object_index
13
            message[0] = "* Oh, hey."
14
            message[1] = "* I'm in here to give#  Martlet some food,#  that's all."
15
            message[2] = "* ...It isn't meal time#  but I thought she would#  enjoy something."
16
            message[3] = "* So... you don't need to#  worry about her."
17
            message[4] = "* I'll make sure she's#  treated as well as one#  in jail can be."
18
            message[5] = "* This is for the best."
19
            prt[0] = 445
20
            prt[1] = 445
21
            prt[2] = 449
22
            prt[3] = 445
23
            prt[4] = 445
24
            prt[5] = 449
25
        }
26
        global.dunes_flag_ext[1] += 1
27
        break
28
    case 3:
29
        with (msg)
30
        {
31
            talker[0] = other.object_index
32
            message[0] = "* Look on the bright side!"
33
            message[1] = "* Things are about to ramp#  up!"
34
            message[2] = "* Soon, you'll be one of#  us. How exciting!"
35
            prt[0] = 445
36
            prt[1] = 445
37
            prt[2] = 445
38
        }
39
        break
40
}