blooddawning Posted September 28, 2009 Share Posted September 28, 2009 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 More sharing options...
LFact Posted September 28, 2009 Share Posted September 28, 2009 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 More sharing options...
blooddawning Posted September 28, 2009 Author Share Posted September 28, 2009 What does the scn at the beggining do? =\ Link to comment Share on other sites More sharing options...
Branimirzg Posted September 28, 2009 Share Posted September 28, 2009 Scn= script name Link to comment Share on other sites More sharing options...
Recommended Posts