MZ Have many different "required weapons" for a skill

but I'd like it to be an "OR".

For instance, a strike that would be available if the character has equipped a knife OR a sword OR a saber.
Or a rain of arrows if a bow OR a crossbow is equipped.

Is this doable?
For up to two weapons, (e.g. your rain of arrows example) that already exists in the editor, at the bottom of the skill entry in your database.

For more than that, this was done via Yanfly's Skill Core - have you looked at the VisuStella Skills and States Core to see if it has the same functionality?

Edit: it does, the JS Skill Enable notetag.
Which code should I use to enable it for, say, weapon types 3 and 4?
I Googled "RPG Maker MV script equipped weapon type" (I see you're using MZ, but most of the code is the same) and got this: $gameParty.members()[x].isWtypeEquipped(n);

We don't care about the gameParty bit because the instructions for the VisuStella Skills says "The 'user' variable refers to the user with the skill."

So you would simply do
Code:
<JS Skill Enable>
enabled=user.isWtypeEquipped(x) || user.isWtypeEquipped(y) || user.isWtypeEquipped(z)...etc.
</JS Skill Enable>
Thank you!
I Googled "RPG Maker MV script equipped weapon type" (I see you're using MZ, but most of the code is the same) and got this: $gameParty.members()[x].isWtypeEquipped(n);

We don't care about the gameParty bit because the instructions for the VisuStella Skills says "The 'user' variable refers to the user with the skill."

So you would simply do
Code:
<JS Skill Enable>
enabled=user.isWtypeEquipped(x) || user.isWtypeEquipped(y) || user.isWtypeEquipped(z)...etc.
</JS Skill Enable>

Just wanted to say thank you for this and many many other responses you've done over the years!

I'm brand new to RPG Maker MZ, got about 300 hours so far into a fun little project I've been winging cluelessly, checked the forums at least 30 times and you have personally provided the answer to so many issues I've experienced thus far.

You are a true asset to this site!
Just wanted to say thank you for this and many many other responses you've done over the years!
And he'll never say it himself, so I want to say it for him:
People who take the time out of their day to share their appreciation for some of the amazing people who have bent over backwards to support this community are truly heroes themselves. So much of their work; Turan, Avery, or Trihan, or otherwise - often get a simple "thank you" at best (which is totally fine by the way), but more often receive very little in the way of gratitude.

Someone who took the time to vocalize sincere appreciation like this is unique, and although I'm not Turan, I equally can feel your gratitude. It's quite uplifting.

Please keep at it, brother. You're a gentle soul. We'll be here whenever you need it. 👍

Original thread: https://forums.rpgmakerweb.com/threads/have-many-different-required-weapons-for-a-skill.148290/