• 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

Help with Alternate Racial Trait coding

Asandir

Well-known member
I have an alternate racial trait I am working on that has the following adjustment.

+1 racial bonus to all Knowledge checks

I have done alternate racial traits where it increases one skill but never one where it applies to all in a group. Suggestions on something else I could look at that might do the same thing or similar?

Thanks.

Edit: Actually I found something similar with the Breadth of Experience feat that seems to do the job.
 
Last edited:
You've going to have to do a foreach loop something like

Code:
foreach pick in hero from BaseSkill where "XXX"
  #racialbonus[eachpick] += 1
nexteach

If you look at the tags on a Knowledge skill it will have a helper that declares it a Knowledge skill, but that Helper in place of the XXX
 
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
eachpick.field[Bonus].value += 1
perform eachpick.delete[Helper.TrainOnly]
nexteach

This seems to be working in my tests
 
You have the feat shutdown one an alternate racial trait, that is not necessary, you should use the one that looks like

doneif (tagis[Helper.SpcDisable] <> 0)

also note that you're assigning it to the general bonus field and not the racial bonus field.
 
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
eachpick.field[Bonus].value += 1
perform eachpick.delete[Helper.TrainOnly]
nexteach

This seems to be working in my tests
Unless you left off wording on your ART above the section above removes the Trained Only use of all Knowledge skills. Is that what you really want to do?
 
Back
Top