Quote:
Originally Posted by Bob G
Phase Pre-attributes, priority 10000
Code:
field[abValue].value += maximum(hero.childfound[aINT].field[aBonus].value,2)
field[abSumm].text = field[abValue].value
Entered value of 16 for hero's Intelligence, but abValue still reporting value of 2. Don't know why. Please tell me why.
|
You are running the script before attributes have been calculated so hero.childfound[aINT].field[aBonus].value is 0 and 2 is greater than 0.
For stuff like this add debug statements:
Code:
field[abValue].value += maximum(hero.childfound[aINT].field[aBonus].value,2)
debug hero.childfound[aINT].field[aBonus].value
field[abSumm].text = field[abValue].value