Undertale script viewer

← back to main script listing

gml_Script_scr_recover

(view raw script w/o annotations or w/e)
1
recovered = argument0;
2
maxedout = 0;
3
if (global.hp < global.maxhp)
4
    global.hp += argument0;
5
else
6
    maxedout = 1;
7
if (global.hp >= global.maxhp && maxedout == 0)
8
{
9
    global.hp = global.maxhp;
10
    maxedout = 1;
11
}