GetDomain(object, int, int)

From NWN Lexicon
Revision as of 03:43, 11 March 2020 by Shadguy (talk | contribs) (new 8193.8 function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 creature's domain in nClass.
int GetDomain(
    object oCreature, 
    int nDomainIndex = 1, 
    int nClass = CLASS_TYPE_CLERIC
);

Parameters

oCreature
The creature object to query.
nDomainIndex
1 or 2.
nClass
The class to query for a domain.

Description

Returns oCreature's domain in nClass (DOMAIN_* constants).

nDomainIndex - 1 or 2.

Unless custom content is used, only Clerics have domains.

Returns -1 on error.


Remarks

Version

[1]

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: TBD