Scriptname _00E_NQ13MushroomContainer extends ObjectReference Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) if akDestContainer == Game.GetPlayer() && akBaseItem.HasKeyword(NQ13Keyword) == 1 if doOnce == 0 && !(NQ13.IsObjectiveCompleted(30)) _00E_NQ13_MushroomsFound.SetValue(_00E_NQ13_MushroomsFound.GetValue() + 1) NQ13.UpdateCurrentInstanceGlobal(_00E_NQ13_MushroomsFound) int CurrentCount = _00E_NQ13_MushroomsFound.GetValueInt() if CurrentCount >= 4 NQ13.SetObjectiveCompleted(30, 1) if NQ13.GetCurrentStageID() < 25 NQ13.SetCurrentStageID(25) DoOnce = 1 ElseIf NQ13.GetCurrentStageID() == 25 NQ13.SetCurrentStageID(30) DoOnce = 1 endif ElseIf CurrentCount < 4 NQ13.SetObjectiveCompleted(30,0) NQ13.SetObjectiveDisplayed(30, True, True) doOnce = 1 EndIf ElseIf doOnce == 1 Return EndIf EndIf endEvent MiscObject Property _00E_NQ13Pilzprobe Auto Quest Property NQ13 Auto GlobalVariable Property _00E_NQ13_MushroomsFound Auto Keyword Property NQ13Keyword Auto bool DoOnce