Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_enemy_Step_2

(view raw script w/o annotations or w/e)
1
if (
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("bullets") && myattackchoice == 0)
2
{
3
    if (myattackchoice == 0 && i_ex(obj_heart) && obj_heart.x > (camerax() + 165))
4
        obj_heart.x = camerax() + 165;
5
}
6
if (end_cutscene_version == 1)
7
{
8
    with (obj_dmgwriter)
9
        instance_destroy();
10
}