Cold101 Posted July 22, 2009 Share Posted July 22, 2009 Im making a new mod to test, im enchanting some robes that should be enchanted, such as the necromancer robes, king of worms, ect. But I know there is a way to add a spell, does anyone know how to do it? I mean add a spell as in, you equip the item, and a spell is added. Link to comment Share on other sites More sharing options...
Cold101 Posted July 22, 2009 Author Share Posted July 22, 2009 Never mind, I found out how. Link to comment Share on other sites More sharing options...
LFact Posted July 22, 2009 Share Posted July 22, 2009 I think you can apply this script(script from Dr.Chi's D&D Portable Hole):scn DnDPortableHoleStartScript short button begin OnEquip player.addspell DnDPortableSummon end begin OnUnequip player.removespell DnDPortableSummon end However, if NPC wears scripted item, instead of the wearer, you will get the spell(or spell effect). So, the script should be like:scn DnDPortableHoleStartScript short button ref actor set actor to GetSelf begin OnEquip actor.addspell DnDPortableSummon end begin OnUnequip actor.removespell DnDPortableSummon endI don't know if it will work, for I'm no way a scripter. Link to comment Share on other sites More sharing options...
Cold101 Posted July 22, 2009 Author Share Posted July 22, 2009 Hmm, when I tried it, it said it needed to be in a block? Link to comment Share on other sites More sharing options...
Cold101 Posted July 22, 2009 Author Share Posted July 22, 2009 Nvm, I fixed it. Link to comment Share on other sites More sharing options...
Recommended Posts