enderalse/source/scripts/_00e_arkanistenfieberblitzheilungscn.psc

45 lines
1.0 KiB
Plaintext

Scriptname _00E_ArkanistenfieberBlitzheilungSCN extends activemagiceffect
event OnInit()
if SKSE.GetVersion()
skseMagnitude = GetMagnitude()
else
; By the time this value is retrieved, LastFlattered is already modified, making the calculation slightly inaccurate
fMagnitude = PlayerREF.GetActorValue("LastFlattered")
endif
endevent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
if akTarget != PlayerREF
return
endif
float currentValue = PlayerREF.GetActorValue("LastFlattered")
if skseMagnitude
fMagnitude = - skseMagnitude
else
fMagnitude -= currentValue
endif
_00E_Player_sArcaneFeverIncreased.Show(fMagnitude, - currentValue)
If bVisuals
_00E_ArkanistenfieberIMOD.Apply()
EndIf
_00E_FS_IncreaseArcaneFeverM.Play(PlayerREF)
EndEvent
float skseMagnitude
float fMagnitude
bool Property bVisuals = false Auto
Actor Property PlayerREF Auto
ImageSpaceModifier Property _00E_ArkanistenfieberIMOD Auto
Sound Property _00E_FS_IncreaseArcaneFeverM Auto
Message Property _00E_Player_sArcaneFeverIncreased Auto