How do I get index of enemy who's performing action now and an index of targeted party member? I want to create skill using common events. So I got this: $gameTroop.members()[enemyIndex].addState(1); but I need to put an enemy index into enemyIndex and into $gameParty.members()[index].addState(2); put targeted party member index. Does somebody know how to do it ?
Present enemy index
Javascript/Plugin Supportthe enemy index is the number of the enemy in the troop. The default simply goes through all indices in the order of the action speed.
the target is randomly determined with a weight of the target rate of the actors (index number is the number of the party slot).
both are usually not stored between actions, and the damage formula has the placeholders of a and b for skill user and skill target exactly to have no need to store the indices.
the target is randomly determined with a weight of the target rate of the actors (index number is the number of the party slot).
both are usually not stored between actions, and the damage formula has the placeholders of a and b for skill user and skill target exactly to have no need to store the indices.
Original thread: https://forums.rpgmakerweb.com/threads/present-enemy-index.106027/