GetSpecialization(object, int)

From NWN Lexicon
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Returns the spell school specialization of oCreature.
int GetSpecialization(
    object oCreature,
    int nClass = CLASS_TYPE_WIZARD
);

Parameters

oCreature
The creature object to query.
nClass
The class to query for a spell specialization school.

Description

Returns oCreature's spell school specialization in nClass (SPELL_SCHOOL_* constants).

Unless custom content is used, only Wizards have spell schools.

Returns -1 on error.


Remarks

There is current no way to set specalizations and NPCs, unless edited in a GFF editor, cannot use them.

Version

1.74.8193.8

Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

functions:

GetDomain

constants:

SPELL_SCHOOL_* Constant Group