IMPORTANT EDIT: Update is on the first post on page 2:
ORIGINAL POST:
---------------------------------------------------------------------------------
Hi guys, im gonna explain what I am working on:
I want that if an actor is affected by a passive state and kills a target with a normal attack, it repeats the attack on a random enemy.
I've been abled to do this with this code:
-------------------------------------------------------------------
<Post-Damage Eval>
if(target.isDead() && user.isStateAffected(59)){
var id = user._actorId;
var pos = $gameParty._actors.indexOf(id);
BattleManager.forceAction($gameParty.members()[pos]);
}
</Post-Damage Eval>
-------------------------------------------------------------------
This only works once, just as I expected and wanted, but I would like to create a improvement of this, making it having no limits in the number of attacks, making possible to attack and attack and attack untill all enemies are dead (if they kill only with 1 basic attack)
I have tried but it is impossible for an newbie like me on JS, could some1 help me?
ORIGINAL POST:
---------------------------------------------------------------------------------
Hi guys, im gonna explain what I am working on:
I want that if an actor is affected by a passive state and kills a target with a normal attack, it repeats the attack on a random enemy.
I've been abled to do this with this code:
-------------------------------------------------------------------
<Post-Damage Eval>
if(target.isDead() && user.isStateAffected(59)){
var id = user._actorId;
var pos = $gameParty._actors.indexOf(id);
BattleManager.forceAction($gameParty.members()[pos]);
}
</Post-Damage Eval>
-------------------------------------------------------------------
This only works once, just as I expected and wanted, but I would like to create a improvement of this, making it having no limits in the number of attacks, making possible to attack and attack and attack untill all enemies are dead (if they kill only with 1 basic attack)
I have tried but it is impossible for an newbie like me on JS, could some1 help me?
