I'm trying to make a chest that only accepts potions.
Here is the code that I'm using:
Spoiler
ScriptName A_1_WhiterunBreezehome_PcScript extends ObjectReferenceFormList Property AcceptedItemFLST AutoMessage Property ERRORmsgPC_BreezeHome autoEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If akSourceContainer == Game.GetPlayer() If !AcceptedItemFLST.HasForm(akBaseItem) Game.GetPlayer().AddItem(akBaseItem, aiItemCount, false) RemoveItem(akBaseItem, aiItemCount, True, akSourceContainer) Debug.Trace("Invalid Item added to POTION CHEST --") ERRORmsgPC_BreezeHome.Show() EndIf EndifEndEventThe problem is that it does also not accept the items I have created in my FormList (AcceptedItemFLST) and it gives you back your item as twice as much as you had put it in. So if you put in 2 bottles of healing, it will give you back 4 bottles of healing.
This script is origionally made by Bethesda on the Creation Kit's website http://www.creationkit.com/Complete_Example_Scripts, it is almost at the bottom.
I hope someone can help me with this.
Thanks in advance.


