2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_ArkanistenfieberWohltatSCN extends activemagiceffect
|
|
|
|
|
2024-02-11 19:27:09 +00:00
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-02-11 19:27:09 +00:00
|
|
|
If akTarget == Game.GetForm(0x14)
|
2021-10-05 22:15:58 +00:00
|
|
|
akPlayer = akTarget
|
2023-12-08 02:45:53 +00:00
|
|
|
fOldAV = -1*(akPlayer.GetActorValue("LastFlattered"))
|
2021-10-05 22:15:58 +00:00
|
|
|
Else
|
|
|
|
akPlayer = None
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
|
|
|
|
|
|
If akPlayer
|
2023-12-08 02:45:53 +00:00
|
|
|
fNewAV = -1*(akPlayer.GetActorValue("LastFlattered"))
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_Player_sArcaneFeverIncreased.Show(fNewAV-fOldAV, fNewAV)
|
|
|
|
_00E_ArkanistenfieberIMOD.Apply()
|
|
|
|
_00E_FS_IncreaseArcaneFeverM.Play(akPlayer)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
float fOldAV
|
|
|
|
float fNewAV
|
|
|
|
|
|
|
|
Actor akPlayer
|
|
|
|
ImageSpaceModifier Property _00E_ArkanistenfieberIMOD Auto
|
|
|
|
Sound Property _00E_FS_IncreaseArcaneFeverM Auto
|
2024-02-11 19:27:09 +00:00
|
|
|
Message Property _00E_Player_sArcaneFeverIncreased Auto
|