2021-10-05 22:15:58 +00:00
|
|
|
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()
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if Self.GetCurrentStageID() < 5
|
|
|
|
SetCurrentStageID(10)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
if CurrentCount >= 4
|
|
|
|
Self.SetObjectiveCompleted(5, 1)
|
2024-01-10 14:08:24 +00:00
|
|
|
SetCurrentStageID(10)
|
2021-10-05 22:15:58 +00:00
|
|
|
ElseIf CurrentCount < 4
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(250)
|
2021-10-05 22:15:58 +00:00
|
|
|
Self.SetObjectiveCompleted(5,0)
|
|
|
|
Self.SetObjectiveDisplayed(5, True, True)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FinishQuest()
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(1000)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
GlobalVariable Property NQ36_WishWellsCompleted Auto
|