Member
Join Date: Sep 2012
Posts: 57
|
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 Is there a tag I can use for shields in the above script? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Member
Join Date: Sep 2012
Posts: 57
|
Quote:
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 |
|
#3 |
|
|