Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_controller_city_cheesemaze_Create_0

(view raw script w/o annotations or w/e)
1
trigX = 1280;
2
cheeseCrushed = 0;
3
eventTriggered = 0;
4
con = 0;
5
if (global.flag[360 did_cheese_fight] == 1)
6
{
7
    with (obj_mazecheese)
8
    {
9
        if (x < other.trigX)
10
        {
11
            image_index = 1;
12
            type = 4;
13
            con = 999;
14
        }
15
    }
16
}
17
if (global.flag[384 fought_cheese_something?] == 1)
18
{
19
    with (obj_mazecheese)
20
    {
21
        image_index = 1;
22
        type = 4;
23
        con = 999;
24
    }
25
}
26
if (global.flag[310 touched_cheese_maze] == 1)
27
{
28
    if (i_ex(obj_solidblock_destructable))
29
    {
30
        with (obj_solidblock_destructable)
31
            instance_destroy();
32
    }
33
}
34
if (global.flag[360 did_cheese_fight] == 1)
35
    instance_destroy();