43 lines
1.7 KiB
Plaintext
43 lines
1.7 KiB
Plaintext
scriptName _00E_MQ08_LeverSCN extends ObjectReference
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
|
|
EVENT onActivate(ObjectReference akActionRef)
|
|
if MQ08_IntoTheDeep.GetCurrentStageID() >= 205
|
|
return
|
|
endif
|
|
|
|
if DoOnce == False && Game.GetPlayer().IsInCombat() == 0 && MQ08_IntoTheDeep.GetCurrentStageID() >= 195 && MQ08_IntoTheDeep.GetCurrentStageID() < 200
|
|
DoOnce = True
|
|
if akActionRef == Game.GetPlayer() && MQ08_IntoTheDeep.GetCurrentStageID() == 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.SetCurrentStageID(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
|