Scriptname _00E_NQ36_Functions extends Quest  

;=====================================================================================
;              							FUNCTIONS            					 
;=====================================================================================

Function CheckForWishingWells()

	NQ36_WishWellsCompleted.SetValue(NQ36_WishWellsCompleted.GetValueInt() + 1)
	Self.UpdateCurrentInstanceGlobal(NQ36_WishWellsCompleted)
	
	int CurrentCount = NQ36_WishWellsCompleted.GetValueInt()

	if Self.GetCurrentStageID() < 5
		SetCurrentStageID(10)
	EndIf
	
	if CurrentCount >= 4
		Self.SetObjectiveCompleted(5, 1)
		SetCurrentStageID(10)
	ElseIf CurrentCount < 4
		_00E_EPHandler.GiveEP(250)
		Self.SetObjectiveCompleted(5,0)
		Self.SetObjectiveDisplayed(5, True, True)
	EndIf

EndFunction

Function FinishQuest()

	_00E_EPHandler.GiveEP(1000)

EndFunction

;=====================================================================================
;              							PROPERTIES                 					 
;=====================================================================================

GlobalVariable Property NQ36_WishWellsCompleted Auto