32 lines
939 B
Plaintext
32 lines
939 B
Plaintext
Scriptname _00E_AmbrosiaEffect extends activemagiceffect
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
float fMagnitude = - akTarget.GetActorValue("Variable08")
|
|
akTarget.RestoreActorValue("Variable08", fMagnitude)
|
|
|
|
if akTarget != Game.GetForm(0x14)
|
|
return
|
|
endif
|
|
|
|
_00E_FS_ReduceArcaneFeverIMOD.Apply()
|
|
_00E_FS_DecreaseArcaneFeverM.Play(akTarget)
|
|
|
|
float fCurrentAV = -1 * akTarget.GetActorValue("LastFlattered")
|
|
|
|
If fCurrentAV <= fMagnitude
|
|
akTarget.ModActorValue("LastFlattered", fCurrentAV)
|
|
_00E_AlchAmbrosia_sArcaneFeverDecreased.Show(fCurrentAV, 0)
|
|
Else
|
|
akTarget.ModActorValue("LastFlattered", fMagnitude)
|
|
_00E_AlchAmbrosia_sArcaneFeverDecreased.Show(fMagnitude, -1 * akTarget.GetActorValue("LastFlattered"))
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
Sound Property _00E_FS_DecreaseArcaneFeverM Auto
|
|
|
|
ImageSpaceModifier Property _00E_FS_ReduceArcaneFeverIMOD Auto
|
|
|
|
Message Property _00E_AlchAmbrosia_sArcaneFeverDecreased Auto
|