Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchb_library_Step_1

(view raw script w/o annotations or w/e)
1
if (flooractive >= 3)
2
    exit;
3
with (obj_dw_church_remotepianomove)
4
{
5
    if (engaged && !other.piano_was_engaged)
6
    {
7
        with (obj_solid_temp)
8
        {
9
            if (extflag == "FLOOR1TEMP")
10
                active = 1;
11
            else
12
                active = 0;
13
        }
14
    }
15
    else if (!engaged && other.piano_was_engaged)
16
    {
17
        with (obj_solid_temp)
18
        {
19
            if (extflag == "FLOOR1")
20
                active = 1;
21
            else
22
                active = 0;
23
        }
24
    }
25
    other.piano_was_engaged = engaged;
26
}
27
if (flooractive == wasactive)
28
    exit;
29
if (flooractive == 1)
30
{
31
    with (obj_solid_temp)
32
    {
33
        if (extflag == "FLOOR1")
34
            active = 1;
35
        else
36
            active = 0;
37
    }
38
}
39
if (flooractive == 2)
40
{
41
    with (obj_solid_temp)
42
    {
43
        if (extflag == "FLOOR2")
44
            active = 1;
45
        else
46
            active = 0;
47
    }
48
}
49
wasactive = flooractive;