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.
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!
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!