Need help setting up a move

Hello, all. I was wondering how to do a skill that a character could use that copies an enemy move. Something like a counter move but doesn't require the character to be hit but can use a special move the enemy has used in the battle.


For example:


Ice Lord uses Blizzard>hits Freya


Ernest uses move Copycat


Ernest uses Blizzard>hits Ice Lord


How can I set that up?


Edit: I accidentally put this question in the wrong place. I forgot which one I was in when I submitted and didn't pay attention. I am sorry.
Hi, i have a simple question first: is only one actor supposed to be able to use the copy-skill, or more than one? or rather, is only one supposed to be in the party that can use that skill?
Hi, i have a simple question first: is only one actor supposed to be able to use the copy-skill, or more than one? or rather, is only one supposed to be in the party that can use that skill?

Only the actor that has acquired the skill through the class. It is a class specific skill so only the actor that has that class (counterfeiter) can acquire and use it. Also, the copied move needs to be slightly weaker, if that is possible.
Well: for the reason i asked is, because it could make another Actor use the copied skill instead of the actual actor using copycat (if more than one Actor has this skill, class or not)


In case only one has it (for example, only one actor has this class):


Common event on the enemy Skill 1:


   Set Variable EnemySkill = 1 (EnemySkill is the variable you've set and want to use with copycat)
the same with skill 2 and so on, the difference there though is that instead of setting it to 1, you set it to 2 and so on...


Edit: The Force-Action event is in the last tab of events, the fourth from the bottom right upwards!


Common event for the copycat skill:


If (Variable EnemySkill = 1)


   ForceAction (Actor, Skill the enemy used, last target)


End


If (Variable EnemySkill = 2)


   ForceAction (Actor, Skill the enemy used, last target)
End


...


though if you have more than 1 actor having copycat (due to the class) i don't know right now how to check who used the skill, else you just add the "if's.." to the check on every one possible to have the skill, though, i don't know that right now.


That is as far as i can help you with this, and as for the "weaker" copy, you may have to make a second skill (exactly like the one the enemy uses) but weaker and set it into the forceAction.


I hope this will help you a bit~ :3
Your best bet would be to search for a blue magic plugin.  If any haven't been made for MV yet, you could try to put in a plugin request.
Thanks to the both of you. I will check both options to see what comes about.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-setting-up-a-move.57105/