Enderal SE https://mod.pub/enderal-se/38-enderal-se
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
606 B
28 lines
606 B
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
|
|
|