• 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

Exclusive Alternate Racial Traits

scibat

Well-known member
I am working on coding alternate racial traits for a custom race. The race can only choose one of these racial traits (or none at all), but unlike most races (where exclusivity is caused by replacing racial traits), this race can only take one ART regardless of substitutions.

I can't think of another instance of this that I've seen to crib the scripting off of and I'm not quite sure how to go about it myself.

Any suggestions or insights would be greatly appreciated, even if it is pointing towards an example already in Pathfinder for me to study. Thank you!
 
You could create, on the race, a dummy trait, and have all the ART's replace that dummy trait. That way, only one will be able to be chosen, as after that, the associated 'dummy' is already replaced.
 
Actually, with further thought, the best, and most 'natural' method, that most resembles the rest of the races, is to choose one of your 'traits' as the default that most of the members of that race hold. Then, the rest are alternates that replace that one. That will avoid the dummy trait part.
 
Another method if you wish to use "ART's" is to use tags and counts to test to see if another "Custom" Exclusive ART was added. I use this logic for allowing for sub-races in my house rules file.

So go to one of your ART's, it don't matter which, and click on "User Tags" and make up a new Custom Tag here. For lets assume you call it "ExclusiART" which gives you a full tag of "Custom.ExclusiART". Do a TEST NOW to get this tag live.

Then on each ART that you want to make exclusive do the following:
First/600 <- This just needs to be done before "Final" but I like going early for this stuff. As I use mine to modify the base race it needs to be done early.
Code:
      ~ Set Exclusive tag on Hero
      perform hero.assign[Custom.ExclusiART]

Then add a new "Expr-reqs" and add the following text for "Message:" Only a single ART of this type can be taken. Or some other meaningful message. For the "Pre-requisite Expression" add the following:
Code:
hero.tagcount[Custom.ExclusiART] <= @ispick
What this does is count the number of tags assigned to the hero and compares it to a special "system" value (ie starts with @). @ispick is a Boolean (1 or 0) that tells us if we are a Pick or a Thing. A pick being live on the hero.

So basically as long as we are the only one chosen we will be valid. As soon as a second ART with the assign[Custom.ExclusiART] logic is added both ART's will display as invalid.
 
Back
Top