enderalse/source/scripts/_00e_mq1c_ketarondoorscript.psc

33 lines
760 B
Plaintext

Scriptname _00E_MQ1c_KetaronDoorScript extends ObjectReference
Event OnInit()
self.BlockActivation()
EndEvent
Event OnActivate(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
If MQ11c_ASongInTheSilence.GetCurrentStageID() == StayLockedStage01
MQ11c_ASongInTheSilence.SetCurrentStageID(StayLockedStage02)
Elseif MQ11c_ASongInTheSilence.GetCurrentStageID() >= UnlockStage
self.BlockActivation(False)
self.Activate(PlayerREF, true)
Else
_00E_MQ07a_sDoorDoesntBudge.Show()
EndIf
EndIf
EndEvent
Message Property _00E_MQ07a_sDoorDoesntBudge Auto
Quest Property MQ11c_ASongInTheSilence Auto
int Property StayLockedStage01 Auto
int Property StayLockedStage02 Auto
int Property UnlockStage Auto
Actor Property PlayerREF Auto