MV Yanfly skill core, required weapons.

Using Yanfly's skill core http://www.yanfly.moe/wiki/Skill_Core_(YEP)
How would I go about making a skill only useable if a character has a certain weapon type equiped?
Im pretty sure you can restrict a skill to 2 weapon types in the default maker database
1639930296159.png
Im pretty sure you can restrict a skill to 2 weapon types in the default maker database
View attachment 210275
Indeed you can, but for what I'm looking for I need 3 > <
I'd try something along the lines of:
JavaScript:
<Custom Requirement>
   value = a.isActor() && (a.hasWeapon($dataWeapons[weaponId_1]) || a.hasWeapon($dataWeapons[weaponId_2]) || a.hasWeapon($dataWeapons[weaponId_3]);
</Custom Requirement>
Obviously you need to replace the weaponId_X with the actual weapon IDs.
I'd try something along the lines of:
JavaScript:
<Custom Requirement>
   value = a.isActor() && (a.hasWeapon($dataWeapons[weaponId_1]) || a.hasWeapon($dataWeapons[weaponId_2]) || a.hasWeapon($dataWeapons[weaponId_3]);
</Custom Requirement>
Obviously you need to replace the weaponId_X with the actual weapon IDs.
Thanks! I really should get around to actually studying Javascript...

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-core-required-weapons.143142/