Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_shortcut_door_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 3)
2
{
3
}
4
if (myinteract == 3 && con == 0)
5
{
6
    if (instance_exists(mydialoguer) == false)
7
    {
8
        global.interact = 0;
9
        myinteract = 0;
10
        with (obj_mainchara)
11
            onebuffer = 5;
12
    }
13
}
14
if (con >= 5)
15
{
16
    if (con == 50)
17
    {
18
        with (weirdlight)
19
            instance_destroy();
20
        con = 51;
21
        snd_play(snd_dooropen);
22
        image_index = 1;
23
    }
24
    if (con == 51)
25
        global.interact = 1;
26
    if (con == 51 && !d_ex())
27
    {
28
        global.interact = 1;
29
        con = 52;
30
        doortimer = 0;
31
    }
32
    if (con == 52)
33
    {
34
        doortimer += 1;
35
        if (doortimer >= 6)
36
        {
37
            snd_free_all();
38
            snd_play(snd_doorclose);
39
            dark_marker = 
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; }
(__view_get(e__VW.XView, 0) - 10, __view_get(e__VW.YView, 0) - 10, spr_pixel_white);
40
            with (dark_marker)
41
            {
42
                image_xscale = 700;
43
                image_yscale = 700;
44
                depth = -100;
45
                image_blend = c_black;
46
            }
47
            con = 53;
48
            doortimer = 0;
49
        }
50
    }
51
    if (con == 53)
52
    {
53
        doortimer += 1;
54
        if (doortimer >= 30)
55
        {
56
            global.facing = 0;
57
            con = 54;
58
            snd_play(snd_dooropen);
59
            global.interact = 3;
60
            instance_create(0, 0, obj_persistentfadein);
61
            global.entrance = 23;
62
            room_goto(door_destination);
63
        }
64
    }
65
}
66
67
enum e__VW
68
{
69
    XView,
70
    YView,
71
    WView,
72
    HView,
73
    Angle,
74
    HBorder,
75
    VBorder,
76
    HSpeed,
77
    VSpeed,
78
    Object,
79
    Visible,
80
    XPort,
81
    YPort,
82
    WPort,
83
    HPort,
84
    Camera,
85
    SurfaceID
86
}