2021-10-05 22:15:58 +00:00
|
|
|
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()
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if MQ11a.GetCurrentStageID() >= 125
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|