Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anpumes
Member
 
Join Date: Sep 2012
Posts: 57

Old April 19th, 2014, 03:31 PM
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?
Anpumes is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:51 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.