Prev: 32513 Up: Map Next: 32691
32626: Maroc's inventory
4 sets of 16-byte game data relating to any objects Maroc is carrying. Checked while the servant spell is active at 55347.
When an item is retrieved, data is transferred to the graphics data at 60227 to be copied into the room item tables at 31744, as once extracted from Maroc's backpack, it's present in the room.
servant swapping objects from Maroc's inventory
Despite there being 4 slots, Maroc can only actually carry 3 items.
  • If Maroc has moved over the object to collect it, 4th slot acts as a temporary overflow store for the extra object, and it's dropped shortly afterwards
  • If the servant gives him the item (moves over the backpack), the item is swapped with the next one
Either way, the 4th item remains in the inventory only very briefly. Object collection works as follows:
  • When he picks up an item, it's put in the next available slot, with a value of 4 (object-in-slot) put in the first byte of the set (52445)
  • The inventory address pointer (stored at 60348) is moved along to the start of next inventory slot
  • A later check (55564) checks the first byte of this set
  • If it's also set to 4, this object gets dropped
  • Some data is copied from the item's data buffer at 60227, but isn't needed while the object is hidden in Maroc's backpack (e.g. horizontal/vertical screen co-ordinates)
Byte Value
1 Item type - 0 = Empty slot, 4 = Interactable object
2 & 3 Address pointer to object's data in table at 29551
4 Data set number for this object in table at 29551
5 - (not needed)
6 - (not needed)
7 - (not needed)
8 - (not needed)
9 - (not needed)
10 - (not needed)
11 - (not needed)
12 - (not needed)
13 Pre-graphics data byte (see Trivia - Graphic properties)
14 Graphic frame number offset (1 for most objects)
15 & 16 Address pointer to object graphic address in table at 38851
32626 DEFB 0,50,175,139,62,1,50,176 Inventory slot 1
32634 DEFB 139,17,167,131,33,181,64,205
32642 DEFB 0,129,33,181,88,54,13,33 Inventory slot 2
32650 DEFB 212,88,54,13,62,4,50,175
32658 DEFB 0,62,1,50,176,139,17,183 Inventory slot 3
32666 DEFB 131,33,15,72,205,243,129,33
32674 DEFB 0,89,54,5,35,54,8,35 Inventory slot 4
32682 DEFB 54,8,35,54,8,33,141,64
32690 DEFB 255 Byte indicating end-of-inventory slots
Prev: 32513 Up: Map Next: 32691