State damage on game map

I created a Burn state in order for actors and enemies to gradually lose HP over time using the Ex-Parameter HP Regeneration and using a negative value, but Actors inflicted with the Burn state are still losing HP even after a battle ends. The same red screen flashes as if a character is walking over a damage tile. In short, I want my state to gradually rob an Actor of HP during a battle, but not when the battle finishes and the Player stops moving around.

I think it's bound to take damage outside of battle on its own because of how HP Regeneration works, and in that case I can't do anything about that, but does anyone know anything else I can use to drain HP in battle but stop outside of battle?

Thanks in advance.
you don't want the state removed after battles are over? I'm confused
I believe you would need an event that would end a state, if I'm thinking correctly. Of course, I'm only thinking from a VXA perspective.
In the states tab of the database, check "Remove at Battle End" under Removal Conditions.

Edit: or if you want the state to persist after battle but not actually deal damage, I would suggest taking out the negative regen trait, using Yanfly's Buffs & States Core, and putting the burn damage effect into a Custom Turn Start Effect.
No, I want it to stay there so that if the player doesn't treat it when the battle is over and they're back at the map, it'll move over to the next battle.
The thing is, I don't want it to damage the player over time outside the battle before another battle starts. Is there any way to fix that or no or will I have to use another trait besides Ex-Parameter HP Regeneration
you don't want the state removed after battles are over? I'm confused
i know this can be done with passive state conditions checking if party is in battle.
this requires yanfly auto passive states plugin to do it.

remove the ex param damage from your burn state.
(this state will instead just be used for the icon and turn count)

make a passive state (no icon or conditions)
give the passive state the ex param for damage over time
and put this notetag in the passive state

<Custom Passive Condition>
if ($gameParty.inBattle() && user.isStateAffected(X)) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

replace X with the ID of the original burn state

now give the passive state to all actors in the database using the notetag
<Passive State: X>

replace X with the ID of the passive state
Wow, I never even thought of doing that! It worked like a charm, thanks for the help.
I realize now I could've just left the burn step damage thing alone and just make it harder to get it in the first place, but I've never touched plugins before, and passive conditions are really useful for me to use on some of my other states i'm making, so thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/state-damage-on-game-map.124651/