enderalse/source/scripts/_00e_nq29_bosssteelwatchersc.psc

31 lines
865 B
Plaintext

Scriptname _00E_NQ29_BossSteelWatcherSC extends ObjectReference
Event OnDeath(Actor akKiller)
if !NQ29.IsRunning()
NQ29.SetStage(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)
NQ29.SetStage(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