enderalse/source/scripts/_00e_mq11a_caliacastlefailsavesc.psc

25 lines
598 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11a_CaliaCastleFailsaveSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
if MQ11a.GetStage() >= 80 && MQ11a.GetStage() < 150
; if MQ11a_TravelState02.GetValueInt() > 1
; MQ11a_TravelState02.SetValueInt(1)
; EndIf
If _00E_MC_CaliaREF.GetParentCell() == PlayerREF.GetParentCell()
_00E_MC_CaliaREF.MoveTo(PlayerREF)
EndIf
EndIf
EndIf
EndEvent
GlobalVariable Property MQ11a_TravelState02 Auto
Actor Property _00E_MC_CaliaREF Auto
Actor Property PlayerREF Auto
Quest Property MQ11a Auto