Lone Wolf Development Forums  

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


Thread Tools Display Modes
Join Date: Jul 2019
Posts: 52

Old July 14th, 2020, 10:31 PM
is it possible to set an ability to have a particular Type as a prerequisite?

I've seen some feats with #has race [rElf] as a requirement.

Is it possible to do something like

#has type [monstrous humanoid]
Aril is offline   #1 Reply With Quote
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 793

Old July 14th, 2020, 10:39 PM
It's common for feats. Normally special abilities are written for a particular creature, so you wouldn't need a prerequisite.
If you really want to do things that way there are macros #hastype[type_id] and #hassubtype[subtype_id]

Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew).
HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP).

DM and player of D&D since 1980.
Dami is offline   #2 Reply With Quote
Senior Member
Join Date: May 2015
Posts: 778

Old July 15th, 2020, 07:12 AM
I just pulled up two feats that required either the shapechanger subtype or the outsider type:

Shapechanger subtype required.
#hassubtype[stShapecha] <> 0

Magical Beast, Outsider, or Undead type required.
#hastype[tpMagBeast] + #hastype[tpOutsider] + #hastype[tpUndead] <> 0
Minous is offline   #3 Reply With Quote
Join Date: Jul 2019
Posts: 52

Old July 15th, 2020, 09:12 PM
Thanks for this. I was able to adapt those code samples. It was a bit tricky. I thought at first I was supposed to put the code into the Eval Rules tab, and it didn't work there.

Then I tried Pre-reqs, and finally found a feat with a racial requirement for elf, and realized it needs to go into Pick-Reqs.

If I can ask, which feats did you get your sample from? That have Shapechanger subtype as a requirement?
Aril is offline   #4 Reply With Quote
Senior Member
Join Date: May 2015
Posts: 778

Old July 16th, 2020, 04:54 AM
fGruesShap => Gruesome Shapechanger
fConsuEsse => Consume Essence

In the case of the shapechanger I had seen several feats related to Kitsune and shape change, so I just searched the feats for it. I also figured there would be a couple feats that required you to be an outsider (most common non-humanoid type in PF). If you dont select a race and search the feat section it search on any re-reqs that you dont meet, as those error messages are part of the text.
Minous is offline   #5 Reply With Quote
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 12,855

Old July 16th, 2020, 08:44 AM
Pick-reqs are an old method that doesn't work in a lot of side cases, and that we've stopped using for our own work. For example, if you have a "elf required" prereq, and you implement it with a pick-req, "Drow" or "Elf, aquatic" won't satisfy that pick-req. But if you look at those two races in the editor, you'll see that they have "counts as race" set to the main elf race. A standard racial prereq will be able to detect that "counts as" behavior.

So please find a more modern example than whatever you copied that has a pick-req as an example.
Mathias is offline   #6 Reply With Quote
Daniel V
Senior Member
Lone Wolf Staff
Join Date: Apr 2020
Posts: 104

Old July 17th, 2020, 12:17 PM
"Expr-reqs" are generally what you're going to want to be using for simple cases like this. You set a formula, in this case "#hastype[tpDragon] <> 0" for instance, and if #hastype returns a non-zero value (is true), the expression is valid.

"Pre-reqs" are used for things that are more involved than just simple true/false checks. They involve scripts that could either be conditional, or possess a number of checks beyond just a sum of returned values.

The duskwalker origin feats are a good example of the difference. Willing Death for instance has the Expr-req of
#hasrace[rDuskwalker] <> 0
so is valid if you have the duskwalker race. It also has two Pre-reqs, the first being

Only one Origin feat allowed without GM permission.

validif (hero.tagis[Dependant.SocChar] <> 0)
validif (hero.tagcount[fCategory.Origin] = 0)
validif (@ispick <> 0)
So if you are a PFS character, it doesn't show this (you can only take one per PFS rules, so this doesn't apply), if you have no Origin feats already its valid (since there's no reason to display a warning for taking an additional before the first is taken), and if you have been added to the character we're not going to show, since you've already made the choice to forgo the warning.

The second is a check to see that you only have one Origin feat if you are a PFS character, so it checks that there are none present if you haven't added it yet, and if you have added it that it is the only one.

Hopefully this helps in understanding the different uses for the two pre-req methods. There's also tags that get used, and fields, but those are all just in the editor. Like Mathias said though, pretty much just ignore Pick-reqs.
Daniel V is offline   #7 Reply With Quote

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 07:57 PM.

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