enderalse/source/scripts/_00e_totem_addenchantmentsc.psc

26 lines
567 B
Plaintext

Scriptname _00E_Totem_AddEnchantmentSC extends ObjectReference
; This script adds a permanent enchantment to the player, which will remain active as long as the parent item is in the player's inventory
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If akNewContainer == PlayerREF
PlayerREF.AddSpell(_00E_Totem_Ab)
Else
PlayerREF.RemoveSpell(_00E_Totem_Ab)
EndIf
EndEvent
Actor Property PlayerREF Auto
Spell Property _00E_Totem_Ab Auto
{Set this to whatever ability you want the totem to carry.}