Undertale script viewer

← back to main script listing

gml_Object_obj_floweydmgwriter_Create_0

(view raw script w/o annotations or w/e)
1
stretchwidth = 450;
2
stretchfactor = 450 / global.floweymaxhp;
3
apparenthp = global.floweyhp;
4
actualhp = global.floweyhp;
5
maxhp = global.floweymaxhp;
6
negative = 0;
7
dmg = global.damage;
8
alarm[0] = 2;
gml_Object_obj_floweydmgwriter_Alarm_0.gml

if (i == 0) i = 1; else i = 0; if (apparenthp > (actualhp - dmg)) apparenthp -= (dmg / 18); else apparenthp = actualhp - dmg; if (negative == 0) { if (apparenthp < 0) apparenthp = 0; } alarm[0] = 2;
9
i = 1;
10
if (dmg != 0)
11
{
12
    vspeed = -4;
13
    gravity = 0.5;
14
    gravity_direction = 270;
15
}