Hello!
I'm trying to make a "shadow clone" skill. It whould copy the character using the skill with all its attributes and remaining HP/MP and ideally with its states. When an amount of rounds is passed the shadow clone whould dissapear again...or if the skill user or the clone itself died. And if something whould remove the "shadow clone state" the shadow clone whould be dispelled.
I tried to achieve this with states.. but I'm having issues.
Sorry forgot my question: How can I achieve such a thing? 😀
Actor 1 will have the shadow clone skill.
Actor 2 will be the clone.
Under the actors tab, copy Actor 1 and paste him in as Actor 2 (changing his graphic and/or name as appropriate for the shadow). Set all of actor 2's attributes to 1 (0 would be better, but it won't allow that) for a custom class, "shadow."
Under the "effects" section of the shadow clone skill, have it call a common event "shadow clone."
In the common event, create a list of variables, and set them to "game data -> actor 1's ____" (HP, MP, ATK, DEF, etc.). Name them Actor1HP, Actor1MP, and so on.
Then, in the same common event, use the "change parameter" setting and set Actor 2's various parameters to increase by the variables you just set. This will have the effect of Actor2 having 1 ATK + (Actor1Atk), 1 DEF + (Actor1DEF), etc.
If you want to be nitpicky, you can then do a change parameter on Actor 2 for all those settings minus 1 to make sure it's an exact copy.
If you want to copy states, I suppose you could do conditional branches for every state you want the shadow to be afflicted with.
I got about that far and I think the only way to do the last part - making it disappear if a state is removed, at the end of combat, after a certain number of turns, if the user died, or if the shadow died - would involve some extra pages on each troop's page. Something like, "If switch[1](ShadowSummon)==ON", then "variable[8](TurnCount)+=1," then a check on each turn "If switch[1](ShadowSummon)==OFF", then "Remove party member [shadow]", then something like "If variable[8](TurnCount)==5", then "switch[1](ShadowSummon)==OFF" and...
It started getting so convoluted that I think your best solution is going to be a script request. You'd effectively need a mix of common events and eventing on each troop page that would have kind of a ridiculous amount of conditional branches and variables.