2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_AmbrosiaEffect extends activemagiceffect
|
|
|
|
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
2024-02-10 08:10:30 +00:00
|
|
|
|
|
|
|
float fMagnitude = - akTarget.GetActorValue("Mood")
|
|
|
|
akTarget.SetActorValue("Mood", 0)
|
|
|
|
|
|
|
|
if akTarget.GetFormID() != 0x14
|
|
|
|
return
|
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-02-10 08:10:30 +00:00
|
|
|
_00E_FS_ReduceArcaneFeverIMOD.Apply()
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_FS_DecreaseArcaneFeverM.Play(akTarget)
|
|
|
|
|
2024-02-10 08:10:30 +00:00
|
|
|
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"))
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
2024-02-10 08:10:30 +00:00
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Sound Property _00E_FS_DecreaseArcaneFeverM Auto
|
|
|
|
|
|
|
|
ImageSpaceModifier Property _00E_FS_ReduceArcaneFeverIMOD Auto
|
|
|
|
|
2024-02-10 08:10:30 +00:00
|
|
|
Message Property _00E_AlchAmbrosia_sArcaneFeverDecreased Auto
|