Redcap's Corner
Well-known member
I'm trying to code a class special ability that has an incrementer with a maximum value of 0 and a minimum value equal to the negative Intelligence modifier of the hero. Currently I'm checking the user-selected value of this incrementer at post-attributes/1000, though I may be able to check at a later point if necessary.
I have been trying to accomplish this by setting both the minimum and maximum values of the incrementer to 0 by default, but adding the following to the beginning of the script at post-attributes/1000.
Unfortunately, I'm still getting 0 as my minimum value. Is there a particular timing when I'd need to make adjustments to the value of field[actUserMin]? Am I going to have access to the hero's final Intelligence modifier at that time?
I have been trying to accomplish this by setting both the minimum and maximum values of the incrementer to 0 by default, but adding the following to the beginning of the script at post-attributes/1000.
Code:
field[actUserMin].value -= #attrbonus[aINT]
Unfortunately, I'm still getting 0 as my minimum value. Is there a particular timing when I'd need to make adjustments to the value of field[actUserMin]? Am I going to have access to the hero's final Intelligence modifier at that time?