3How can I make a 'hasMovedThisRound?' but for all battlers (if single or double battle)?
Here is the code for 'hasMovedThisRound?' (inside PokeBattle_Battler script):
Now, I would like to create a code (hasAllBattlersMovedThisRound?) to recognize if all pokémon into the battle has used its moves.
The reason is to make a better script for some abilities that use 'end of turn' to be triggered to change the pokémon's form (like Power Construct, Zen Mode, Schooling, etc).
Thank you!
Here is the code for 'hasMovedThisRound?' (inside PokeBattle_Battler script):
Code:
def hasMovedThisRound?
return false if !@lastRoundMoved
return @[email protected]
end
Now, I would like to create a code (hasAllBattlersMovedThisRound?) to recognize if all pokémon into the battle has used its moves.
The reason is to make a better script for some abilities that use 'end of turn' to be triggered to change the pokémon's form (like Power Construct, Zen Mode, Schooling, etc).
Thank you!
Last edited: