Deltarune (Chapter 5) 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
with (obj_mainchara_dash)
39
{
40
    battlemode = 0;
41
    if (place_meeting(x, y, obj_bulletarea))
42
        battlemode = 1;
43
}
44
if (i_ex(obj_mainchara) && obj_mainchara.battlemode == 0)
45
    timer++;
46
if (i_ex(obj_mainchara_dash) && obj_mainchara_dash.battlemode == 0)
47
    timer++;
48
else
49
    timer = 0;
50
if (timer >= 60)
51
{
52
    with (obj_darkcontroller)
53
        charcon = 0;
54
}