enderalse/source/scripts/_00e_fs_nq09_functions.psc

45 lines
1.4 KiB
Plaintext
Raw Normal View History

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