Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old December 2nd, 2017, 12:19 PM
I am working on the Mist-tainted template from PZOPSS0005E - Pathfinder Society Scenario 05 - Mists of Mwangi and I need to lower an ability score to 6 if its higher than that.

Setting the value is fairly straight forward:
Code:
hero.child[aCHA].field[aNormForce].value = 6
However timing and figuring out what field to use in the if statement has be pulling my hair out.

My primary code is:
Code:
if (hero.child[aCHA].field[aNormal].value >= 7 )then
  hero.child[aCHA].field[aNormForce].value = 6
endif
But I cant get the if statement to validate correctly.
Minous is offline   #1 Reply With Quote
 


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 04:52 PM.


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