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.