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.
 
 
 

35 lines
909 B

Scriptname _00E_MQ11a_GateToLibrarySC extends ObjectReference
; This script is placed on door MQ11a_SC20_RiddleDoorMain (d8995) in
; cell MQ11CaliaCastleMain.
; It formerly used to have script _00E_MQ11c_BlockDoorActivation ,
; but this script would cause weird bugs
; ( http://forum.sureai.net//viewtopic.php?f=201&t=9593 ) and be hard
; to localize due to a string property.
Event OnInit()
self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if self.IsActivationBlocked()
if MQ11a.GetStage() >= 125
self.BlockActivation(False)
Self.Activate(akActionRef, True)
else
if akActionRef == PlayerREF
_00E_MQ11a_SC9_MainDoorMessage.Show()
endif
endif
endif
EndEvent
Quest Property MQ11a Auto
Actor Property PlayerREF Auto
Message Property _00E_MQ11a_SC9_MainDoorMessage Auto