How it'll be on Papyrus? -
scn ExampleScript
Short DoOnce
Begin OnTriggerEnter Player
Set DoOnce to 0
If Player.GetItemCount ExampleKey
If GetStage ExampleQuest 10
SetStage ExampleQuest 20
Set DoOnce to 1
EndIf
EndIf
End
Quest Property ExampleQuest AutoMiscObject Property ExampleKey AutoInt Property DoOnce Auto
Function DoThis() If Game.GetPlayer().GetItemCount(ExampleKey) && ExampleQuest.GetStage()== 10 ExampleQuest.SetStage(20) DoOnce=1 EndIfEndFunction
ScriptName ExampleScript extends ObjectReferenceActor Property PlayerREF AutoKey Property ExampleKey AutoQuest Property ExampleQuest AutoEvent OnTriggerEnter(ObjectReference akActionRef) If akActionRef != PlayerREF ElseIf ExampleQuest.GetStage() != 10 ElseIf PlayerREF.GetItemCount(ExampleKey) ExampleQuest.SetStage(20) EndIfEndEvent