err...but why ?

Post » Sat Mar 14, 2015 6:37 pm

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
User avatar
Tyrel
 
Posts: 3304
Joined: Tue Oct 30, 2007 4:52 am

Return to V - Skyrim