The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: kentona on April 22, 2010, 01:28:26 PM

Title: [REQUEST] Mimic or Mime ability in battle
Post by: kentona on April 22, 2010, 01:28:26 PM
Mimic Ability
April 22, 2010




Summary
I was wondering if it was possible to create a Mimic ability in RMVX?

The Mimic skill (or command) causes the caster to repeat the previous action of the last ally to act, with no MP consumption on the Mime's part.

Now, I am using the default front-view battle system in my game, so let's say my Mime uses mimic, and my Wizard uses Fire 3 and my Knight uses a regular attack.  The Knight attacks, then Wizard casts Fire 3 on a Slime, and then when the Mime turn comes up, the code will know that the last skill used by an ally was Fire 3, so Fire 3 is cast again by the Mime (but no MP is used up).

Features Desired
Some other rules:
-Mimicking an item use causes another of that item to be used up
-The character will mimic commands such as Defend and Attack
-The mimed action is dependent on the mime's stats, not the character they're miming
-If the skill targets a random enemy, the Mimed skill will also target randomly

Other rules I can imagine specific to RMVX front-view system, if the Mime ends up going first during a turn, he will use the last ally action from the previous turn (if possible!) or his turn is wasted (if that is easier to do, this is acceptable).  If there are two mimes and both use Mimic, they both will copy the last non-Mimic skill or command used.

I have only a vague understanding on how battles are handled in the code for RMVX, so I am not sure if this is even possible to do.  If it is impossible, let me know!

Mockups
N/A

Games its been in
I am basing this skill idea on the Mime class from FFV: http://finalfantasy.wikia.com/wiki/Mime_(Final_Fantasy_V)




Did you search?
Yes

Where did you search?

What did you search for?

Thanks.

Title: Re: [REQUEST] Mimic or Mime ability in battle
Post by: modern algebra on April 22, 2010, 10:28:25 PM
Alright, I gave it a try: Mime Skill (http://rmrk.net/index.php/topic,38277.0.html)

Please tell me if it isn't working properly or if you aren't sure how to use it.

Also, I love seeing requests that are this detailed.
Title: Re: [REQUEST] Mimic or Mime ability in battle
Post by: kentona on April 22, 2010, 10:29:41 PM
That was remarkably quick!  I will try it out right away.