Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old December 2nd, 2021, 07:24 AM
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
DeathSheep is offline   #1 Reply With Quote
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old December 2nd, 2021, 07:27 AM
When I move the script to Post-levels, it raises CON to 20. If I put it Post-attributes, it leaves it at 10.
DeathSheep is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:25 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.