equipment

Settable:
no
Arguments:
(1) character
(2) character, integer
Return Value:
(1) object array
(2) object

There are two forms of this function. The first returns an array of all of the given character's equipment; the second returns the item of equipment in a specified slot. In the first form, the array is not "packed", meaning that if the character has empty equipment slots they will show up in the array as nulls. The array index (in the first form) and the integer argument (in the second form) use the following correspondence:

1light
2right finger
3left finger
4neck slot #1
5neck slot #2
6body
7head
8legs
9feet
10hands
11arms
12shield
13about body
14waist
15right wrist
16left wrist
17wielded
18held
19two-handed wield