The following is always giving me the message "0" and "0".
But I know I am wearing light and heavy armor.
Function Check()
Float Points
int HeavyArmorCount
int LightArmorCount
int Count = Playerref.GetNumKeywords()
int index
while (index < Count)
if playerref.GetNthKeyword(index) == ArmorHeavy
HeavyArmorCount += 1
endif
if playerref.GetNthKeyword(index) == Armorlight
LightArmorCount += 1
endif
index += 1
endwhile
debug.messagebox(LightArmorCount)
debug.messagebox(heavyArmorCount)
endfunction