Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_healitem_all

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

function
scr_healitem_all(arg0)
{
scr_healall(arg0);
for (i = 0; i < chartotal; i += 1) { healx =
scr_charbox_x(i);
healtext = instance_create(healx + 70 + xx, yy + 430, obj_healwriter); healtext.healamt = arg0; } }
(arg0)
2
{
3
    
scr_healall
scr_healall

function
scr_healall(arg0)
{ for (i = 0; i < 3; i += 1) { if (global.char[i] != 0)
scr_heal(i, arg0);
} }
(arg0);
4
    for (i = 0; i < chartotal; i += 1)
5
    {
6
        healx = 
scr_charbox_x
scr_charbox_x

function
scr_charbox_x(arg0)
{ if (arg0 == 0 && chartotal == 3) return 0; if (arg0 == 1 && chartotal == 3) return 212; if (arg0 == 2 && chartotal == 3) return 424; if (arg0 == 0 && chartotal == 2) return 106; if (arg0 == 1 && chartotal == 2) return 326; if (arg0 == 0 && chartotal == 1) return 212; }
(i);
7
        healtext = instance_create(healx + 70 + xx, yy + 430, obj_healwriter);
8
        healtext.healamt = arg0;
9
    }
10
}