enderalse/source/scripts/_00e_mq07a_sc4_doorsc.psc

39 lines
988 B
Plaintext
Raw Permalink Normal View History

Scriptname _00E_MQ07a_SC4_DoorSC extends ObjectReference
Event OnInit()
Self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
2024-01-10 14:08:24 +00:00
If MQ07a.GetCurrentStageID() == 75
if (akActionRef == MQ07a_TheAgedManREF)
Self.Activate(akActionRef, True)
Else
_00E_MC_JesparREF.Say(MQ07A_D3_RemarksTopic)
EndIf
2024-01-10 14:08:24 +00:00
ElseIf MQ07a.GetCurrentStageID() == 85
If akActionRef == Game.GetPlayer()
Self.BlockActivation(False)
self.Activate(Game.GetPlayer(), True)
EndIf
2024-01-10 14:08:24 +00:00
ElseIf MQ07a.GetCurrentStageID() == 170
; Pre-2.1, apparitions tried enter this door, triggering the message.
; Added this condition for mod-added companions
If akActionRef == Game.GetPlayer()
Self.BlockActivation(True)
_00E_MQ07a_sDoorDoesntBudge.Show()
endif
EndIf
EndEvent
Topic Property MQ07A_D3_RemarksTopic Auto
Actor Property MQ07a_TheAgedManREF Auto
Actor Property _00E_MC_JesparREF Auto
Quest Property MQ07a Auto
Message Property _00E_MQ07a_sDoorDoesntBudge Auto