LoremasterBuckles Posted November 30, 2012 Share Posted November 30, 2012 It should be simple, but I cant figure it out! All I want is some kind a script that gives you a spell when you have the item equipped and removes it when you take the item off. It should basically be... On EquipaddspellOn Unequipremovespell It should be simple, but I cant get it right on my own. I need help! Link to comment Share on other sites More sharing options...
Dart98Rock Posted November 30, 2012 Share Posted November 30, 2012 First that is an awesome looking avatar picture. I am also trying to do something the same, if I find out how I'll come back and tell you. Link to comment Share on other sites More sharing options...
SoulMasterII Posted November 30, 2012 Share Posted November 30, 2012 Hi,I believe this should be what you are looking for?http://www.creationkit.com/Adding_Working_Scripts_to_ItemsRegardsSoulMasterII Link to comment Share on other sites More sharing options...
Ghaunadaur Posted November 30, 2012 Share Posted November 30, 2012 (edited) This might work: Scriptname YourScriptName extends ObjectReference Spell Property SpellToAdd auto Event OnEquipped(Actor akActor) akActor.AddSpell(SpellToAdd) EndEvent Event OnUnequipped(Actor akActor) akActor.RemoveSpell(SpellToAdd) EndEvent If you want only the player to get the spell, it would look like this: Scriptname YourScriptName extends ObjectReference Spell Property SpellToAdd auto Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() akActor.AddSpell(SpellToAdd) endif EndEvent Event OnUnequipped(Actor akActor) if akActor == Game.GetPlayer() akActor.RemoveSpell(SpellToAdd) endif EndEvent The property needs to be filled with the spell to be added/removed. Edit: The link posted by SoulMaster explains it very well.:) Edited November 30, 2012 by Ghaunadaur Link to comment Share on other sites More sharing options...
Recommended Posts