Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_unusedclassevent_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
lightsoff = 0;
3
if (global.chapter == 1)
4
{
5
    if (global.plot >= 250)
6
    {
7
        con = 99;
8
        instance_destroy();
9
    }
10
    else
11
    {
12
        global.interact = 1;
13
        lightsoff = 1;
14
    }
15
}
16
var clean_room = false;
17
if (global.chapter == 2)
18
{
19
    con = 50;
20
    if (global.plot >= 9)
21
        clean_room = true;
22
}
23
if (global.chapter > 2)
24
    clean_room = true;
25
if (clean_room)
26
{
27
    con = 99;
28
    lightsoff = 2;
29
    with (obj_solidblock)
30
    {
31
        if (x == 108)
32
            instance_destroy();
33
    }
34
    with (obj_readable_room1)
35
    {
36
        if (x >= 80 && x <= 210)
37
            instance_destroy();
38
    }
39
}