Fully Restore HP/MP After Battle

The project I've decided to embark on, I am going to fully restore the HP/MP after the battles are complete because it isn't necessary for the game to have the party need to survive between battles (that just isn't part of what the game is about).. so, I'm wondering if there is a consensus on an easy way to do this or am I making this too complicated and should just go for a Common Event for it?
a common event should be fine, if you feel it's really necessary to do this. kinda feels like it's gonna make the game way too easy though.
The battles are going to be difficult, plus there is a puzzle component that will be involved. I am going with a sort of "Super Mario 3/3D World" vibe, so the game is going to be full of hidden stuff and puzzles... there IS a story, too... it's being planned out.
Paste this code below Scene_Battle.prototype.terminate() in the rmmz_scenes.js folder.

To explain it simply,

You can see in the Actors tab in database that all actors are assigned an ID ( what is before the actor's name), the $gameParty._actors keeps track of all actors currently in the party, though only there ID and not there variables such as Health and MP.

In order to get those variables you are going to have to get the data which is stored in $gameActors._data, think of this as a copy of the information from the database along with other variables.

Scene_battle.prototype.terminate() is fired whenever a battle is over, it is used mainly to mute battle music and return the player to the Map.

For some reason code keeps getting deleted so I have to make it a txt instead.
Is it going to work with MV (I see the file says MZ)?
Going into every battle at full HP and MP can easily make every battle feel the same, once the player figures out an optimal skill rotation for the first few turns. So each skill would have to be only situationally useful to avoid that...
Ressource management in terms of healing items can be very interesting, sure! But some games really don't need that element.

For example, in LV99: Final Fortress, you battle boss after boss for the most part, and you have a limited supply of healing items, most of which get refilled after battle. There really shouldn't be the need for the player to heal up themselves — which would be done most efficiently by going back to a save point, for there are no random encounters.

Even games with 'normal' battles may heal the player afterwards, see Final Fantasy XIII. 🙂
Is it going to work with MV (I see the file says MZ)?
it should do, both engines support javascript so I see no reason not to

The file name may be different but in a folder called Scene there should be a file called Scene_Battle
Going into every battle at full HP and MP can easily make every battle feel the same, once the player figures out an optimal skill rotation for the first few turns. So each skill would have to be only situationally useful to avoid that...

But think Super Mario 3... you’re going from place to place, doing battles in dungeons and towns as well as puzzles, and you are going to be leveling but that is going to occur at a very specific clip because there is a finite amount of encounters. No random encounters at all and there will be a story to follow while you’re progressing through the increasingly difficult series of encounters and puzzles.
But think Super Mario 3... you’re going from place to place, doing battles in dungeons and towns as well as puzzles, and you are going to be leveling but that is going to occur at a very specific clip because there is a finite amount of encounters. No random encounters at all and there will be a story to follow while you’re progressing through the increasingly difficult series of encounters and puzzles.
Never played that game. I mean, it'd work for a game that has like only story battles. But for a regular RPG, I don't see it working out well without a lot of workarounds, just to avoid the stale opening rotation on every encounter.
For my game, RTP, there is a finite number of encounters, but I still only restore characters by 50% of their missing HP/MP at the end of each encounter, so playing well gets you in a good position for the next encounter, but if you played badly, you're also not going to suffer too much for it. And it brings some variation at the start of each battle, since you can't always rely on having all the MP you might want to use in the first turns of battle.
This being technically my freshman outing with RPG Maker (MV), I wanted to do something that wasn’t “here’s my Magnum Opus” right out of the gate.

I do have a story to tell for a much larger scale “normal” RPG game but I wanted to have my ducks more in a row before I started such a hefty outing.
Moved to: MV Support

"How do I ..." questions go into the support forum for the engine you are using. Game Mechanics Design is for feedback on the mechanic itself - is it a good idea, what features should it have ...

Paste this code below Scene_Battle.prototype.terminate() in the rmmz_scenes.js folder.

Not a good idea to change the core scripts. That means you have to keep reapplying it every time you update your project to a new version of MV. Better to put it as a completely separate plugin.
Thanks Shaz, I’m learning where things go as I post more. 🙂

I’m still a little shy with plugins and scripts, although I’ve got a few installed to test out.

I am also considering the 50% option if TPK as mentioned above now, too... buuuuut, then I need to have resources available for that where those were also going to be somewhat finite. That is a much simpler fix, though.

Original thread: https://forums.rpgmakerweb.com/threads/fully-restore-hp-mp-after-battle.133603/