Aller au contenu

Photo

Finding a Wizard School Specialization?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Khuzadrepa

Khuzadrepa
  • Members
  • 188 messages
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!

#2
Mudeye

Mudeye
  • Members
  • 126 messages
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.

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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

#4
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
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.

#5
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
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

#6
Khuzadrepa

Khuzadrepa
  • Members
  • 188 messages
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! :)

#7
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
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