Actors's EXP and Level bound

Is there any script to bound multiple actors with the same EXP and level of each other? Because they're a same one anyway. Like, a transformation skill.

For example, in battle, Actor A use skill X (or item X), Actor A change into Actor B (Actor B's EXP and LV are the same as Actor A, and Actor B's stats must be up-to-date with the LV, not by LV up after the fight). And even if the battle end as Actor B, Actor A will gain the same EXP as Actor B and Actor B will be changed into Actor A after the fight.

Original thread: https://forums.rpgmakerweb.com/threads/actorss-exp-and-level-bound.41915/