Scriptname _00E_Func_GetPointsInClass Hidden int Function Run(Formlist akClassPerkformlist) Global Actor PlayerREF = Game.GetForm(0x14) as Actor int PointsSpentInClass int iClassIndex = 0 int nItems = akClassPerkformlist.GetSize() While iClassIndex < nItems Perk iPerk = akClassPerkformlist.GetAt(iClassIndex) as Perk If iPerk && PlayerREF.HasPerk(iPerk) PointsSpentInClass += 1 EndIf iClassIndex += 1 EndWhile Return PointsSpentInClass EndFunction