garret95

Pokémon Breeder
Member
Joined
Mar 15, 2017
Messages
17
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
Hi, I have this skill inspired by the Mirror Move ability from Pokémon that Yanfly made in one of his videos. It's a skill that copies the last skill used by a character.
Works great, but I think it isn't quite complete yet.

Here is a link to the video:


And here is the code he wrote for it:

Global Passive:
JavaScript:
<Custom Action Start Effect>  var action = user.currentAction();  user._lastUsedSkill = user._lastUsedSkill || 1;  if (action && action.isSkill()) {    user._lastUsedSkill = action.item().id;  }  </Custom Action Start Effect>
Skill Notebox:
JavaScript:
<After Eval>  var id = target._lastUsedSkill || 1;  BattleManager.queueForceAction(user, id, -2);  </After Eval>

The main problem I have with it is the lack of exceptions it has. I don't want this skill to copy any skill at any time, there are a bunch of special ones that shouldn't be copied...
Is there any way of making it happen? Maybe with some "if/else"?
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Steam page is now live!
1632768058957.png
just discovered thig game called Willowbrooke Post... beautiful artstyle if I do say so myself... does anyone know what this kind of style is called??
In one of my game projects, I am working on an arena where you can fight combatants or bet on monsters, and, man, it is taking so long, lmao. I do not think that it helps that I am using an evented combat system with a lot of things that I have to edit.
Time to take a little break from the project to work on another for Skyrim. Shouldn't take too long, as it's just fulfilling an easy to do request(more than likely I'll get beaten to the punch but...) this also gives me an excuse to play Skyrim again LOL.
Dawg.gifKhat.gif
I made two new friends today. I'm not sure which style I like the best..?

Forum statistics

Threads
115,413
Messages
1,089,670
Members
150,154
Latest member
STZarok
Top