Jump to content

Question about adding spells on equip


blooddawning

Recommended Posts

Hey.

I'm new to modding, however i've gotten used to the construction set and made some small changes to oblivion.

But I'm not sure how to add spells to the player when he or she equips a certain item (and remove them when the unequip the item) I have made the spells, and I have the item.

 

 

Does anyone know how to do this and can help me?

Link to comment
Share on other sites

Check a script from DrChi's D&D Portable Hole:

scn DnDPortableHoleStartScript

short button

begin OnEquip

player.addspell DnDPortableSummon

end


begin OnUnequip

player.removespell DnDPortableSummon

end

 

However, To prevent adding/removing spell to player by other actors equipping it(unlikely happens, but possible):

scn DnDPortableHoleStartScript

;short button;It doesn't seem to be needed for this script at all

begin OnEquip player

player.addspell DnDPortableSummon

end


begin OnUnequip player

player.removespell DnDPortableSummon

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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