Copy stats from one actor to another in battle

I'm trying to figure out how to copy an actor's stats to another actor when it comes into battle. I know I have to use a skill and common event to do it, but I don't know how to script it. I found this resource: https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/ and I was able to script the event to change the stats, but I don't know how to copy them from another actor.


For example, I used this to change the actor's level to 5:


$gameActors.actor(13).changeLevel(5, false);


Is there a way to modify this to change the level to whatever another actor's level is at the time the event is called?
You will need to use a variable for each of the stats you want to copy over using control variables->game data->actor.  After that just change parameters for the actor coming into the fight to the variables'.
Ha ha, I actually figured that out and was coming to update the post. Thank you, though!

Original thread: https://forums.rpgmakerweb.com/threads/copy-stats-from-one-actor-to-another-in-battle.68481/