Player Resource Consortium

Neverwinter Nights => Help => Topic started by: Chaszmyr on July 24, 2012, 10:15:49 PM

Title: Spell removal via personal_switch.2da
Post by: Chaszmyr on July 24, 2012, 10:15:49 PM
A few questions...

In prc_inc_switch.nss, it warns: "//WARNING! WILL DO BAD THINGS TO SPONTANEOUS CASTERS AFFECTED" in reference to PRC_DISABLE_SPELL_. I would like to disable a bunch of spells, what kind of doom awaits spontaneous spellcasters if I utilize this method? How precisely does this work? Does this switch prevent spellcasters from choosing these spells, or simply dump errors on them when they attempt to use these spells? Anything else I should know about it?

Also, sorry if this has been discussed for, the forum search gave me an error when I tried to see if this was discussed already.
Title: Re: Spell removal via personal_switch.2da
Post by: xwarren on July 25, 2012, 11:10:20 AM
The mechanism is very simple. The script checks if character has given spell (GetHasSpell()) and removes it from spells memorized (DecrementRemainingSpellUses()). For spontaneous casters it will remove all spell uses for given level, so I don't recommend using it in multiplayer environment.
Title: Re: Spell removal via personal_switch.2da
Post by: Chaszmyr on July 25, 2012, 04:38:31 PM
I see. Is there any way to cleanly remove spells that my server doesn't want in? I suppose before the PRC added their own spellbooks, this would just be some work needed in spells.2da, but all of the new spellbooks changes things pretty drastically. Any suggestions?