Thanks Lilith
@ Khettienna
scn YourScriptNameGoesHere
ref Me
begin gamemode
set Me to GetSelf
if Me.IsInCombat == 0 && Me.GetEquipped ArmorEditorID
Me.UnequipItem ArmorEditorID
Me.UnequipItem WeaponEditorID
endif
end
It didn't work, CS didn't like the sentex "GetSelf" I have no idea what to use instead of that.
Let me show what I have now, I rewrote mine but it still dosen't work.
This script has to be attached to to the object, the NPC will either have CM Partners script, or Private Army.
I just hate to see the off-hand weapon (shield) always showing, so I attached a off-hand dagger to a piece of armor.
The idea was to get them (dagger-equipped/armor-switched) to swap out durring combat, that was over my head, so I'll try and figure out how to get the off-hand to unequip when not in combat.
Heres what I have, tell me where I messed up (or if I should scrap the whole thing)
ScriptName A0UnequipShield1scr
short wep
short shld
ref NPC
ref A0Weapon1
Begin GameMode
set wep to NPC.IsWeaponOut
set shld to NPC.IsShieldOut
if wep == 1
if shld == 0
If NPC.GetItemCount A0Weapon1 >=1
NPC.GetEquipItem A0Weapon1
endif
endif
endif
if wep == 0
if shld == 1
NPC. UnequipItem AoWeapon1
endif
endif
end
Any help would be appreciated