Hi all!!
I just want to know how can i check for how many states the enemy troop (all the enemies) have.
Thanks!!
I just want to know how can i check for how many states the enemy troop (all the enemies) have.
Thanks!!
var statesCount = 0;
for (var i = 0; i < $gameTroop._enemies.length; i++) {
statesCount += $gameTroop._enemies[i]._states.length;
};
Original thread: https://forums.rpgmakerweb.com/threads/help-with-code-that-check-for-the-enemy-troop-states.87396/