Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bulletarea_neo_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    with (instance_create(0, 0, obj_battlealphaer))
5
    {
6
        me = id;
7
        with (object_index)
8
        {
9
            if (id != me)
10
                instance_destroy();
11
        }
12
    }
13
    with (instance_create(0, 0, obj_battleLayerHighlight))
14
    {
15
        me = id;
16
        with (object_index)
17
        {
18
            if (id != me)
19
                instance_destroy();
20
        }
21
    }
22
    var me = id;
23
    with (object_index)
24
    {
25
        if (id != me)
26
        {
27
            debug_message("killed duplicate obj_bulletarea_neo");
28
            instance_destroy();
29
        }
30
    }
31
}
32
with (obj_mainchara)
33
{
34
    battlemode = 0;
35
    if (place_meeting(x, y, obj_bulletarea))
36
        battlemode = 1;
37
}
38
if (obj_mainchara.battlemode == 0)
39
    timer++;
40
else
41
    timer = 0;
42
if (timer >= 60)
43
{
44
    with (obj_darkcontroller)
45
        charcon = 0;
46
}