Senior Member
Join Date: Jul 2019
Posts: 142
|
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? |
#1 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,094
|
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. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
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 |
#3 |
|
|