View Single Post
Senior Member
Join Date: Feb 2013
Posts: 293

Old April 28th, 2019, 12:49 PM
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.

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

skl = lev * bon

var index as number
index = field[cClsIndex].value
herofield[tSkTotals].arrayvalue[index] -= skl
Illyahr is online now   #3 Reply With Quote