enderalse/scripts/source/_00e_mq16_telaoryuslanfailsavesc.psc

39 lines
988 B
Plaintext

Scriptname _00E_MQ16_TelaorYuslanFailsaveSC extends ObjectReference
Event OnUpdate()
If MQ16.GetStage() < 155
If _00E_MC_YuslanREF.GetDistance(MQ16_SC12_YuslanStartREF003) >= 700
_00E_MC_YuslanREF.MoveTo(MQ16_SC12_FailsaveMarker)
_00E_MC_YuslanREF.EvaluatePackage()
EndIf
If _00E_MC_TealorREF.GetDistance(MQ16_SC12_TealorMarker) >= 700 && !_00E_MC_TealorREF.IsInDialogueWithPlayer()
_00E_MC_TealorREF.MoveTo(MQ16_SC12_FailsaveMarker)
_00E_MC_TealorREF.EvaluatePackage()
EndIf
EndIf
EndEvent
Event OnTriggerEnter(ObjectReference akActionRef)
If !bDone && akActionRef == PlayerREF
bDone = True
RegisterForSingleUpdate(10)
EndIf
EndEvent
Actor Property _00E_MC_TealorREF Auto
Actor Property _00E_MC_YuslanREF Auto
Actor Property PlayerREF Auto
Quest Property MQ16 Auto
ObjectReference Property MQ16_SC12_FailsaveMarker Auto
ObjectReference Property MQ16_SC12_TealorMarker Auto
ObjectReference Property MQ16_SC12_YuslanStartREF003 Auto
bool bDone