I'm not sure what you looked at there, but that's the wrong script call in several ways.
1 - It's only checking actor ID 10, when you want it to check the actor who is looking at the skill in their list.
2 - It's only checking if that actor has armor ID 6 equipped, not just "a shield".
As the documentation for that notetag says,
And checking for something to be equipped in a slot references the equips() array. Exactly what you do depends on how you've set up your equipment slots; but, referencing the default list:
and we subtract one because lists in JavaScript start from index 0. So seeing if there's anything in the shield slot is
Code:
enabled = user.equips()[1];
That's entirely up to you. In the actual world, the primary purpose of shields was not to try to hit people, but to defend yourself. Thus, they are categorized as a piece of armor.
You do whatever you feel like, but if you're going to say they're weapons you might consider using a different word than "shield" so you don't confuse players.
Only one of those things (Equipment Types) has anything to do with slots.
The words in Armor Types determine whether or not an actor can equip that specific item according to their Traits.
Everyone has all slots.