enderalse/source/scripts/_60e_fs_mystical_panaceasc.psc

31 lines
1.2 KiB
Plaintext

Scriptname _60E_FS_Mystical_PanaceaSC extends ActiveMagicEffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(Actor akTarget, Actor akCaster)
if SKSE.GetVersion()
; ESP values have been synchronized in 2.1 to make the spell work properly without SKSE
; Keeping this here to ensure synchronization of attributes, modified by mods
_60E_FS_Mystical_PanaceaEnch.SetNthEffectMagnitude(0, GetMagnitude())
_60E_FS_Mystical_PanaceaEnch.SetNthEffectMagnitude(1, GetMagnitude())
_60E_FS_Mystical_ArmorBuffPerk.SetNthEntryValue(0, 0, GetMagnitude())
endif
PlayerREF.PlaceAtMe(_60E_FS_Mystical_PanaceaHazard)
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Hazard Property _60E_FS_Mystical_PanaceaHazard Auto
Enchantment Property _60E_FS_Mystical_PanaceaEnch Auto
Perk Property _60E_FS_Mystical_ArmorBuffPerk Auto