Deltarune (Chapter 3) 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()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
26
    if (global.plot < 100)
27
        on = 0;
28
}
29
if (global.chapter == 3)
30
{
31
    
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
32
    if (global.plot < 280)
33
        on = 0;
34
}
35
if (on == 0)
36
{
37
    sprite_index = spr_shortcut_door_off;
38
    with (weirdlight)
39
        instance_destroy();
40
}