Deltarune (Chapter 2) 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
image_xscale = 2;
5
image_yscale = 2;
6
con = 0;
7
image_speed = 0;
8
teleportmode = 0;
9
door_destination = room;
10
door_location = room;
11
on = 1;
12
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);
13
with (weirdlight)
14
{
15
    depth = 895000;
16
    image_speed = 0.125;
17
}
18
if (global.chapter == 1)
19
{
20
    if (global.plot < 60)
21
        on = 0;
22
}
23
if (global.chapter == 2)
24
{
25
    
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
26
    if (global.plot < 100)
27
        on = 0;
28
}
29
if (global.chapter == 2 && room == room_dw_mansion_entrance && 
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() > 2)
30
    on = 0;
31
if (on == 0)
32
{
33
    sprite_index = spr_shortcut_door_off;
34
    with (weirdlight)
35
        instance_destroy();
36
}