The extend Quest script is "start enabled".
I just want know when the player consumes an inventory item that is on a formlist - And then do something with that in the OnUpdate event of myQuest.
I've tried to make it work in a few diferent ways, with no success.
This shows what I want to do in the simplest manner:
Scriptname myQuest extends questimport formlistform myListbool property itemMatch autoEvent OnInit() registerForUpdate(1)endEventEvent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) if akBaseItem.HasForm(MyList) itemMatch = true Debug.MessageBox("item matched") endif Debug.MessageBox("inventory event")endEventEvent OnUpdate() if itemMatch == true itemMatch = false Debug.MessageBox("set to false") endifendEventI know OnItemRemoved needs the ObjectReference script so I tried setting the script below to the above one, and I also tried just attaching them both to the myQuest script independently, but still nothing.
Scriptname RemoveItemScript extends ObjectReference[b]myQuest Property something auto[/b]Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) Debug.MessageBox("inventory event") itemMatch = trueendEvent