Best way to reset a "Battle" variables??

Hi everyone I need to reset a variable on every time a Battler dies/gets resurrected and or everytime a battle starts/ends.

lets say for example the variable is gotHit... I need to know if since the beginning of the battle the battler got hitted or not... or if he got hit since the last time he was resurrected!

Hope you all understand, where is the best place to do that! What function should I alias maybe to do that?!
Is there a function that gets called everytime a battler enters battle?! either from the beginning of the battle or from being resurrected? (or must I alias more than 1 method?)
 
You'll  want to check the BattleManager (Manager.js), and the  Scene_Battle (Scenes.js). There are various methods, but I believe one of them  has a start battle method -- you  can alias this method for your intended purposes.


I'd provide  for information,  but not near a computer  sadly.


Hope this  helps!

Original thread: https://forums.rpgmakerweb.com/threads/best-way-to-reset-a-battle-variables.55983/