Jump to content
Sign in to follow this  

BG2: ToB - Action 147

Recommended Posts

147 RemoveSpell(I:Spell*Spell)

147 RemoveSpellRES(S:RES*)

This action removes the specified spell from the spellbook of the active creature. The spell can be an innate ability, a priest spell or a wizard spell, but must be listed in spell.ids. Any memorised copies of the spell will not be removed.

At least for wizard spells this action un-memorises one instance of the spell. If the spell is not memorised the action appears to do nothing. It does not remove wizard spells from the spell book. For the RES action (which needs to be added to action.ids before it can be used) the spell does not appear to need to be listed in spell.ids or conform to the "spwi" naming scheme.

Edited by Wisp

Share this post

Link to post

Huh, nice find.


I knew why we used an effect opcode to get rid of hardcoded cleric spells.

The example in IESDP also sucks.

Share this post

Link to post
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...