MV Trouble adding extra required weapon types for skills

Having an issue trying to put a Custom Requirement as with YEP_SkillCore in my game to add more than 2 required weapon types (for example, making a ranged skill work with bows AND guns AND thrown, despite the editor only giving 2 slots). I have poked around and I am having trouble basically detecting the battler to check what they have equipped. I tried a few things, the snippet below being my last endeavor, to figure this out, but I am not as well versed with JavaScript and the way RPG Maker allows it to be used in notetags as I need to be to figure this one out.

Code:
<Custom Requirement>
 if (user.isWtypeEquipped(9) === true) {value = true;
} else {
value = false;
}
</Custom Requirement>

Essentially I'm looking for a way to add to a notetag "this weapon ALSO works" in addition to the two predetermined within the editor on a skill-by-skill basis. If you have any insight into what I need to do here let me know! Thanks!
Having an issue trying to put a Custom Requirement as with YEP_SkillCore in my game to add more than 2 required weapon types (for example, making a ranged skill work with bows AND guns AND thrown, despite the editor only giving 2 slots). I have poked around and I am having trouble basically detecting the battler to check what they have equipped. I tried a few things, the snippet below being my last endeavor, to figure this out, but I am not as well versed with JavaScript and the way RPG Maker allows it to be used in notetags as I need to be to figure this one out.

Code:
<Custom Requirement>
 if (user.isWtypeEquipped(9) === true) {value = true;
} else {
value = false;
}
</Custom Requirement>

Essentially I'm looking for a way to add to a notetag "this weapon ALSO works" in addition to the two predetermined within the editor on a skill-by-skill basis. If you have any insight into what I need to do here let me know! Thanks!
What you have there should work assuming 9 is the weapon type of the one of the three that isn't set in the skill dropdowns, but there's a much quicker way to write it:

JavaScript:
<Custom Requirement>
  value = user.isWtypeEquipped(9);
</Custom Requirement>
What you have there should work assuming 9 is the weapon type of the one of the three that isn't set in the skill dropdowns, but there's a much quicker way to write it:

JavaScript:
<Custom Requirement>
  value = user.isWtypeEquipped(9);
</Custom Requirement>
That is actually not doing it for me. I tried both 8 and 10 in case it had something to do with being indexed but that didn't produce any results. The skill is still greyed out. I might be misunderstanding Custom Requirement. I do have Skill Core updated and I reordered my plugins to no avail, as I hadn't done that for a little while.
The plugin says that:
"If value is set to true, the skill will be useable provided that all other requirements have been met."

So maybe it needs the requirements in the skill page (either of those 2 weapons) to be true?
Try leaving them 'none' in the skill page and putting all three in the plugin with OR?
I agree with @rpgLord69, I don't think that notetag will override the weapon requirements in the skill in the database.

You'd need to check all 3, for example:
Code:
value = user.isWtypeEquipped(9) || user.isWtypeEquipped(5) || user.isWtypeEquipped(2)

You could also shorten the syntax like this:
Code:
value = [9, 5, 2].some(wtype => user.isWtypeEquipped(wtype))
Yeah, that's a good point.
I agree with @rpgLord69, I don't think that notetag will override the weapon requirements in the skill in the database.

You'd need to check all 3, for example:
Code:
value = user.isWtypeEquipped(9) || user.isWtypeEquipped(5) || user.isWtypeEquipped(2)

You could also shorten the syntax like this:
Code:
value = [9, 5, 2].some(wtype => user.isWtypeEquipped(wtype))
This ran it correctly. I indeed cannot have required types in the dropdowns if I want the custom requirements to work. Thank you all!

Original thread: https://forums.rpgmakerweb.com/threads/trouble-adding-extra-required-weapon-types-for-skills.165589/