enderalse/source/scripts/_00e_nq10_elfrideactivator.psc

36 lines
750 B
Plaintext

Scriptname _00E_NQ10_ElfrideActivator Extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
If akActionRef != PlayerREF || bActivateLocked
Return
EndIf
bActivateLocked = True
FSTWoodRunL_Loud.Play(Self)
Utility.Wait(0.6)
FSTWoodRunL_Loud.Play(Self)
Utility.Wait(0.7)
FSTWoodRunL_Loud.Play(Self)
If NQ10_Elfride.GetCurrentStageID() == 15
If Vatyr.IsDead()
NQ10_Elfride.SetCurrentStageID(20)
Disable()
Else
_00E_NQ10_sElfriedeDoesNotTrust.Show()
EndIf
EndIf
bActivateLocked = False
EndEvent
Message Property _00E_NQ10_sElfriedeDoesNotTrust Auto
Quest Property NQ10_Elfride Auto
Actor Property Vatyr Auto
Actor Property PlayerREF Auto
Sound Property FSTWoodRunL_Loud Auto
Bool bActivateLocked = False