• 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

More help with Pre-Reqs for custom coding

Asandir

Well-known member
Hi All,

Another new question I haven't run into yet.

I have prereq that looks like the following for a feat:

Int, Wis, or Cha 13

I could do each one separately, and have three distinct feats, one for each attribute, but I am sure there is a way to do this coding?

Thanks as always.
 
Sure thing. You will want your code to go in the Pre-reqs section and enter in the boxes as follows.

Message Box said:
Intelligence, Wisdom, or Charisma 13 required.

Pre-requisite Script Box said:
validif (hero.child[aINT].field[aFinalVal].value >= 13)
validif (hero.child[aWIS].field[aFinalVal].value >= 13)
validif (hero.child[aCHA].field[aFinalVal].value >= 13)

So that now if the hero meets any one of the three requirements he qualifies for the feat. Hope that helps!
 
Back
Top