Making an Enemy's HP a Variable.

So there's this enemy and I want to make his HP be combined with a Variable.
So If the player would go to face him again the HP on him would be the same as the last time they fought.

So is this possible?
During battle, store the enemy HP into a variable, subtract the value from his max HP value and then in the rematch, change his HP equal to the subtracted HP value stored in the variable.

Original thread: https://forums.rpgmakerweb.com/threads/making-an-enemys-hp-a-variable.74402/