Mimic Skill

Seacliff

RPG Maker Mastermind
Veteran
Joined
Nov 8, 2012
Messages
2,982
Reaction score
1,129
First Language
Yes
Primarily Uses
RM2k
I've been trying to look through Yanfly's tip and tricks hopping he covered this already, but apparently not. Either through the default editor or through yanfly's skill core plugin, does anyone know how to recreate a 'mimic' skill as seen in Final Fantasy/Bravely series?

For reference, when used, the mimic skill imitates the previous command used by any party member or enemy without any consumption of the resources typically required to use the skill. (Like MP, TP, or HP).

Thanks for your time.
 

Blue Symphony

Wandering soul
Veteran
Joined
Jan 24, 2014
Messages
63
Reaction score
27
First Language
Spanish
Primarily Uses
RMMV
Now this was a tough one...
To somewhat replicate this you'll need the following Yanfly scripts:
The Mimic global state:
In your Auto passive states plugin you'll need to set up a new global state, which will have the following code in it's notebox.
Code:
<Custom Action Start Effect>
var action = user.currentAction();
if (action && action.isSkill()) {
  actionId = action.item().id || 1;
  if(actionId != x)
     $gameVariables.setValue(y, actionId);
}
</Custom Action Start Effect>
Where x is your actual Copycat skill ID, if you skip this you'll enter an infinite loop and break the game!
and y is a game variable which will store the id of the last used skill. Remember to not use this variable anywhere else!
upload_2017-12-8_21-0-30.png

The mimic skill
You want to set it up to:
Damage: None
Scope: 1 Enemy. You can expand this using Yanfly's target core.
Animation: None, unless you want to, but it might look funny.
Then paste this on it's notebox:
Code:
<After Eval>
  var id = $gameVariables.value(y) || 1;
  BattleManager.queueForceAction(user, id, target);
</After Eval>
The value of y is the id of the variable we talked about earlier.

upload_2017-12-8_21-15-24.png

The "without any consumption of resources" is beyond me, but I have a feeling it might be possible. But I don't know how yet.
Note that you'll be able to use the skill even if you don't have enought MP.

Try it out and tell me how it goes.
 
Last edited:

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
@Blue Symphony "without any consumption of resources" means not using mp or tp.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
557
Reaction score
232
First Language
english
Primarily Uses
RMMV
well mp cost "maybe" able to get around that. if that mimic skill can damage formula a.addState(x); 0
state x = MP cost 0%
as for something to reduce TP cost ????? idk aside from mimic skill giving u some TP when u use it to try n minimize the loss
either way saving this topic so can play around with it later
 
Last edited:

Seacliff

RPG Maker Mastermind
Veteran
Joined
Nov 8, 2012
Messages
2,982
Reaction score
1,129
First Language
Yes
Primarily Uses
RM2k
well mp cost "maybe" able to get around that. if that mimic skill can damage formula a.addState(x); 0
state x = MP cost 0%
as for something to reduce TP cost ????? idk aside from mimic skill giving u some TP when u use it to try n minimize the loss
either way saving this topic so can play around with it later
That works then.

My game wasn't going to use TP anyways. :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,196
Members
137,773
Latest member
Kirakirna
Top