Removing Spells from the Priest Spellbook.
Mordeus
Member Posts: 460
I'm working on a couple of Cleric and Druid kits that use completely their own spells. Where a series of new "School" values are created to make way for 2ed's Priest Sphere concept. So all current priest spells will be redone to be classified under the Spheres instead of the Wizard Schools.
I've created the new spells and I can add them to the priest spellbook but I need to be able to remove the Vanilla spells from the priest spellbook to avoid having duplicates.
I initially tried applying a .spl file to the kit's .2da file with the "Removal: Remove School [220]" effect. Where I tried to remove all schools (Necromancy, Abjuration, etc...) and therefore all of the Vanilla spells in one go since they are listed under that school. But that didn't work.
I then tried the effect "Spell: Remove Spell [172] where I would target specific priest spells to be removed from the Spellbook. But it wouldn't remove any spell I specified.
I then tried to find a copy of CLABMA02-CLABMA09 to see how BG1 restricted access to Schools. With the idea to copy whatever they did. But that is unavailable for extraction.
Either somehow the priest spellbook is untouchable or I'm doing this wrong. I tried other Priest Spellbook specific effects like "Spell: Disable Spell Casting Abilities [145]" where I tried disabling the entire Priest Spellbook but that didn't work. I tried doing the same to the Bard's spellbook but it didn't do anything either.
I have no trouble applying .spl files with non-spellbook related effects, but anything related to the spellbook is causing me troubles.
Quick Question... is it possible to remove spells from the priest spellbook?
If so, then I'll post screen captures of the .spl and .eff file setup as it appears in DLTC to get into the specifics of what I'm doing wrong.
I've created the new spells and I can add them to the priest spellbook but I need to be able to remove the Vanilla spells from the priest spellbook to avoid having duplicates.
I initially tried applying a .spl file to the kit's .2da file with the "Removal: Remove School [220]" effect. Where I tried to remove all schools (Necromancy, Abjuration, etc...) and therefore all of the Vanilla spells in one go since they are listed under that school. But that didn't work.
I then tried the effect "Spell: Remove Spell [172] where I would target specific priest spells to be removed from the Spellbook. But it wouldn't remove any spell I specified.
I then tried to find a copy of CLABMA02-CLABMA09 to see how BG1 restricted access to Schools. With the idea to copy whatever they did. But that is unavailable for extraction.
Either somehow the priest spellbook is untouchable or I'm doing this wrong. I tried other Priest Spellbook specific effects like "Spell: Disable Spell Casting Abilities [145]" where I tried disabling the entire Priest Spellbook but that didn't work. I tried doing the same to the Bard's spellbook but it didn't do anything either.
I have no trouble applying .spl files with non-spellbook related effects, but anything related to the spellbook is causing me troubles.
Quick Question... is it possible to remove spells from the priest spellbook?
If so, then I'll post screen captures of the .spl and .eff file setup as it appears in DLTC to get into the specifics of what I'm doing wrong.
1
Comments
Priest spells that are removed with #172 are regained upon levelling up. (Opcode
#222#220 removes the effects of active spells from the affected creature, similar to what Breach does.)I'm pretty sure BG1 handles schools through the exclusion flags in the SPL, as well.
How are you setting up the spell to disable the spellbook? Opcode #145 works for me.
If Priest Spells are regained upon levelling up. Could I create multiple .spl files that suppress the spells for every level in the kit's .2da file? So even if the spells are regained, they will also be removed upon leveling?
If so, could I use Effect #220 instead of #172 to do the same thing? Because I really just want to wipe the spellbook clean and start over with new versions, rather than target specific spells for removal.
I tried doing the above with #220 but it really does seem to be a problem with how I've formatted the .spl in the first place. To be honest, the .spl I created is a combination of trial and error, whilst seeing what already works in pre-existing .spl files. So it's really estimation work on my part.
For example, I wasn't so sure what it meant with the level categories. I think in General Properties, "Level" means what level it is in the spellbook, so I left it with 0. With Extended Effects, I guessed "Required level" is the level of the character. While with "Maximum Level" in the effects menu, I guessed it meant character level also. So for each spellbook suppression .spl file, I would increase the Level value to whatever the character level would be.
Using opcode #172 to cancel out individual spells and applying it to every level in the .2da file really seems like the way to go. You've saved me a lot of trouble, thankyou.
Hope that's useful
If that doesn't work, there is a really foolproof solution.... make copies of every spell and then change the Priest Type to something unreadable like PST Mage, copy them to the override folder and it will cancel out the fixed spells. Then make another set of identical spells that can be added manually. This will screw up every other kit besides the manually edited ones but it's going to be my last resort :S
Working on an NPC kit for DSotSC and need to do this.
Good info in the thread. Thanks!