I am trying to figure out a few unique Skills. It basically is a Limit-Break technique that will resolve and then use another sSill, depending on certain criteria. I want one version to depend on a particular Actor, and another that depends on the type of weapon they are using in battle.
But how do I go about doing this? If there are script calls that can make this possible, that would be pretty handy! If not, might I be directed to a Plugin that'll make this possible?
Could you be more specific?
You want it to replace the attack command or something similar?
Hmmm.. Maybe you can use yanfly instantcast on the "limit" skill, which then calls a common event with your conditional branches that force action whatever skill it's supposed to use?
If I recall correctly, isn't it possible to activate a skill from an event? So, your "limit break" skill could call an event which then checks what weapon is equipped and activates the appropriate skill.
That still requires a way to inform the event who activated the skill, but I'm pretty sure I've seen a plugin for that somewhere…
You can do this easily with yanfly's battle manager by typing in the code into the skill notebox
eval:
If($gameActors.actor(actorID).hasWeapon($dataWeapons[weaponID])
eval: Battle manager.forceAction($gameActors.actor(actorID))
end
Just replace actorID with the ID of the actor you want to use and weaponID with the ID of the weapon. You can go further by adding and elif function
Like some persons here have commented, you can do it with Common Events and Conditional Branches.
Basically, you create one single skill (or more if you think it's appropriate) and them use the Call Common Event Trait. On this Common Event you shall use some Conditional Branch Command to check if the said actor is equipping said weapon.
As for checking if it's said actor that's using the skill, you will need to use some scripts with the Script Command to check if it's the corresponding Actor you want.