What is the best way for me to go about this?
I've already had a go which works, but un-equips the players worn items in the process:
1. Set up an empty chest with the following script attached (myKeyword property filled with "VendorItemWeapon" keyword)
Spoiler
2. In the dialogue, i useScriptname PCKP_KeywordFilterContainerScript extends ObjectReference Actor Property playerRef autoKeyword Property myKeyword autoEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If akSourceContainer == playerRef If !akBaseItem.HasKeyword(myKeyword) RemoveItem(akBaseItem, aiItemCount, True, akSourceContainer) Debug.Trace("Invalid Item") EndIf EndifEndEventplayerRef.RemoveAllItems(WeaponChest, true)
Like i said, it works by sending all the players items to the box, then the filter script on the box only allows the weapons in, sending the rest back to the player. Is there a way i can make it re-equip the armor before the player notices? Or can somebody think of a cleaner way to approach this
- Hypno
