Difference between revisions of "GetDomain"

From NWN Lexicon
Jump to: navigation, search
(new 8193.8 function)
 
m (See Also: typo fix)
(4 intermediate revisions by the same user not shown)
Line 33: Line 33:
  
 
===Version===
 
===Version===
[https://steamcommunity.com/games/704450/announcements/detail/1703987891357166366]
+
[https://steamcommunity.com/games/704450/announcements/detail/1703987891357166366 1.74.8193.8]
  
 
===Example===
 
===Example===
Line 42: Line 42:
 
{| class="seealso"
 
{| class="seealso"
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
 
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
| TBD
+
|
 +
[[GetSpecialization | GetSpecialization ]]
 +
|-
 +
| width="1px" align="right" valign="top" | <font color="gray">constants: </font>
 +
|
 +
[[DOMAIN | DOMAIN_* Constant Group]]
 +
|-
 
|}<br />
 
|}<br />
 
----
 
----

Revision as of 09:09, 11 March 2020

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

GetSpecialization

constants:

DOMAIN_* Constant Group