Globals Constant Group

From NWN Lexicon

Global, non-grouped constant values.

[edit] Constants

Constant Value Description
FALSE 0 Boolean false. Zero is always treated as false. False should remain defined as the numerical value 0 so problems with bitwise AND ("&") and bitwise OR ("|") do not occur.
NUM_INVENTORY_SLOTS 18 Defines the maximum number of inventory slots as 18.
OBJECT_INVALID UNKNOWN Invalid object reference.
OBJECT_SELF UNKNOWN Not truly a constant. Refers to the object that generates an event within an event handler.
PI 3.141592 Used when determining radius, area, or other mathematical operations with a circle (3.141592).
PORTRAIT_INVALID 65535 UNKNOWN
TRUE 1 Boolean true. Any non-zero number (even negatives) is true. True should remain defined as the numerical value 1 so problems with bitwise AND ("&") and bitwise OR ("|") do not occur.
USE_CREATURE_LEVEL 0 UNKNOWN
VFX_NONE -1 UNKNOWN

[edit] See Also



Personal tools
Categories