View Single Post
skaven
Junior Member
 
Join Date: Aug 2011
Posts: 22

Old May 12th, 2012, 09:22 AM
For now, i have simply made up this solution, but it is not elegant at all...

Code:
var diff as number

if (tagis[Helper.FtDisable] <> 0) then
done
endif

~ Look through skills, set our # ranks = # points spent.

foreach pick in hero from BaseSkill where "!thingid.kSpeakLang"
diff = each.field[kUserPts].value - each.field[kUserRanks].value

~ If the ranks are different from the points spent, we add this difference to the total skill value
if ( diff <> 0) then
   each.field[kModValue].value += diff
endif

nexteach
It works, but it is horrible.
skaven is offline   #16 Reply With Quote