IndySax Posted June 30, 2014 Share Posted June 30, 2014 I'm trying to build up a Cleric style set up, so I've altered some of the base dawnguard items. One thing I can't figure out his how to add a power when an item is equipped. I want to add a bone hawk amulet to the game that while its equipped gives me a Guardian Circle power. Does anyone know how to do this, or is it possible to do without custom scripting? Link to comment Share on other sites More sharing options...
Mattiewagg Posted July 1, 2014 Share Posted July 1, 2014 You create an ability, and then use AddSpell to add the ability. Whenever you want to remove the ability, use RemoveSpell Here's how you would script it: Scriptname MyBoneHawkScript Extends ObjectReference; place this script on the amulet Spell Property MyAbility Auto; Point this property to your ability Actor Property PlayerREF Auto; this should autofill. Best way to refer to the player Event OnEquipped(Actor AkActionRef) If (AkActionRef == PlayerREF) PlayerREF.AddSpell(MyAbility) EndIf EndEvent Event OnUnequipped(Actor AkActionRef) If (AkActionRef == PlayerREF) PlayerREF.RemoveSpell(MyAbility) EndIf EndEvent To add an ability, you actually add a spell. I believe this is under Magic, and then you add a spell. Here is a guide on the contents of the spell window. You would make it an ability. Link to comment Share on other sites More sharing options...
Recommended Posts