Can I set an actor's HP when they join the party via variable?

I am trying to make it so that when the player adds a new party leader, that leader comes in and assumes the same amount of HP as the person they traded out. I could have sworn I could just set XYZ actor's HP to a variable, but apparently not.

For a broader bit of context: The player controls one character throughout the whole game and adds and swaps followers along the way, but it's always the same "character" in the lead. What I'm doing with the life bar situation is the player can also obtain different outfits with different perks and pitfalls for the same "character" but I'm doing this via different actors. So when the player goes into the wardrobe to change outfits, even though it's their "character" it's a different actor, and I want to keep the HP the same when they swap out.

I'm open to alternative ways of viewing the solution if not a variable.

Thank you.
You can use the built in event commands to store the original party leader's HP into a variable, then use Conditional Branches to compare it to the new party leader's HP, get the difference, and use Change HP.
However, it might be easier to just use commands like Change Actor Images, Change Class, etc, rather than swapping out the actor.
Thank you, both.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-set-an-actors-hp-when-they-join-the-party-via-variable.168462/