4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1.1 KiB

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