It does. So templates come back as -1 then?
The main problem I'm getting is that I need to reduce the skill points to zero but it keeps coming back with an error trying to reduce tSkTotals to -1, but shouldn't be. It only does it sporadically, which makes it difficult to pin down.
Code:
Post-Attributes, 1000
var lev as number
var bon as number
var skl as number
lev = field[cTotalLev].value
bon = hero.child[aINT].field[aNormMod].value
if (bon < 1) then
bon = 1
endif
skl = lev * bon
var index as number
index = field[cClsIndex].value
herofield[tSkTotals].arrayvalue[index] -= skl