Use skill only if the player can Equip Weapon Type X?

Hi! I'm looking for a plugin that allows me to define skills that an actor can use only if they can equip a certain Weapon Type.

As it stands, RPG Maker allows developers to set some skills that can only be used if the user has a Weapon certain Type Equiped.
What I need is that the user only needs to be able to equip a weapon of that type, but not necessarily have it actually equipped.

So let's say that I have a skill that would require the user to know how to use a sword. But the sword is not needed for the skill itself. This way even if the player didn't have the sword equipped, they could still use this skill.

This could be set through a notetag like: <CanEquip: Sword> or <CanEquip: WeaponTypeID>

Hope someone can help me on this,
Cheers!
Hello.
You can do this using Yanfly's Skillcore plugin. The function user.isEquipWtypeOk(X) returns true if the user can equip weapons with type X. Put the following tag on a skill to make it require the actor be capable of wielding weapontype X to be eligible to use the skill:
JavaScript:
<Custom Requirement>
 value = user.isEquipWtypeOk(X);
</Custom Requirement>
Just replace X with the weapontype id for the weapon required.
Ok! Nice, that's plenty good as well! 🙂
Thank you so much @ramza !
Quick question though, if I want to get an Armor type as well, can I just replace "isEquipWtypeOk(X)" with "isEquipAtypeOk(X)"?
Ok! Nice, that's plenty good as well! 🙂
Thank you so much @ramza !
Quick question though, if I want to get an Armor type as well, can I just replace "isEquipWtypeOk(X)" with "isEquipAtypeOk(X)"?
That appears to be the case, yes.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/use-skill-only-if-the-player-can-equip-weapon-type-x.117975/