- Joined
- Apr 19, 2012
- Messages
- 20
- Reaction score
- 4
- First Language
- English
- Primarily Uses
- RMMV
Currently trying to resolve a bug with a plugin, and I've had the idea to circumvent the issue by making the plugin do some comparisons and make some calls at the start of each combat turn.
I want it to run this function exactly once at every turn, as soon as a turn "ends", and the player regains control in the battle menu (technically before the turn starts).
Simply put, what would be the code necessary to perform this?
I imagine it's something quite simple such as utilising a function in the basic MV code, but I'm not very knowledgeable with the basic MV functions or with JS in general.
For further information, I essentially want it to check each enemy for a condition, then apply an effect to them based on the result.
Thanks!
I want it to run this function exactly once at every turn, as soon as a turn "ends", and the player regains control in the battle menu (technically before the turn starts).
Simply put, what would be the code necessary to perform this?
I imagine it's something quite simple such as utilising a function in the basic MV code, but I'm not very knowledgeable with the basic MV functions or with JS in general.
For further information, I essentially want it to check each enemy for a condition, then apply an effect to them based on the result.
Thanks!