enderalse/source/scripts/_00e_nq29_bosssteelwatchersc.psc

31 lines
883 B
Plaintext
Raw Normal View History

Scriptname _00E_NQ29_BossSteelWatcherSC extends ObjectReference
Event OnDeath(Actor akKiller)
if !NQ29.IsRunning()
2024-01-10 14:08:24 +00:00
NQ29.SetCurrentStageID(5)
EndIf
NQ29.SetObjectiveDisplayed(__Config_iObjectiveIndex)
NQ29.SetObjectiveCompleted(__Config_iObjectiveIndex)
NQ29_MythicalCreaturesSlain.SetValue(NQ29_MythicalCreaturesSlain.GetValue() + 1)
NQ29.UpdateCurrentInstanceGlobal(NQ29_MythicalCreaturesSlain)
int CurrentCount = NQ29_MythicalCreaturesSlain.GetValueInt()
if CurrentCount >= NQ29_MythicalCreaturesMax.GetValueInt()
NQ29.SetObjectiveCompleted(0, 1)
2024-01-10 14:08:24 +00:00
NQ29.SetCurrentStageID(10)
Else
NQ29.SetObjectiveCompleted(0,0)
NQ29.SetObjectiveDisplayed(0, True, True)
EndIf
EndEvent
int Property __Config_iObjectiveIndex Auto
GlobalVariable Property NQ29_MythicalCreaturesSlain Auto
GlobalVariable Property NQ29_MythicalCreaturesMax Auto
Quest Property NQ29 Auto