Hi guys, I wanted a boss to attack multiple times per turn because of reasons, so I thought to code some skills to it like this:
My problem is, that if after the first skill the character dies, the skill is going to be used again in him, because my character doesn't collapses untill the 2nd skill is performed.
Some1 knows how to fix this?
<Target Action>
move user: targets, front, 20
wait for movement
motion attack: user
wait for motion
attack animation: target
wait for animation
action effect
wait for action
COLLAPSE: target
</Target Action>
<After Eval>
var id = user._enemyId;
var skill = 108;
var target = -1;
BattleManager.queueForceAction(user, skill, target);
</After Eval>
move user: targets, front, 20
wait for movement
motion attack: user
wait for motion
attack animation: target
wait for animation
action effect
wait for action
COLLAPSE: target
</Target Action>
<After Eval>
var id = user._enemyId;
var skill = 108;
var target = -1;
BattleManager.queueForceAction(user, skill, target);
</After Eval>
My problem is, that if after the first skill the character dies, the skill is going to be used again in him, because my character doesn't collapses untill the 2nd skill is performed.
Some1 knows how to fix this?