Hello there. Is there a way to make the HRG and MRG traits only apply during battle?
Some of the gear I want to make in my game has mana/hp regen as a bonus, but as the player walks around on the map, those traits are kicking in and I only want them to be active in battle.
Thanks for your time.
Depending on how many objects with regen you have you can create a state for each object and check if the object is equipped. If yes a troop event could add the state (do it when turn is 0), if not nothing happens. The state could be removed at battle ending and this way you only have regen during battle.
If you don't want to use a state you can create a copy of that item without regen. The player will equip that copy but, when in battle, you can set up an event to change the equipped item into the one with regen. Of course you should swap again after batlle. A common parallel process that triggers when a switch is on should do the trick.
That actually sounds like a good idea, but I run into the small issue that my characters also have passive mana/hp regen depending on their stats.
I allow players to add gems to their gear to boost whatever stat they want, and at certain thresholds, some of their X-Params/S-Params go up.
For example, for ever 15 of a "spirit" stat a character has, they gain 1% Mana Regen.
I'll fiddle around with your idea though, it could very well work if I played with some variables and whatnot.
Actually you could store the number of HRG and MRG gems a character has into variables and then modify the parameter only during battle the same way you modify items. Just don't do it for all parameters since if you modify something like HP this way you have to heal the character at the beginning of each encounter.
The "equip state" solution should theoretically work, regardless of whether you have other HRG/MRG healing.
An even better way to do it would be to disable the method(s) responsible for handling HRG and MRG in the world map in the default JS scripts or with plug-ins. I couldn't immediately find where to do this in MV, but if it's any help, I *think* the corresponding Ace method is "turn_end_on_map" which is a method of Game_Actor. You might be able to use what's there to find an equivalent in the MV scripts.
*nudge* Still looking for a solution to this.