Undertale script viewer

← back to main script listing

gml_Object_obj_battler_Alarm_4

(view raw script w/o annotations or w/e)
1
if (on == 0)
2
{
3
    if (heartdraw == 1)
4
    {
5
        heartdraw = 0;
6
        on = 1;
7
        clap += 1;
8
    }
9
}
10
if (on == 0)
11
{
12
    if (heartdraw == 0)
13
    {
14
        snd_play(snd_noise);
15
        on = 1;
16
        heartdraw = 1;
17
    }
18
}
19
on = 0;
20
if (clap > 2)
21
{
22
    if (global.battlegroup == 200)
23
    {
24
        with (tb)
25
            instance_destroy();
26
        instance_destroy();
27
    }
28
    else
29
    {
30
        instance_create(obj_mainchara.x + 5, obj_mainchara.y + 17, obj_transheart);
31
        heartdraw = 0;
32
        obj_mainchara.depth = 100;
33
    }
34
}
35
else
36
{
37
    alarm[4] = claptimer;
gml_Object_obj_battler_Alarm_4.gml

if (on == 0) { if (heartdraw == 1) { heartdraw = 0; on = 1; clap += 1; } } if (on == 0) { if (heartdraw == 0) { snd_play(snd_noise); on = 1; heartdraw = 1; } } on = 0; if (clap > 2) { if (global.battlegroup == 200) { with (tb) instance_destroy(); instance_destroy(); } else { instance_create(obj_mainchara.x + 5, obj_mainchara.y + 17, obj_transheart); heartdraw = 0; obj_mainchara.depth = 100; } } else { alarm[4] = claptimer; }
38
}