Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Aril
Senior Member
 
Join Date: Jul 2019
Posts: 142

Old February 8th, 2022, 07:49 PM
Is it possible to create an ability that can have alternative requirements for entry?

For instance, is it possible to make Feat C require EITHER Feat A OR Feat B for entry?
Aril is offline   #1 Reply With Quote
Dami
Senior Member
 
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,089

Old February 8th, 2022, 11:31 PM
Yes, for example:
In pre-reqs
validif (#hasfeat[featA_id] > 0)
validif (#hasfeat[featB_id] > 0)

This will be valid as long as one (or both) feats exist.

I'm also quite sure that | represents "or" in scripting. I just can't find something in my HL notes to confirm it.

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
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 9th, 2022, 07:19 AM
You can also take advantage of the fact that #hasfeat[] will return "0" if false, and "1" if true, and add them together, and get the total:


As an exprreq, rather than a prereq:

#hasfeat[featA_Id] + #hasfeat[featB_Id] <> 0


Or, convert it into the full tags - skip the macro (this one also works in an exprreq:

tagexpr[HasFeat.FeatA_Id | HasFeat.FeatB_Id] <> 0
Mathias is online now   #3 Reply With Quote
Reply


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 11:13 AM.


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