Noob(er) Question
Bubb
Member Posts: 1,005
Hi everyone! I'm quite new at modding Baldur's Gate, and I am stuck on a certain problem. I am trying to create a spell that "unmemorizes" one instance of another spell from the spellbook. Essentially, I am trying to do what either RemoveSpell or RemoveSpellRES would achieve, but inside of a spell instead of a script. Does anyone know if this is possible from a spell effect? I've personally tried "Remove Spell (172)," but that completely removes the spell from the spellbook, not just one memorized instance.
0
Comments
And as you observed OPcode 172 removes the spell entirely.
There is no simple way to remove a single memorized instance of a spell with another spell, but you could have a workaround using the invisible creature trick: you make your spell summon a creature that will execute a script to use the RemoveSpell(RES) action onto its summoner or whomever you want to remove the spell from and then disappear).
Concerning the "invisible creature trick", it's simply a method that is often used when you need to trigger a script/dialog, it simply consists in an immune to everything, untargetable, invisible with no hitbox unit