Author Topic: Determining Spell School Specialization via Script  (Read 262 times)

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Determining Spell School Specialization via Script
« on: June 16, 2012, 03:14:19 am »


               How do you detect via script whether a wizard is a specialist, and then determine which school they are specialists in? I prefer a Vanilla NWN solution.
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Determining Spell School Specialization via Script
« Reply #1 on: June 16, 2012, 04:09:42 am »


               The workaround method I'd seen for it had involved checking if they could cast a spell of each school, and working back from there to figure out which school they specialized in.  Might have been one of ShadoOw's codes, I can't remember who posted it.

 Nwnx allows for checking it directly, if you decide to go that route.  In windows:
// Sets the specialist spell school of a Wizard
void NWNXFuncs_SetWizardSpecialization(object oCreature, int iSpecialization);

// Returns the specialist spell school of a Wizard
int NWNXFuncs_GetWizardSpecialization(object oCreature);
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Determining Spell School Specialization via Script
« Reply #2 on: June 16, 2012, 01:45:35 pm »


               I posted a script without using NWNX to do this (with some limitation) in these forums but can't find it anymore. Tried several keywords in google and nothing... maybe you have better luck.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Determining Spell School Specialization via Script
« Reply #3 on: June 16, 2012, 02:30:03 pm »


               I tried the same before I posted.

[edit tried again]

Found this
http://social.biowar...714874#11723647 
               
               

               


                     Modifié par henesua, 16 juin 2012 - 01:41 .