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.
Determining Spell School Specialization via Script
Débuté par
henesua
, juin 16 2012 02:14
#1
Posté 16 juin 2012 - 02:14
#2
Posté 16 juin 2012 - 03:09
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);
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
Posté 16 juin 2012 - 12:45
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
Posté 16 juin 2012 - 01:30
I tried the same before I posted.
[edit tried again]
Found this
http://social.biowar...714874#11723647
[edit tried again]
Found this
http://social.biowar...714874#11723647
Modifié par henesua, 16 juin 2012 - 01:41 .





Retour en haut







