enderalse/scripts/source/_00e_mq11a_gatetolibrarysc.psc

36 lines
909 B
Plaintext
Raw Normal View History

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