Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_shortcut_door_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
talked = 0;
3
checked = 0;
4
global.flag[32 hide_equip_comments] = 0;
5
image_xscale = 2;
6
image_yscale = 2;
7
con = 0;
8
image_speed = 0;
9
teleportmode = 0;
10
door_destination = room;
11
door_location = room;
12
on = 1;
13
weirdlight = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x + 6, y + 96, spr_weirdlight);
14
with (weirdlight)
15
{
16
    depth = 895000;
17
    image_speed = 0.125;
18
}
19
if (global.plot < 60)
20
    on = 0;
21
if (room == room_forest_fightsusie)
22
{
23
    if (global.plot < 154)
24
        on = 0;
25
}
26
if (on == 0)
27
{
28
    sprite_index = spr_shortcut_door_off;
29
    with (weirdlight)
30
        instance_destroy();
31
}