Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_dess_closet_controller_Create_0

(view raw script w/o annotations or w/e)
1
test_timer = 0;
2
con = -1;
3
open_closet = false;
4
close_closet = false;
5
closet_fadein = false;
6
kris_pickup = false;
7
finish_sequence = false;
8
finish_con = 0;
9
finish_timer = 0;
10
kris_marker = -4;
11
closet = -4;
12
heart = -4;
13
kris = -4;
14
pile_marker = -4;
15
present = -4;
16
present2 = -4;
17
guitar_marker = -4;
18
ladder_marker = -4;
19
santa = [];
20
shelf_cover = [];
21
22
clean_up = function()
23
{
24
    with (closet)
25
        clean_up();
26
    with (kris)
27
        clean_up();
28
    with (pile_marker)
29
        instance_destroy();
30
    with (present)
31
        instance_destroy();
32
    with (present2)
33
        instance_destroy();
34
    with (guitar_marker)
35
        instance_destroy();
36
    with (ladder_marker)
37
        instance_destroy();
38
    with (obj_marker)
39
    {
40
        if (sprite_index == spr_noellehouse_dess_closet_shelf_cover)
41
            instance_destroy();
42
    }
43
    shelf_cover = [];
44
    with (obj_homealone_dancing_santa_mini)
45
        instance_destroy();
46
    santa = [];
47
    instance_destroy();
48
};
49
50
if (global.plot < 63)
51
{
52
    instance_destroy();
53
    exit;
54
}