enderalse/scripts/source/_00e_nq26_leverscn.psc

29 lines
606 B
Plaintext

scriptName _00E_NQ26_LeverSCN extends ObjectReference
EVENT onActivate(ObjectReference akActionRef)
If NQ26.GetStage() == 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.SetStage(50)
Else
NQ26.SetObjectiveDisplayed(20, true, true)
EndIf
EndIf
EndEvent
Quest Property NQ26 Auto
GlobalVariable Property _00E_NQ26_LeversGlobal Auto
bool DoOnce