~search through all the class levels
foreach pick in hero from BaseClass
~for each class level that's at or above the level we've chosen
if (field[cLvlIndex].value >= field[hUsed].value) then
~retrieve the cClsIndex from the class helper, and use that to figure
~out which arrayvalue of the skill totals array to add a bonus to
~we'll add +1, since this will repeat once for every class level
herofield[tSkTotals].arrayvalue[eachpick.linkage[helper].field[cClsIndex].value] += 1
~if the feat was taken at level 1, and we're modifying the class level
~at level 1, add another 3 skill points, so that we've added +4 total
~for this level
if (field[hUsed].value= 1) then
if (field[cLvlIndex].value = 1) then
herofield[tSkTotals].arrayvalue[eachpick.linkage[helper].field[cClsIndex].value] += 3
endif
endif
endif
nexteach