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
2024-01-10 14:08:24 +00:00
if MQ03.GetCurrentStageID() >= 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