Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_attack_controller_Alarm_5

(view raw script w/o annotations or w/e)
1
with (obj_heroparent)
2
{
3
    if (sprite_index != spr_ralsei_splat)
4
    {
5
        state = 0;
6
        x = xstart;
7
        y = ystart;
8
    }
9
}
10
with (global.charinstance[star])
11
    tu = 0;
12
scr_healitemspell
scr_healitemspell

function
scr_healitemspell(arg0)
{ var __healAmount = arg0;
scr_heal(star, __healAmount);
global.spelldelay = 15; with (global.charinstance[star]) { 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; return ha; } }
(160 - (min(pet_current[star], 3) * 40));