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.
 
 
 

28 lines
624 B

scriptName _00E_NQ26_LeverSCN extends ObjectReference
EVENT onActivate(ObjectReference akActionRef)
If NQ26.GetCurrentStageID() == 40 && Game.GetPlayer().IsInCombat() == False && DoOnce == False
DoOnce = True
BlockActivation(True)
PlayAnimationAndWait("trigger01","Trans01")
_00E_NQ26_LeversGlobal.Mod(1)
NQ26.UpdateCurrentInstanceGlobal(_00E_NQ26_LeversGlobal)
If _00E_NQ26_LeversGlobal.GetValue() >= 4
NQ26.SetCurrentStageID(50)
Else
NQ26.SetObjectiveDisplayed(20, true, true)
EndIf
EndIf
EndEvent
Quest Property NQ26 Auto
GlobalVariable Property _00E_NQ26_LeversGlobal Auto
bool DoOnce