enderalse/source/scripts/_00e_mq02_yeroscellarjesparfssc.psc

29 lines
1.1 KiB
Plaintext
Raw Normal View History

Scriptname _00E_MQ02_YerosCellarJesparFSSC extends ObjectReference
; Script on the triggerbox _00E_MQ02_YerosCellarJesparFSTGBX in Yero's
; cellar. This triggerbox teleports Jespar into Yero's cellar if he
; is not there. This is meant to failsave
; http://sureai.net:9898/browse/ERB-1132 .
Event OnTriggerEnter(ObjectReference akActionRef)
if (akActionRef == PlayerRef)
; Failsave for http://sureai.net:9898/browse/ERB-1192 :
if MQ02_SC1_JesparDialogeInterlude.IsPlaying()
MQ02_SC1_JesparDialogeInterlude.Stop()
endif
; Failsave for the case when Jespar isn't here:
2024-01-10 14:08:24 +00:00
if (MQ02.GetCurrentStageID() >= 60) && (MQ02.GetCurrentStageID() <= 120)
if (_00E_MC_JesparREF.GetParentCell() != PlayerRef.GetParentCell())
_00E_MC_JesparREF.MoveTo(MQ02_D5_JesparYeroMarker01)
EndIf
EndIf
EndIf
EndEvent
Quest Property MQ02 Auto
Actor Property _00E_MC_JesparREF Auto
ObjectReference Property PlayerRef Auto
ObjectReference Property MQ02_D5_JesparYeroMarker01 Auto
Scene Property MQ02_SC1_JesparDialogeInterlude Auto