How do you do a clone skill?

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
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.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 1, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top