Restricting use of skills due to equipped items?

So, in my new MV project, I'm trying to recreate an effect I had in my old VX Ace project. 


I found a script in VX Ace by Hime (I think I used Hime's). What the script did was allow me to restrict the use of a skill if the actor lacks a certain equipment type. For example, a Shield Bash skill is unusable unless the actor has a shield equipped. Is there an MV equivalent of this?
http://yanfly.moe/2015/10/13/yep-8-skill-core/

I believe Yanfly's skill core may be able to achieve that, though I've not personally tried it myself yet. That being said, you will need to setup the skill note tag for that to happen. 


It's under Lunatic Mode - Custom Requirements and Executions on that page.
<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>


I see that now, haha! XD


What would the If:Else be, though? Would it be something like this?


<Custom Requirement>


if (user.equipped atype 5, 6)


value = true;


} else {


value = false;


}


</Custom Requirement>


Armortype 5 being Shields and 6 being Heavy Shields.


Sorry, I don't know much about JavaScript 🙁
As of right now, I am unable to find a way to utilize armor type, due to rpg.object,js lacking the isequipped for armors.


For Weapons, this would be something you would use.


<Custom Requirement>


if (a.isWtypeEquipped(1)) {


value = true;


} else {


value = false;


}


</Custom Requirement>


The above code, when placed inside a skill notetag, will grey out a skill, preventing its usage unless the user has a weapon with weapon type 1 equipped.


If you ARE feeling adventurous, I wrote a little snippet here that will allow for armor type checking


https://www.dropbox.com/s/px1g4yhxu00uu21/ArmorTypeCheck.js?dl=0


The check will be 


isAtypeEquipped so your code will be


<Custom Requirement>


if (a.isAtypeEquipped(5) || a.isAtypeEquipped(6)) {


value = true;


} else {


value = false;


}


</Custom Requirement>


I've tested it and it works for my project, hopefully it works for you too!
Thanks, Andai!


I'll give it a check when I can and let you know!


EDIT: It's working! Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/restricting-use-of-skills-due-to-equipped-items.60040/