Aller au contenu

Photo

Determining Spell School Specialization via Script


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

#1
henesua

henesua
  • Members
  • 3 883 messages
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.

#2
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
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);

#3
Shadooow

Shadooow
  • Members
  • 4 474 messages
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.

#4
henesua

henesua
  • Members
  • 3 883 messages
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 .