Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
41 lines
1.1 KiB
41 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.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 |