I'm trying to figure out how to tell Hero Lab to disable a feat when a certain set of parameters are met. I have most of it figured out but the one that I cannot find or figure out is if the hero is wearing a shield.
Post-attributes; 10000
Code:
~get our encumbrance level and whether we are wearing armor or a shield - if meet any of this criteria, then finish here
if (hero.tagis[Encumbered.Medium] + hero.tagis[Encumbered.Heavy] + hero.tagis[Encumbered.Overloaded] + hero.tagis[Hero.EqpArmor] + hero.tagis[Helper.CurrShield] <> 0) then
perform hero.child[fRun].assign[Helper.FtDisable]
perform assign[Helper.SpcDisable]
done
endif
The above works well to cover most of it, as I said... Any encumbrance beyond light will trigger the disable, as will any armor with the
Hero.EqpArmor. However, I cannot find an equivalent of that for shields, the best I could come up with is the
Helper.CurrShield but it doesn't do anything unless you set to = 0, at which point it keeps everything disabled.
Is there a tag I can use for shields in the above script?