Equipable Spell

Post » Wed Mar 02, 2016 10:12 am

I'm new to using the software and was hoping someone might be able to give me some advice. I'm looking to enchant an item, like a ring, with an aimed spell that will only show up in your magic tab if you are actually wearing the ring. I can't seem to find the correct path to get this to work. I know it can be done because I've downloaded other creation kit mods that have similar items. Any ideas? Or maybe links to some pages that could help? Thanks!

User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Wed Mar 02, 2016 9:01 am

It'd probably be a combination of 'OnEquipped' and 'AddSpell'.



Something like:



Spell Property MySpell Auto

Event OnEquipped(Actor Target)
Target.AddSpell(MySpell, False)
EndEvent

Event OnUnEquipped(Actor Target)
Target.RemoveSpell(MySpell)
EndEvent

You would attach that as a Script to the Ring, and then when it is Equipped it would get the ID of the person who equipped it, and give them the Spell; and when they took it off, it would find out who removed it, and take the Spell from them :)



Your best place for info is : CreationKit.com



Using the Search, you can search for things like 'Actor Script' 'ObjectReference Script', and get a list of functions and events which they can run; or if you know the specific function, search for that, and get the info :)

User avatar
Matt Bee
 
Posts: 3441
Joined: Tue Jul 10, 2007 5:32 am


Return to V - Skyrim