Hello, I'm trying to create a conditional passive state that allows a character to gain bonus attack damage when all enemies are under a status condition, such as poisoned. I am using YEP.BuffStatesCore, AutoPassiveStates, and Core Engine and Battle Core Plugins to achieve the affect.
Currently, I feel using Custom Turn start to loop through alive enemies for the check would be easiest, unless there is a simpler way.
However, Game_Troop seems to be undefined when using the debug tool.
I've tried game_Troop as well.
Currently, I feel using Custom Turn start to loop through alive enemies for the check would be easiest, unless there is a simpler way.
<Custom Turn Start Effect>
for(var i = 0; i < $Game_Troop.alive_Members.length();i++){
if ($Game_Troop._enemies.isStateAffected(4)){
$Game_Party._actors[1].AddBuff(3,3);
}
}
</Custom Turn Start Effect>
for(var i = 0; i < $Game_Troop.alive_Members.length();i++){
if ($Game_Troop._enemies.isStateAffected(4)){
$Game_Party._actors[1].AddBuff(3,3);
}
}
</Custom Turn Start Effect>
However, Game_Troop seems to be undefined when using the debug tool.
I've tried game_Troop as well.