Jump to content

Opcode 172: Remove Spell


StrixO

Recommended Posts

I have a spell that creates a suite of innate buttons (each a custom SPINxxx.SPL), and I'd like one of the effects for each button to remove all the other buttons (i.e. when I choose one button, all the others are removed). Here's the opcode I've tried using (with no success):

 

http://iesdp.gibberlings3.net/opcodes/bg2tob.htm#op172

"but does not affect spells already memorised"

 

However, Polymorph Self (SPWI416) uses the Remove Spell opcode to remove the innate buttons (polyself: various shapes) after a given duration.

 

Am I missing something here? Any ideas from anyone?

 

Thanks!

 

EDIT- I should add some details: I've tried a "Remove Spell" for every custom SPL as a global effect of each innate button, and as an effect of the special ability of each button...neither works.

 

EDIT2: Shapechange also uses the opcode to remove the shapechange innate buttons.

 

 

EDIT FINAL: I couldn't get the 'remove spell' function to work as in the poly/shapechange spells, but I found opcode 214:

http://iesdp.gibberlings3.net/opcodes/bg2tob.htm#op214

which was essentially what I tried to describe above.

 

Thanks for looking. Sorry if I wasted your time! And sorry for spamming up the board! I have a lot of questions...

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...