Doing some code and, as far as I can tell, it all works. However, it keeps coming back wrong.
Code:
var stat as string
var bonus as number
var trunc as number
stat = hero.child[cHelpStk].tagids[User.a?]
Comes back as "User.aWIS" (it can be changed later, hence the code)
Code:
trunc = length(stat)-5
stat = right(stat,trunc)
Comes back as "aWIS"
Code:
stat = "#attrmod[" & stat & "]"
Comes back as "#attrmod[aWIS]"
Comes back as 0. Actually putting the stat in comes back correctly, but not if I use the script.