Author Topic: Checking if a spell is known  (Read 332 times)

Legacy_CheeseshireCat

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
Checking if a spell is known
« on: November 16, 2010, 10:32:57 am »


               How do I check if a spell is *known* to a caster? (That is, not *memorized* -- what GetHasSpell checks, but *known*)
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Checking if a spell is known
« Reply #1 on: November 16, 2010, 12:05:38 pm »


               I don't think you can, at least not with the standard nwn system.  There may be a way to do it with NWNx. But having never used NWNx myself I do not know.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Checking if a spell is known
« Reply #2 on: November 16, 2010, 01:04:12 pm »


               nwnx_funcs allows this, you can find nwnx_funcs at nwvault
               
               

               
            

Legacy_CheeseshireCat

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
Checking if a spell is known
« Reply #3 on: November 16, 2010, 06:32:45 pm »


               Pretty odd... One would think availability of a spell per se would be more significant for a plot than having it ready... Either way, I need a non-plugin solution, though apparently there isn't one.
               
               

               
            

Legacy_CheeseshireCat

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
Checking if a spell is known
« Reply #4 on: November 26, 2010, 06:59:03 am »


               Apparently, even engine itself doesn't bother.

Here's some juicy bug:

Create a non-wizard character. Level up. Get a wizard level. Learn some spells. Level down. Gain a wizard level again. Now you can learn those spells again, and you would hve them in your spellbook twice(!)
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Checking if a spell is known
« Reply #5 on: November 26, 2010, 05:13:07 pm »


               

CheeseshireCat wrote...

Apparently, even engine itself doesn't bother.
Here's some juicy bug:
Create a non-wizard character. Level up. Get a wizard level. Learn some spells. Level down. Gain a wizard level again. Now you can learn those spells again, and you would hve them in your spellbook twice(!)


Lol, cool.