Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_debug_fullheal

(view raw script w/o annotations or w/e)
1
function scr_debug_fullheal
scr_debug_fullheal

function scr_debug_fullheal() { with (obj_dmgwriter) { if (delaytimer >= 1) killactive = 1; } scr_healallitemspell(999); for (i = 0; i < 3; i++) { with (global.charinstance[i]) tu--; } }
()
2
{
3
    with (obj_dmgwriter)
4
    {
5
        if (delaytimer >= 1)
6
            killactive = 1;
7
    }
8
    scr_healallitemspell
scr_healallitemspell

function scr_healallitemspell(arg0) { scr_healall(arg0); for (i = 0; i < 3; i += 1) { with (global.charinstance[i]) { ha = instance_create(x, y, obj_healanim); ha.target = id; dmgwr = scr_dmgwriter_selfchar(); with (dmgwr) { delay = 8; type = 3; damage = arg0; } if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) { with (dmgwr) specialmessage = 3; } tu += 1; } } global.spelldelay = 20; }
(999);
9
    for (i = 0; i < 3; i++)
10
    {
11
        with (global.charinstance[i])
12
            tu--;
13
    }
14
}