• 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

Troubles with OR

wdmartin

Well-known member
I posted this over in the Authoring Kit sub-forum in the mistaken impression that the Authoring Kit and the Hero Lab Editor were the same thing. It was, understandably, ignored, so I'll try again here in Pathfinder land.

I'm trying to implement this homebrew template for a game I'm GM'ing:

A Prideful Creature has been twisted and corrupted by exposure to the illusion school of Thassilonian sin magic.

Prerequisites: The Prideful Creature template may only be applied to creatures of the animal or fey type.

Subtype: gains the [augmented] subtype.

Alignment: changes to Evil.

Spell-Like Abilities: a Prideful creature gains spell-like abilities based on its hit dice.

Prideful Creature
universal at will - Ghost Sound
hd 1-2 one of Color Spray, Silent Image or Ventriloquism; 3/day
hd 3-4 one of Invisibility or Minor Image; 3/day
hd 5-6 one of Displacement or Major Image; 2/day
hd 7-8 one of Greater Invisibility or Phantasmal Killer; 2/day
hd 9-10 Mirage Arcana; 1/day
hd 11+ Permanent Image; 1/day

All of these spell like abilities function with a caster level equal to the
base creature's hit dice. Save DCs are governed by the base creature's CHA.

I'm having two problems, both having to do with "or".

1) I can't figure out how to require animal OR fey as the base creature type. The Pre-reqs dialog is additive -- so I could set that to apply rules require both animal AND fey. But I need OR. I've tried using the Expr-reqs dialog with expressions like this:

Code:
#hastype[tpAnimal]|#hastype[tpFey] <> 0

#hastype[tpAnimal] <> 0|#hastype[tpFey] <> 0

But the compiler doesn't like that. Apparently boolean operators aren't allowed there. So ... how do I use an OR in a type prerequisite?

2) The spell-like abilities gained at hit dice 1, 3, 5, and 7 involve a choice of spells: pick one of the ones listed. If it were just a single spell that every creature with the template gets, that'd be simple to set up. But I need an OR there, too.

I studied the implementation of Ghost and did some reading, and I've figured out how to use a Configurable to add a tab to the UI where abilities for the template can be selected from those defined in R Cust Special. I'm still working on figuring out how to use those R Cust Special things to add spell-like abilities selected from a list, though, and getting seriously tempted just to declare that every creature with this template gets ALL the spells just so I can build the template and be done with it.

I thought about defining custom feats that grant spell-like abilities and then trying to attach those to the R Cust Special. But I'd rather not, as I've got equivalent templates for the other six deadly sins, and I would wind up with 63 feats mucking up the feat list just for these seven templates.

Any pointers would be welcome.
 
To do an "OR" statement in HL its a little different than other languages.

Code:
#hastype[tpAnimal] + #hastype[tpFey] <> 0
The above takes the result of both answers and adds them together against NOT EQUAL to zero. This way of either of those types are found the IF becomes TRUE. So the only way to get FALSE is if both types are not present on the hero.
 
Wacky. But it works. Thanks!

Now I just need to figure out how to make the spell-like abilities selectable. Or else declare them universal, which would be a ton easier.
 
Back
Top