• 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

Feat Prerequisite snag

CorzatTheGray

Well-known member
So... I'm inputting all the data for the feats from TPK Games Laying Waste book. I've just been working on the data entry so far since the greater majority of the feats don't have any actual effect in HL, I'm making sure they at least show up correctly for selection.

I'm stuck on the feat Monk Weapon Proficiency:
Monk Weapon Proficiency said:
You are a master of exotic weapons commonly used among monastic orders, even those from distant lands.

Prerequisite: Monk level 1st or proficiency with all martial weapons.

Benefit: You are proficient in the use of all weapons with the monk special weapon quality, as described in the Pathfinder Roleplaying Game Core Rulebook, or that are part of the monk weapon group, as described in Pathfinder Roleplaying Game Ultimate Combat.

Special: Monks automatically begin with this feat.

I can't seem to figure out the "or" part of the prerequisite.

I have other prerequisites that use "or" set up in the Pre-reqs button as two validif expressions and they are working like a charm.

I'm not able to get the Monk level 1st to work right in a validif expression. So far I have this:
Code:
validif (#hasfeat[fWepMart] <> 0)
validif (#levelcount[cMonk] >= 1)
Which yields this error when I test it:
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'pre-requisite rule' script for Thing 'fLWMnkWpPr' on line 2
-> Tag 'Classes.cMonk' not defined
What am I missing here? Do I need a different macro? or is it the class id?
 
So #levelcount[cMonk] is actually turned into a hero.tagcount[Classes.cMonk] statement by the compiler. If you add a level of monk to your character and look at the hero tags for Classes.? you will find its Classes.Monk is the correct tag. :)

For the "or" logic you can leave what you have as if "either" validif() is correct you are good. Another way to combine the logic together is like this:
Code:
validif (#hasfeat[fWepMart] + #levelcount[Monk] <> 0)
The above says do we have feat fWepMar answer with 0 or 1. Level Count is answering with a value of 0 to 20. Then we combine the two results together and compare to NOT Equal to zero. Giving us a "or" type of logic as if either macro returns non-zero we are valid.

What you have works the above is just an FYI encase you see this type of logic elsewhere.
 
So... in checking out what you did there Shadow, it looks as though I was trying too hard and entered in the ClassLevel ID (cMonk) when all I needed to do was just name of the class (Monk).

I was apparently trying to make it too difficult...or at least more difficult than it needed to be.

Thanks! Worked like a charm.
 
I believe you also want to use the #featlevelcount[] macro not just #levelcount as that counts classes that "count as" a class for feats.
 
Back
Top