INVENTORY_SLOT_* Constant Group

From NWN Lexicon
Jump to navigationJump to search

Constant group for inventory equipment slots. These are the slots where items are placed when that are equipped (in use), and not the slots where items are just stored.

Also there exists a constant NUM_INVENTORY_SLOTS (integer value of 18) which can be used with a for loop as an upper limit (start at 0) to iterate through all inventory slots for equipped items.

To just get usually equippabable PC usable slots stop on INVENTORY_SLOT_BOLTS, or 13, anything past this are hidden creature weapons and creature armour.

Constants

Constant Value Description
INVENTORY_SLOT_ARMS 3
The gloves or bracers slot in the inventory.
INVENTORY_SLOT_ARROWS 11
The arrows slot in the inventory. Can have up to 99 arrows stacked.
INVENTORY_SLOT_BELT 10
The belt slot in the inventory.
INVENTORY_SLOT_BOLTS 13
The bolts slot in the inventory. Can have up to 99 bolts stacked.
INVENTORY_SLOT_BOOTS 2
The boots slot in the inventory.
INVENTORY_SLOT_BULLETS 12
The bullets slot in the inventory. Can have up to 99 bullets stacked.
INVENTORY_SLOT_CARMOUR 17
Creature skin/hide slot (natural armor).
INVENTORY_SLOT_CHEST 1
The chest (or main armor) slot in the inventory. Clothes and body armor would go here.
INVENTORY_SLOT_CLOAK 6
The cloak slot in the inventory.
INVENTORY_SLOT_CWEAPON_B 16
Creature special attack slot (typically a bite).
INVENTORY_SLOT_CWEAPON_L 14
Creature's natural left attack (typically a claw).
INVENTORY_SLOT_CWEAPON_R 15
Creature's natural right attack (typically a claw).
INVENTORY_SLOT_HEAD 0
The head (or helmet) slot in the inventory.
INVENTORY_SLOT_LEFTHAND 5
Off-hand weapon slot.
INVENTORY_SLOT_LEFTRING 7
The left hand ring slot in the inventory.
INVENTORY_SLOT_NECK 9
The neck (or amulet) slot in the inventory.
INVENTORY_SLOT_RIGHTHAND 4
Primary weapon slot.
INVENTORY_SLOT_RIGHTRING 8
The right hand ring slot in the inventory.


See Also

functions: 

GetItemInSlot