Undertale script viewer

← back to main script listing

gml_Object_obj_dmgwriter_old_Alarm_0

(view raw script w/o annotations or w/e)
1
if (i == 0)
2
    i = 1;
3
else
4
    i = 0;
5
if (apparenthp > (actualhp - dmg))
6
    apparenthp -= (round(dmg / 20) + 2);
7
if (negative == 0)
8
{
9
    if (apparenthp < 0)
10
        apparenthp = 0;
11
}
12
alarm[0] = 2;
gml_Object_obj_dmgwriter_old_Alarm_0.gml

if (i == 0) i = 1; else i = 0; if (apparenthp > (actualhp - dmg)) apparenthp -= (round(dmg / 20) + 2); if (negative == 0) { if (apparenthp < 0) apparenthp = 0; } alarm[0] = 2;