Undertale script viewer

← back to main script listing

gml_Object_obj_latchkey_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (room == room_kitchen_final && instance_exists(OBJ_WRITER) == 0)
3
{
4
    if (global.flag[452 have_castle_key1] == 1)
5
    {
6
        global.interact = 0;
7
        instance_destroy();
8
    }
9
}
10
if (room == room_asghouse3 && instance_exists(OBJ_WRITER) == 0)
11
{
12
    if (global.flag[453 have_castle_key2] == 1)
13
    {
14
        global.interact = 0;
15
        instance_destroy();
16
    }
17
}