MZ "fix" the regeneration system

When you equip an item with, say, MP Regeneration 1%, it will regenerate MP each battle turn but also by walking on the map.
Horrible, in my opinion.
So is there a way to remove the regeneration by mapwalking? Thanks in advance.
Somebody on the forums made a plugin for this exact purpose, it was made for MV but it might still work for MZ
it's in the 8th post down
Horrible, in my opinion.
Perfectly logical, in my opinion. Why would time somehow not exist when you're walking around, but only when you're fighting?

So is there a way to remove the regeneration by mapwalking?
Paste the below into a text editor, save as a *.js file, include as a plugin.

Code:
Game_Actor.prototype.turnEndOnMap = function() {};

Note that this necessarily also disables slip damage from states (e.g. poison). It all comes from the same place.
Perfectly logical, in my opinion. Why would time somehow not exist when you're walking around, but only when you're fighting?

Since you can walk back and forth to get full regeneration each time it absolutely sucks gameplay wise, but to each their own. I just know I don't want that in my games.

Thanks for th suggestions both of you.
Since you can walk back and forth to get full regeneration each time it absolutely sucks gameplay wise
Personally, I would change the ability to cap the regeneration at half health/MP/whatever.

That way you don't have to worry about encounters not decreasing the party's resources and it still makes logical sense to the player.

But if the latter part doesn't bother you, you have your solution 😉
Personally, I would change the ability to cap the regeneration at half health/MP/whatever.

Or maybe a limited amount of it, like after 100 steps it stops, but I reckon this is harder to make than just disabling it.
You could make the item apply a regular state with a duration in turns, instead of using a constant passive state. That will work exactly the way you describe.

P.S. I don't know how you're making your quotes, but it doesn't actually have my name and it's not sending me notifications when you do it. If you use the Quote or Reply buttons, it will do that automatically.
Hmmm, does the VisuStella <JS type Slip Heal> notetag work here?

You can check in the condition if: $gameParty.inBattle()

You could also check the steps on map into a variable and make that affect the calculation. And then set the steps to 0 when battles start.

EDIT: I guess you'll also need the <JS Slip Refresh> notetag.
One other way is you could do a check in battle troops If item equipped, add a state that does 1% MP regen that is removed at end of battle. Though that will also be easier if you use a base troop events plugin so you don't have to put that in every troop event for the entire game. And you may have to also fix it being removed by death too.

Though on the subject of walking back and forth to regen, it will take SO long anyways its probably not worth worrying about it. By default its like every (15?) steps, so that is 1500 steps to regenerate. Most players will be bored before they do that.
also by walking on the map.
because there is the function call "turn_end_on_map", which is usually every 20 steps.
find it and comment it out, and no turn should be processed outside of battle.
that goes for everything, tho: ailments AND regen, and any turn cooldown system you may have.

Since you can walk back and forth to get full regeneration each time
"walking back and forth" is the engine's way to mimic the passage of time in not-real-time.
since almost everything in the engine is played at every asynchronous cue, they tied the regeneration to the walking because normally you'd have enemies respond to that walk (random encounters) and that walk is what moves the game.
otherwise you'd stall it just by standing still.

you can also have the potion add a state that causes that regeneration and removes itself out of battle.
set the potion to not be usable out of battle, and you'll keep the other regenerations.

Original thread: https://forums.rpgmakerweb.com/threads/fix-the-regeneration-system.168016/