Remove *turns* of a state while walking out of combat?

I have no idea if possible with common events but to cast a skill like regen that lasts 5 turns but if combat finishes and you have 3 turns left, outside of battle every 50 steps removes a turn and you gain some hp.
Is it possible or I'm asking too much?
its already like that by default. think the default is 30steps.
changing this requires editing .js files or a plugin that can do it for you
It does not work that way at all. I tried running around at least 200 steps and the state did not get lowered. Also it does not solve the healing aspect.

Original thread: https://forums.rpgmakerweb.com/threads/remove-turns-of-a-state-while-walking-out-of-combat.126992/