Author Topic: Finding a Wizard School Specialization?  (Read 413 times)

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
Finding a Wizard School Specialization?
« on: October 01, 2010, 04:25:06 pm »


               I haven't found anything straightforward, so I thought I would ask here.

Has anyone ever figured out a way to determine if a wizard is a specialist, and if so, what his/her specialty school is?
I want a scripted way, but I'd also like to hear about any other ways people have figured out (other than viewing the character sheet in game as a DM or as the player.)  Any theories?

All relevant thoughts and ideas are much appreciated!
               
               

               
            

Legacy_Mudeye

  • Full Member
  • ***
  • Posts: 238
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #1 on: October 01, 2010, 08:18:58 pm »


               I did a search through the archived forums and there didn't seem to be any way to do that.  The only suggestion that came close was to see if the pc could cast from scrolls of the opposition schools, if they can't cast the scroll then it is prohibited.  That won't lead you to a definite specialization school though.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #2 on: October 01, 2010, 09:12:26 pm »


               Sadly there is no scripted way to get the school.   Here is a topic on it from the old forums.

Neverwinter Nights: Specialist Wizard Checks
               
               

               
            

Legacy_Builder_Anthony

  • Hero Member
  • *****
  • Posts: 786
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #3 on: October 02, 2010, 01:31:37 am »


               You could probally do it manually by giving the player a item while being a dm and then check for that item in a script.



So if that player is a illusion specialist give him item abc and check for item abc.....if the conditions are met then run the script.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #4 on: October 03, 2010, 12:30:39 am »


               You need to use NWNX to do it, either the Letoscript or Exalt plugin.

Here's the Get/Set if you're using eXalt, with two other required functions:

[nwscript]
int NWNXFuncsZero (object oObject, string sFunc) {
    SetLocalString(oObject, sFunc, "          ");
    return StringToInt(GetLocalString(oObject, sFunc));
}

int NWNXFuncsOne (object oObject, string sFunc, int nVal1) {
    SetLocalString(oObject, sFunc, IntToString(nVal1) + "          ");
    return StringToInt(GetLocalString(oObject, sFunc));
}
int GetWizardSpecialization (object oCreature) {
    return NWNXFuncsZero(oCreature, "NWNX!FUNCS!GETWIZARDSPECIALIZATION");
}

int SetWizardSpecialization (object oCreature, int nSchool) {
    return NWNXFuncsOne(oCreature, "NWNX!FUNCS!SETWIZARDSPECIALIZATION", nSchool);
}
[/nwscript]

I'd offer up the letoscript version if I had it handy, but you can find it on the old forums - I've posted it numerous times there.

Funky
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #5 on: October 03, 2010, 05:07:01 am »


               Thanks for all the replies and help, guys!  I may give the NWNX solution a shot.  I was going to use it anyway for the class/level hiding on login, so that might work out.



Oh, and Funky, nice to see you here! '<img'>
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Finding a Wizard School Specialization?
« Reply #6 on: October 04, 2010, 09:22:41 pm »


               Real life has kept me away from NWN the last 4 months, but I'm back (and coding again; typically I check the Scripting forum when I want to take a break from a particularly hairy script).



Funky