Hi,
is there some way to disable the HP & MP Regeneration outside of battle - my outside battle regeneration will be handeled with a belly system (hunger system) similar to pokemon mystery dungeon, and if my actors have HPREG or MPREG it messes with the regeneration outside of battle.
cheers!
The smartass in me really wants to say "Yes, there is some way." because that is the actual question you asked, but I'll be nice.
The easiest way to do it would be to remove the call to onTurnEnd() in Game_Actor.prototype.turnEndOnMap, though that will also prevent the clearing of result, the updating of state turns, the updating of buff turns, and the auto-removal of states.
Probably the way I would go about this would be to overwrite turnEndOnMap to call clearResult(), updateStateTurns(), updateBuffTurns() and removeStateAuto(2) and remove the call to onTurnEnd(). This will make everything work exactly the same way as before but you won't regenerate while walking.
There is another approach if you don't want to go through scripts.
Regeneration is a trait, which means there will be no regeneration if nothing gives the actors that trait outside combat.
If all regeneration is done by states, then simply make those states end when combat has ended, and don't give any HP/MP-Regen-Traits to any equipment, class or actor.
At the same time, that is the only problem where it doesn't work: if you want to have an equipment that regenerates only inside battlescreen, then you'll need a script modification because by default that would work if equipped outside battle.
There are items & equipment that give regeneration so I can't really do it, also have thought about just reducing recovery rate to 0 on maps, but its kinda counter intuitive because I am using the better status menu from ... yanfly (I think it is) and then you wouldn't be able to check your HPREG outside of battle.
Do you want me to tell you how to achieve the effect by editing the default code or do you want me to write you a small plugin to do it?
You decide whats easier, usually I am not too dumb to edit the default code, but ay - you plugin makers and your magic, maybe its easier to just create some small plugin.
for some reason its not disabling the regen.
I tested it putting HREG of my actor to 10% and then running around, it kicks in about every 20 steps :/
I put it on top of all plugins... maybe some other plugin is messing with it >.< but I am like 99.99% sure its not another plugin because
I tested it in a completely new project without any other plugins and the actors regenerated too.
:>
Hmm, it worked in my tests. Let me take another look.
Yeah, they definitely don't regen on my test project. I'd say you might be using a plugin that also does something with turnEndOnMap but you said it also did it in a brand new project...hmm. You didn't change any of the default parameters did you?
Wait, it doesn't regen if you set it to false? That doesn't sound right...the way I coded it, it should regenerate stats if the parameter is anything but true. So you're saying when you set it to false, you DON'T regenerate?