2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQ09_Functions extends Quest
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Function UpdateSoulCount()
|
|
|
|
|
|
|
|
FS_NQ09_SoulsCollected.Mod(1)
|
|
|
|
Self.UpdateCurrentInstanceGlobal(FS_NQ09_SoulsCollected)
|
|
|
|
int CurrentCount = FS_NQ09_SoulsCollected.GetValueInt()
|
|
|
|
|
|
|
|
if CurrentCount == 20
|
|
|
|
Self.SetObjectiveCompleted(5, 1)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(50)
|
2024-01-10 14:08:24 +00:00
|
|
|
Self.SetCurrentStageID(10)
|
2021-10-05 22:15:58 +00:00
|
|
|
ElseIf CurrentCount < 20
|
|
|
|
Self.SetObjectiveCompleted(5,0)
|
|
|
|
Self.SetObjectiveDisplayed(5, True, True)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FinishUp()
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(iRewardEXP)
|
2021-10-05 22:15:58 +00:00
|
|
|
Game.GetPlayer().AddItem(_00E_Phasmalist_Soul_Hidden_Tier6, 1)
|
2024-01-10 00:46:13 +00:00
|
|
|
Steam.UnlockAchievement("END_APPARITION_02")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
int iRewardEXP = 1000
|
|
|
|
|
|
|
|
MiscObject Property _00E_Phasmalist_Soul_Hidden_Tier6 Auto
|
|
|
|
|
|
|
|
GlobalVariable Property FS_NQ09_SoulsCollected Auto
|