Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_monster_make_tired

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

function
scr_monster_make_tired(arg0)
{ if (image_alpha > 0) { if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; } }
(arg0)
2
{
3
    if (image_alpha > 0)
4
    {
5
        if (global.monsterstatus[arg0] == 0)
6
        {
7
            __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter);
8
            __tiredwriter.type = 13;
9
            global.hittarget[arg0] += 1;
10
            snd_play_x(snd_spellcast, 0.5, 0.9);
11
        }
12
        global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
13
        global.monsterstatus[arg0] = 1;
14
    }
15
}