I am trying to create an ability that increases by +2 every time you recieve it. The first time works fine, but the second time is increasing the bonus to +6 instead of +4. The thrid and final time is supposed to increase to +6, but instead increases to +10. I can't seem to find the cause. Any help would be appreciated.
phase/priority post-levels/5000
phase/priority post-levels/5000
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~calculate our bonus(it's stored as a variable in case an external thing wants to alter it)
field[abValue].value += field[xCount].value * 2
foreach pick in hero from BaseSkill
if (eachpick.tagis[SkillOver.aCHA] + eachpick.linkage[skillattr].tagis[thingid.aCHA] <> 0) then
eachpick.field[Bonus].value += field[abValue].value
endif
nexteach
field[livename].text = field[thingname].text & " +" & field[abValue].value
field[abSumm].text = "+" & field[abValue].value & " to all charisma based skills and checks."