• 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

Ignoring a specific Pre-Req

I am creating a race (Taddol) and I am having a problem getting their Two-Weapon Fighting racial feature working. The feature grants access to Two-Weapon Fighting and then allows the hero to ignore the dex requirement for Improved Two Weapon Fighting and Greater Two-Weapon Fighting if they choose to select it. Does anyone have any suggestions on how to go about this?

Thanks,
 
You can do a "new copy" against Improved Two Weapon Fighting and Greater Two-Weapon Fighting feats in the editor. Then use the "Replace Thing ID" on the right side to fill in the the CORE Unique ID for the feats. This allows you to change the feat to act differently.

Remove the Dex check out of "Expr-Req" and move that logic down to the "pre-reqs" instead.

Then what you want to do is be able to say if you have a 13 Dex or this Taddol race that we are valid. You can't exactly do an "OR" statement in HL. Sometimes what you do is do two different checks and add the results together and say <> 0. In this case think its easier for two IF statement checks instead.

Code:
~ assume we are NOT valid
@valid = 0
~ See if we have a 13+ dex and if so we are valid
if (#attrvalue[aDEX] >= 13) Then
   @valid = 1
endif
~ See if we are the Taddol race and if so we are valid
if (#hasrace[rTaddol] <> 0) Then
  @valid = 1
endif

@valid is a special "system" variable so we don't define it we just set it as a Boolean data type. 0 = False, 1 = True.

For Mathias so I don't get in trouble for not showing a shorter way we can do the following to mean the same thing:
Code:
~ If we have a 13+ dex we are valid so get out NOW
validif (#attrvalue[aDEX] >= 13)

~ If we are the Taddol race we are valid so get out NOW
validif (#hasrace[rTaddol] <> 0)

Both sets of code do the same thing with the 2nd one being better. But I often use normal IF statements to get people started as they seem they have a higher chance for some to have seen a "IF" statement before. :)
 
Back
Top