• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with shield tags

Anpumes

Well-known member
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?
 
Look at the tags on the hero after you equip a shield. Any of them look like a tag that would indicate a shield is equipped. I am pretty sure the shield tag your using is the one on the pick and not on the hero.
 
Look at the tags on the hero after you equip a shield. Any of them look like a tag that would indicate a shield is equipped. I am pretty sure the shield tag your using is the one on the pick and not on the hero.

I did that while I was searching for the encumbrance tags. I don't know why I didn't think of that, aside from the armor tag showing up on the armor when it is equipped and neither of the shield tags do...

Final if statement code looks like this and also include bucklers...
Code:
   if (hero.tagis[Encumbered.Medium] + hero.tagis[Encumbered.Heavy] + hero.tagis[Encumbered.Overloaded] + hero.tagis[Hero.EqpArmor] + hero.tagis[Hero.EquipShld] + hero.tagis[Hero.ShldOffOK] <> 0) then
Thank you once again for the help.
 
Back
Top