Jump to content

Adding Spells To Items


Cold101

Recommended Posts

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

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

end

I don't know if it will work, for I'm no way a scripter.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...