I am trying to have a skill(Shield Bash) that is only enabled/useable if the actor with the skill has a Shield equipped. I checked the script call list and what I came up with is:
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];
On a related side note, where do yall classify Shields? as a weapon or 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.
and does a Shield slot need to be in both Armor and Equipment on the 'Types' section of the database?
The words in Armor Types determine whether or not an actor can equip that specific item according to their Traits.
Everyone has all slots.