41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
|
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.GetStage() < 5
|
||
|
SetStage(10)
|
||
|
EndIf
|
||
|
|
||
|
if CurrentCount >= 4
|
||
|
Self.SetObjectiveCompleted(5, 1)
|
||
|
SetStage(10)
|
||
|
ElseIf CurrentCount < 4
|
||
|
Levelsystem.GiveEP(250)
|
||
|
Self.SetObjectiveCompleted(5,0)
|
||
|
Self.SetObjectiveDisplayed(5, True, True)
|
||
|
EndIf
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
Function FinishQuest()
|
||
|
|
||
|
Levelsystem.GiveEP(1000)
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
_00E_QuestFunctions Property Levelsystem Auto
|
||
|
|
||
|
GlobalVariable Property NQ36_WishWellsCompleted Auto
|