Spell removal

Post » Sat May 28, 2011 4:27 pm

I am thinking of making a small mod which simply allows the player to delete spells like in Morrowind. I know this could be done with a clutter item the mod adds to your inventory which, when equipped, gives a messagebox asking if you want to remove your current spell, unless it's the starter heal or maybe quest spells Stark Reality or the one in Namira's quest. I would like it more though, if I could make it more like dropping an item, so you shift-click it in your spellbook and it deletes it, but I can't really think of how I could do that, unless a menumode block just kept track of your current spell and messageboxed you whenever your spell changed while you were holding shift. But I would still need something to attach the script to. Any suggestions are welcome. Except for links to other mods like this. Those are discouraging. And I will cry.
User avatar
Dewayne Quattlebaum
 
Posts: 3529
Joined: Thu Aug 30, 2007 12:29 pm

Post » Sat May 28, 2011 8:55 pm

Such a mod will be very easy to make using OBSE.

It gives you the GetActiveMenuSelection function, which while in the magic menu returns the highlighted spell, and it gives you the OnKeyDown and IsKeyPressed3 functions.

So something like
Begin Menumode 1022  if OnKeyDown     if IsKeyPressed3       set spell to GetActiveMenuSelection      if spell        spell.Disable       endif    endif  endifEnd

should get you working...
User avatar
saxon
 
Posts: 3376
Joined: Wed Sep 19, 2007 2:45 am

Post » Sat May 28, 2011 4:23 pm

It's worthy noting there's already half a dozen mods at least that do this. Not least Advanced Magecraft (I think), COBL, and possibly Mighty Magicka
User avatar
Nicole M
 
Posts: 3501
Joined: Thu Jun 15, 2006 6:31 am


Return to IV - Oblivion