Adding "IS" variable attachments to objects

Is it possible with note tags to add an "IS" statement to weapons or skills for game maker purposes?

Example: is "Melee", is "Range", is "Mark", is "Lead Attack", is "Easily Interrupted".

You probably see where I am going with this. It would allow a skill to fire conditionally or create conditional damage. I would like to use it so that my "off-hand" gear can include something called a Range Kit. The range kit, when equipped, would allow Range skills to be used even while equipping a Melee weapon. This simulates throwing axes, throwing daggers, throwing a spear, etc... without having to make a set of skills for each possibility.


So in my system a single weapon goes in weapon slot:
Sword, Axe, Spear, Staff, Hand, Bow, Fist, Gun, Whip, or Hammer

The offhand gear slot is a combat style slot:
Shield, Buckler, Heavy Weapon, Dual Weapon, Hands, Range Kit, Trapper's Kit, Orb, Totem, or Relic

The offhand gears modify stats/parameters, and enables a set of skills.
The wording of your original question is kind of odd - what is "an 'IS' statement"? 😉

Your question, as I understand it, boils down kind of simply to "Can I make using a skill dependent on something other than the actor's weapon?" and the answer is absolutely "Yes."

Take a look at the VisuStella Skills and States Core. The JS Skill Enable notetag can be put on skills to make them usable (enabled) under whatever conditions you want.

So, for example, if your off-hand equipment slot is slot 2 in your database, you could do:
Code:
<JS Skill Enable>
enabled = !!actor.equips()[2];
</JS Skill Enable>

and the skill will be usable if the actor has anything equipped there. If you have a variety of items that could go there and you need a specific notetag, you'd do:
Code:
<JS Skill Enable>
enabled = !!actor.equips()[2]?.meta.melee;
</JS Skill Enable>

and that will be usable if they have off-hand equipment with the <melee> notetag.
I will try this or a variant of it. Thank you for pointing me in the right direction. Trying to work 50 hours a week, build out a database, playtest, learn rpgmaker, and learn javascript slowly is a bit daunting, but I think I can pump out a decent first game in about 2,000 hours or so.

Original thread: https://forums.rpgmakerweb.com/threads/adding-is-variable-attachments-to-objects.164816/