Shield required to use skill.

Hello everyone,
Is there a way to make a skill which the character has learned but can only be used when a specific equipment is equipped, for example a shield.
Adding the skill to the shield can solve the problem, but I want to implement a skill learning system so I don't want the skill to be used without learning that specific skill.
not without plugins - the only default requirement possible on skills is the weapon type that needs to be equipped, neither other equipment nor specific weapons will work.
Moved to: Plugin Request
Thank you for moving the post, I was unsure as to where to post it, it's my first time posting anything here 🙂
And about my question, so is there any plugin that would help me to do that cause I have searched but couldn't find anything that would provide me with a solution :rsad:
Yanfly's Skill Core will do the trick.

Use a Custom Show Eval, a Custom Requirement, or both.
Thank you for that, I am using Yanfly's Skill Core, but I don't have any knowledge about javascript so it slipped my mind 😅
<Custom Requirement>
if (user.level > 10) {
value = true;
} else {
value = false;
}
</Custom Requirement>

This makes the skill be only usable when the users lvl is higher then 10, I know that I have to replace the "user.level > 10" with the code to make it respond to users equipment but since I have no knowledge about javascript I'm stuck at that point.
I searched google all over but couldn't find anything, so I would really appreciate if someone would help me with this 🙂
This should disable the skill if the user has nothing equipped in the second slot (in the list of equipment types, Shield by default):

Code:
<Custom Requirement>
if (user._equips[1]._itemId == 0) {
  value = false;
} else {
  value = true;
}
</Custom Requirement>

In the code, the equipment slots are numbered starting from 0, so an actor's "_equips[1]" is the item equipped in the second slot. If that items has the id 0 it means that there is no item equipped in that slot.
This should disable the skill if the user has nothing equipped in the second slot (in the list of equipment types, Shield by default):

Code:
<Custom Requirement>
if (user._equips[1]._itemId == 0) {
  value = false;
} else {
  value = true;
}
</Custom Requirement>

In the code, the equipment slots are numbered starting from 0, so an actor's "_equips[1]" is the item equipped in the second slot. If that items has the id 0 it means that there is no item equipped in that slot.
Thank you very much. I was almost close to pound my head (literally 😛) but you saved me from doing that 🙂

Original thread: https://forums.rpgmakerweb.com/threads/shield-required-to-use-skill.78807/