Function within a plugin which performs at the start of every battle turn
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!
本贴来自国际rpgmaker官方论坛作者:SuzuPazuzu处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/function-within-a-plugin-which-performs-at-the-start-of-every-battle-turn.139474/
页:
[1]