enderalse/source/scripts/_00e_ark_templedoorsc.psc

38 lines
1.1 KiB
Plaintext
Raw Normal View History

Scriptname _00E_Ark_TempleDoorSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnCellAttach()
Self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
If Self.IsActivationBlocked()
if akActionRef == PlayerREF
if MQ03.GetStage() >= 10
Self.BlockActivation(False)
Self.Activate(PlayerREF, true)
Else
CapitalCity_Temple_FrontGuardREF.Say(GuardDialogue_TempleGateTopic)
EndIf
Else
Self.Activate(akActionRef, True)
EndIf
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Quest Property MQ03 Auto
Actor Property PlayerREF Auto
Actor Property CapitalCity_Temple_FrontGuardREF Auto
Topic Property GuardDialogue_TempleGateTopic Auto