Show skill only with (x) weapon type

I've tried searching and the only advice I could find didn't seem to work.

I'm using Yanfly's Skill Core, and trying to make it so skills only show when a certain weapon type is equipped.

The closest I have is:

<Custom Show Eval>
if (a.isWtypeEquipped(2)) {
value = true;
} else {
value = false;
}
</Custom Show Eval>


But it doesn't seem to be working. Does anyone know how to do this correctly? 🙂
Try replacing "value" with "visible". Show Eval uses visible as it's variable.
Try replacing "value" with "visible". Show Eval uses visible as it's variable.
Doh. I think I had that at one point. It seems to be working now thanks! 🙂
You're welcome! I'm glad it was that easy, I didn't recognize some of your code.

Original thread: https://forums.rpgmakerweb.com/threads/show-skill-only-with-x-weapon-type.79440/