Undertale script viewer

← back to main script listing

gml_Object_obj_battler_Create_0

(view raw script w/o annotations or w/e)
1
global.interact = 3;
2
alarm[2] = 30;
3
alarm[4] = 1;
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; }
4
global.flag[201 kills] = global.kills;
5
heartdraw = 0;
6
on = 0;
7
clap = 0;
8
depp = -600;
9
claptimer = 2;
10
if (global.flag[15 in_battle] == 0)
11
{
12
    caster_set_volume(global.currentsong, 0);
13
    caster_pause(global.currentsong);
14
}
15
tb = instance_create(0, 0, obj_tempblack);