I'm looking for a event system for a skill (common event through skill though other things may be involved), for a skill I call mimic, which will have two functions, but you can do whatever one is easier.
1. Repeats the action of the actor who went before the actor with Mimic. (For example, Actor 2 uses Fire, and so when Actor 3 uses Mimic, it'll be Fire instead.)
2. Adds the skill used by the actor who went before the actor with Mimic to their skill rooster. (Like Smeargle's Sketch skill)
I can do that, and it only needs 1 variable. It takes longer depending on how many skills would be available to mimic (obviously), but here goes.
1) Give all mimic-able skills a common event that sets the mimic variable to a constant. Make sure it's different for every skill.
2) Make your mimic skill. Make it do nothing except a common event, plus have it target one enemy (unless you want your targets to be random).
3) Let's say the first mimic-able skill, Fire, sets the variable to 2. Give the mimic skill a common event with a conditional branch of "variable [mimic] = 2."
4) In the true branch, put a Force Action command. Make it so Actor no. 1 uses Fire on the last target, and set it to execute now.
5) Now, put another conditional branch inside this same true branch that checks if the actor with mimic has learned the skill it just mimicked, and set it so there is no "else" branch. In the conditional branch, set it to teach the mimic character the skill, possibly with a little message or something.
6) Now add another conditional branch in the "else" branch of the first. Repeat steps 4-5 until all skills needed are mimic-able.
I haven't actually tested this, so I'm not completely sure about it, but I think it's likely to work. There are some limitations, though:
-Can only mimic skills, not other actions.
-Always mimics the last skill used in the skills you event for, even if you haven't used a skill in several battles.
-Mimicked skills still use MP. That's fixable if you just create no-MP duplicates of each skill and have mimic force their use instead.
-Must make a separate version of mimic for each character to use it because of its actor-specific commands.
There are probably other limitations too, but I'm losing my train of thought for some reason.