View Single Post
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old March 23rd, 2019, 02:36 PM
Working on a template that reduces some stats, but not below 3. I think I have the right code, but it isn't working.

Code:
var intval as number
intval = minimum(hero.child[aINT].field[aNormal].value-3,6)
hero.child[aINT].field[aNormal].value -= intval
It should check what attribute-3 is and apply either that (making the score 3) or 6 as a penalty to the attribute. What am I doing wrong?
Illyahr is offline   #1 Reply With Quote