enderalse/source/scripts/_00e_mq11c_caveentrancedoorsc.psc

31 lines
698 B
Plaintext

Scriptname _00E_MQ11c_CaveEntranceDoorSC extends ObjectReference
Event OnInit()
self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if self.IsActivationBlocked()
if akActionRef == PlayerREF
int MQ11cStage = MQ11c.GetCurrentStageID()
if (MQ11cStage >= 205) && (MQ11cStage < 250)
Self.Activate(akActionRef, True)
else
_00E_sDoorLocked.Show()
endif
ElseIf akActionRef != PlayerREF
Self.Activate(akActionRef, True)
EndIf
EndIf
EndEvent
Quest Property MQ11c Auto
Actor Property PlayerREF Auto
Message Property _00E_sDoorLocked Auto