One of the gimmicks of my upcoming game is having your MP (I'm calling it Stamina) be restored after or at the end of every battle. Not just battles during events, but random encounters too.
Just wondering if there is script or plugin for MZ that does this and maybe other related effects.
no need, this can be done by eventing alone - although it requires a bit of "out of the box" thinking.
make a switch "after battle event"
make a parallel process common event triggered by that switch.
in that common event, place all command you want to happen after battle.
below that, as the last command, you place control switch "after battle event" OFF, so that the event doesn't loop.
then in the troop events, you create an event conditioned to run on turn 0 with a single command: control switch "after battle event" ON.
finished.
Explanation:
by default there is no parallel process during battle, so even if it is activated at the beginning of the battle the partallel process will only run after the battle has ended and the player retuirns to map.
then it will run in the first frame after battleend and switch itself off after one run.
one comment:
you either have to place the troop event on every troop, or use a plugin for a base troop event and assign that to thw one with the switch.
If you want to do it with plugins, VisuStella Battle Core has the notetags:
<JS Post-End Battle>
<JS Battle Victory>