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) _00E_EPHandler.GiveEP(50) Self.SetCurrentStageID(10) ElseIf CurrentCount < 20 Self.SetObjectiveCompleted(5,0) Self.SetObjectiveDisplayed(5, True, True) EndIf EndFunction Function FinishUp() _00E_EPHandler.GiveEP(iRewardEXP) Game.GetPlayer().AddItem(_00E_Phasmalist_Soul_Hidden_Tier6, 1) Steam.UnlockAchievement("END_APPARITION_02") EndFunction ;===================================================================================== ; PROPERTIES ;===================================================================================== int iRewardEXP = 1000 MiscObject Property _00E_Phasmalist_Soul_Hidden_Tier6 Auto GlobalVariable Property FS_NQ09_SoulsCollected Auto