enderalse/source/scripts/_00e_fs_nqr03_sisterpridetrigger.psc

30 lines
778 B
Plaintext

scriptname _00E_FS_NQR03_SisterPrideTrigger extends objectReference
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF && FS_NQR03.GetStage() == 80 && !bDone
FS_NQR03.SetObjectiveDisplayed(25, true, true)
EnableSisterPride()
ElseIf akActionRef == PlayerREF && FS_NQR03.GetStage() == 85 && !bDone
EnableSisterPride()
EndIf
EndEvent
Function EnableSisterPride()
FS_NQR03_SisterPrideREF.Enable()
FS_NQR03_SisterPrideREF.SetAV("Health", 1)
If FS_NQR03_SisterPrideREF.Is3DLoaded()
BerserkerFXS.Play(FS_NQR03_SisterPrideREF)
EndIf
bDone = true
Self.Disable()
EndFunction
bool bDone = false
Actor Property PlayerREF Auto
Actor Property FS_NQR03_SisterPrideREF Auto
Quest Property FS_NQR03 Auto
EffectShader Property BerserkerFXS Auto