enderalse/source/scripts/_00e_ambrosiaeffect.psc

29 lines
848 B
Plaintext

Scriptname _00E_AmbrosiaEffect extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
fMagnitude = Self.GetMagnitude()
_00E_FS_ReduceArcaneFeverIMOD.Apply()
_00E_FS_DecreaseArcaneFeverM.Play(akTarget)
If akTarget == Game.GetPlayer()
fCurrentAV = -1*(akTarget.GetAV("LastFlattered"))
If fCurrentAV <= fMagnitude
akTarget.ModAV("LastFlattered", fCurrentAV)
_00E_AlchAmbrosia_sArcaneFeverDecreased.Show(fCurrentAV, 0)
Else
akTarget.ModAV("LastFlattered", fMagnitude)
_00E_AlchAmbrosia_sArcaneFeverDecreased.Show(fMagnitude, -1*(akTarget.GetAV("LastFlattered")))
EndIf
EndIf
EndEvent
float fCurrentAV
float fMagnitude
Sound Property _00E_FS_DecreaseArcaneFeverM Auto
ImageSpaceModifier Property _00E_FS_ReduceArcaneFeverIMOD Auto
Message Property _00E_AlchAmbrosia_sArcaneFeverDecreased Auto