Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_statue_cat_overworld_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_mike_controller))
2
{
3
    with (statue_readable)
4
        instance_destroy();
5
}
6
if (statue_active)
7
{
8
    if (con == 0)
9
    {
10
        var is_active = true;
11
        with (statue)
12
        {
13
            if (act == 1)
14
                is_active = false;
15
        }
16
        if (!is_active)
17
        {
18
            con = 1;
19
            scr_delay_var("con", 5, 5);
20
            global.interact = 1;
21
        }
22
    }
23
    if (con == 5)
24
    {
25
        statue_active = false;
26
        con = -1;
27
        global.interact = 0;
28
        clean_up();
29
    }
30
}