Template:OBSE Slot Mask Bit Assignments

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Slot Mask Bit Assignments[edit source]

When dealing with a slot mask, such as used by this function, each equipment slot is assigned to a single bit of a 32-bit value: when that bit is 1, that slot is included, and when it is 0, it is not. Having multiple bits set to 1 allows the scripter to deal with a specific list of slots, even if that particular list is not supported by the individual OBSE Slot Codes.

Hex		Dec	Slot
0x00000001	1	Head
0x00000002	2	Hair
0x00000004	4	UpperBody
0x00000008	8	LowerBody
0x00000010	16	Hand
0x00000020	32	Foot
0x00000040	64	RightRing
0x00000080	128	LeftRing
0x00000100	256	Amulet
0x00000200	512	Weapon
0x00000400	1024	BackWeapon
0x00000800	2048	SideWeapon
0x00001000	4096	Quiver
0x00002000	8192	Shield
0x00004000	16384	Torch
0x00008000	32768	Tail
0x00010000	65536	Weapon
0x00020000	131072	Ammo
0x00040000	262144	Ranged Weapon