So one of my characters in the game I'm making uses skills to change his stats much like switching up stances. One mode increases his attack power but lowers his defenses. Another one boosts his speed and evasion, but makes him weaker and more fragile. Each stance continually drains a portion of his magic and he can switch freely between them. The problem I'm having is that I want a stance to end prematurely if he runs out of MP. How would I go about doing that?
Magic draining stances.
RPG Maker MV SupportYou can make a troop event that runs for the whole battle checking if the MP is 0 or find a plugin that allows you to either set things that can happen when MP reaches a certain value or a plugin that allows you to set custom removal conditions for states
If you have Yanflys Buffs&StatesCore you can throw this into the state note box.
36 being the state ID number you want removed.
Code:
<Custom Turn End Effect>
if (user.mp == 0) {
user.removeState(36);
}
</Custom Turn End Effect>
36 being the state ID number you want removed.
Original thread: https://forums.rpgmakerweb.com/threads/magic-draining-stances.77524/