4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
1.6 KiB

scriptName _00E_MQ08_LeverSCN extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
EVENT onActivate(ObjectReference akActionRef)
if MQ08_IntoTheDeep.GetStage() >= 205
return
endif
if DoOnce == False && Game.GetPlayer().IsInCombat() == 0 && MQ08_IntoTheDeep.GetStage() >= 195 && MQ08_IntoTheDeep.GetStage() < 200
DoOnce = True
if akActionRef == Game.GetPlayer() && MQ08_IntoTheDeep.GetStage() == 195
if _00E_M08_LeversGlobal.GetValue() < 3
_00E_M08_LeversGlobal.SetValue(_00E_M08_LeversGlobal.GetValue() + 1)
MQ08_IntoTheDeep.UpdateCurrentInstanceGlobal(_00E_M08_LeversGlobal)
MQ08_IntoTheDeep.SetObjectiveCompleted(165,0)
MQ08_IntoTheDeep.SetObjectiveDisplayed(165, true, true)
Else
_00E_M08_LeversGlobal.SetValue(_00E_M08_LeversGlobal.GetValue() + 1)
MQ08_IntoTheDeep.UpdateCurrentInstanceGlobal(_00E_M08_LeversGlobal)
MQ08_IntoTheDeep.SetObjectiveCompleted(165)
MQ08_IntoTheDeep.SetStage(200)
EndIf
EndIf
Utility.Wait(2.5)
GetLinkedRef().Enable()
MAGWardTestBreak.Play(Self)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
_00E_MQ08_Questfunctions Property MQ09a Auto
Quest Property MQ08_IntoTheDeep Auto
GlobalVariable Property _00E_M08_LeversGlobal Auto
Sound Property MAGWardTestBreak Auto
bool DoOnce