• 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

Selecting an attribute in an adjustment

AndrewD2

Well-known member
I'm working on an adjustment for the Harrower class that gives the party members a bonus based on an attribute (+1 to attack, +1 to all skils, etc) problem I'm having is how to select the attribute. I've Attributes selected so they all show up, but when I make the if statement

Code:
     if (field[pChosen].chosen = "Strength") then
       ...

I get errors. I know I need field[pChosen].chosen.something to select the attribute but I'm not sure where I go from there.

Thanks,
Andrew
 
Code:
If (field[pChosen].chosen.tagis[IsAttr.aSTR] <> 0) Then
  ~ Do stuff
ElseIf field[pChosen].chosen.tagis[IsAttr.aDEX] <> 0) Then
  ~ Do Dex Stuff
ElseIf field[pChosen].chosen.tagis[IsAttr.aCON] <> 0) Then
  ~ Do Con Stuff
Etc.........
 
Back
Top