• 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

Increasing Ability Score to Minimum

DeathSheep

Well-known member
I'm trying to figure out why this isn't working. I pulled the basic script from the GitHub wiki. Basically I want to create an ability that checks to see if CON is less than 13 and makes it 13. I've tried all up and down the dial on which phase to do it on and it doesn't seem to be affecting CON. When I look at the debug fields, I see the ClassMod is being set properly, but it isn't being added to CON.

Code:
   ~ If we're not shown, just get out now
      doneif (tagis[Helper.Disable] <> 0)

      field[abValue].value = #attrvalue[aCON]
      field[abValue2].value = 13 - field[abValue].value
      if (field[abValue2].value > 0) then    
          hero.childfound[aCON].field[aClassMod].value += field[abValue2].value
      endif
 
Back
Top