Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#hasfeat[fDodge] >= 3
#hasfeat[fMartial] >=3
#hasfeat[fWepMart] <> 0 + #hasfeat[fMartial] >=3
validif (hero.tagcount[HasFeat.fMartial] >= 3)
validif (#hasfeat[fWepMart] <> 0)
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'pre-requisite rule' script for Thing 'fSpiritArs' on line 1
-> Reference to undeclared variable: 'validif'
Syntax error in 'pre-requisite rule' script for Thing 'fSpiritArs' on line 1
-> Reference to undeclared variable: 'validif'
When anything lists "validif" statements that means the script logic goes into the "Pre-Reqs" section instead of the "Expr-Reqs" section.Now I'm getting:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'pre-requisite rule' script for Thing 'fSpiritArs' on line 1
-> Invalid syntax for tag template
validif (hero.tagcount[#HasFeat.fMartial] >= 3)
validif (#hasfeat[fWepMart] <> 0)
Just a question as I am still a little confused on picks and things. But I think you mean to say "foreach pick" not thing as from what I seen I thoughts picks can be accessed without being on the hero right? This way you can test to see if the weapon is martial even without it being a Thing on the hero.All that said, you could then use those pulled tags to generate a string to use for a tag expression, and then use a "foreach thing" to cycle through matching weapons.
Cool thanks. I think I had it backwards in my head still. I always have to look at a pair of scripts to remember which is which. I knew one only finds what is on the Hero and one finds stuff even if not on the hero.foreach pick can only find those items that are picks - that are on the character.
foreach thing can find all potential items of that type, but its results are read-only.
I'm pretty sure Aaron did mean foreach thing, because if you used foreach pick, you'd need to have purchased three different martial weapons you are proficient in in order to fulfill the requirements of the ability. foreach thing can check ALL the weapons you're proficient in in order to count the number that are martial.
~ If we have all martial weapons then valid
validif (#hasfeat[fWepMart] <> 0)
var CntMartWea as number
Call CntMartWea
~ If we have 3 martial weapons than valid else not valid
if (CntMartWea >= 3) then
@valid = 1
else
@valid = 0
endif
~ We need to test for both the 2nd level and 3rd level versions of the spell
~ set parms for Call
var HaveSpell as number
var SpellID as string
~ Set the Spell ID(s) we are to test for
SpellID = "spSpirWea2|spSpirWea3"
Call HaveSpell
~ set if we found the spell(s) or not
@valid = HaveSpell
~ set parms for Call
var HaveSpell as number
var SpellID as string
~ Set the Spell ID we are to test for
SpellID = "spFirebal3"
Call HaveSpell
~ Set the Pre-Req valid flag
@valid = HaveSpell
The next release is weeks away. Any editor that has access to dropbox can grab it now out of "Pathfinder\SGG\v1.3\ShadowChemosh" folder.Thanks Shadow! So when do you think I'll be able to download the PFRPG_SGG_Procedures.user file? I've gone and bought a few more things from SSG.