Player Resource Consortium

 

Author Topic: Spell removal via personal_switch.2da  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

July 24, 2012, 10:15:49 PM
  • Adept
  • *
  • Posts: 27
  • Karma: +2/-0
  • New Member
    • View Profile

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.


July 25, 2012, 11:10:20 AM
Reply #1
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

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.


July 25, 2012, 04:38:31 PM
Reply #2
  • Adept
  • *
  • Posts: 27
  • Karma: +2/-0
  • New Member
    • View Profile

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?