Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_newhome_locked_doors_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    if (!audio_is_playing(snd_locked_door))
5
        audio_play_sound(snd_locked_door, 1, 0);
6
    if (global.hotland_flag[13] == 0 && global.route != 3 && global.hotland_flag[10] == 0)
7
    {
8
        scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
9
        alarm[0] = 10;
10
        global.hotland_flag[13] = 1;
11
    }
12
}
13
if (waiter == 1)
14
{
15
    global.cutscene = false;
16
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
17
    with (msg)
18
    {
19
        sndfnt = 102;
20
        message[0] = "* Hmm... \t";
21
        message[1] = "* It is rather late isn't#  it?";
22
        message[2] = "* Narrows down the#  locations they could've#  gone at least.";
23
        prt[0] = 311;
24
        prt[1] = 324;
25
        prt[2] = 321;
26
    }
27
    waiter = 0;
28
}