Globals Constant Group
From NWN Lexicon
Jump to navigationJump to searchGlobal, non-grouped constant values.
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 | Special | Invalid object reference. |
OBJECT_SELF | Special | 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 | Invalid portrait ID when GetPortraitId fails. |
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 | Used for EffectDispelMagicAll and EffectDispelMagicBest to define the caster level. |
VFX_NONE | -1 | Invalid VFX ID that can be passed into EffectSummonCreature to not display a VFX. |
See Also