Return converted member back to party after defeating them.

Over the past few weeks, I have been working on creating a mod that features an enemy that can possess members of the party. How it works is that the enemy will attack a random member of the party, that member will be put into a struggle state for a few turns. If the player does not save the struggling member in time, their status will transition from "Struggle" to "Possessed". After getting possessed, that member will disappear after one turn.

Now, what I need to know is how do I make it so that the possessed character will return to the party order if the player manages to defeat them before they escape. I'm still learning about how MV works, so there's still a lot I'm unfamiliar with at the moment. Any help would be greatly appreciated!
Hi there!

So the first question is what mechanically do you do to make the party member leave?
And this is referring to any troop events, common events, etc that you are using?

My thoughts are if you can make them leave, you should be able to return them by a basic reversal of the event.
It would help if you actually showed how you're doing any of this.

With no information, one assumes that "Possessed" is a state...so killing the party member should automatically remove the state, and whatever checks you're doing to see if they have Possessed in the next turn should automatically fail.

Original thread: https://forums.rpgmakerweb.com/threads/return-converted-member-back-to-party-after-defeating-them.171183/