4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
567 B

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.}