I started scripting a little script which Repairs the Armor of my NPC at 5 a.m
ScriptName Test2
begin GameMode
if GameHour == 5 && GetEquippedCurrentHealth 20 < 100
EquipItemNS 00homuraarmor ; equips armor, just in case its health is 0 and the NPC unequips it
SetEquippedCurrentHealth 100 20
endif
end
This armor occupies upper,lower,hand and foot slots, and I'm using OBSE functions.
I can compile it, but it doesn't work ingame.
Help plz!