I know I could do this with events but I don't know how. I want the skill to make a clone of the particular actor who uses the skill (only one character can do it) and have it disappear at the end of the battle, also it disappears when it's health reaches zero. I'm guessing I'd need to make another actor for the clone but I'm not sure how I'd get it to be the same level, leave the party when it dies, and when the battle ends, and have same stats.
Any help appreciated thanks.
It's trickier than you might think.
First, yeah, create two identical battlers in the database - the "real" character and the "clone" character.
Second, as part of the Common Event that runs when you use the clone skill, you'll need to set the parameters, skills, etc., and the best way to do that is with a script call. You can find most of the relevant things in Game_Battler1 and Game_Actor, and you'll be using calls like:
$game_actors[29].level = $game_actors[3].level
$game_actors[29].skills = $game_actors[3].skills
$game_actors[29].str = $game_actors[3].str
I think this will work if the event is called during battle. Haven't tried it myself. But if it doesn't update, then I'd recommend calling this stat update event right before battle starts, or maybe even on Turn 0 of each battle.
Finally, you'll need a troop event in every troop (scope: "Moment" or "Turn") that runs when the Clone's HP is 0% or below which removes them from the party. You could also script this to save yourself the trouble of adding it into every troop, but it's not strictly necessary.