View Single Post
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