Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old October 29th, 2019, 03:32 AM
I have this tag expression:
Code:
hero.tagexpr[BaseArmTyp.Light | BaseArmTyp.Medium] <> 0
and I want to apply it to a foreach loop so that it applies a reduction of armor check penalty for each pick that is true.
Code:
foreach pick in hero from BaseArmor where (tag expression is true) 
eachpick.field[arArmorChk].value += 1
        nexteach
What's the correct syntax that makes this work?

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 29th, 2019, 08:05 AM
foreach pick in hero from BaseArmor where "BaseArmTyp.Light | BaseArmType.Medium"


Also, do you want BaseArmType, and not ArmorClass? It would depend on whether Mithral Full Plate counts for this - that armor will have BaseArmType.Heavy and ArmorClass.Medium - HL tracks both the adjusted and base armor types, because there's some things that test one and some that test the other.
Mathias is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old October 29th, 2019, 10:55 AM
Quote:
Originally Posted by Mathias View Post
foreach pick in hero from BaseArmor where "BaseArmTyp.Light | BaseArmType.Medium"


Also, do you want BaseArmType, and not ArmorClass? It would depend on whether Mithral Full Plate counts for this - that armor will have BaseArmType.Heavy and ArmorClass.Medium - HL tracks both the adjusted and base armor types, because there's some things that test one and some that test the other.
Thanks for that Mathias, I wouldn't have caught that differentiation. ArmorClass is what I want.

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 12:08 AM.


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