Prev: 7F01 Up: Map Next: 7FB3
7F72: 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 D833.
When an item is retrieved, data is transferred to the graphics data at EB43 to be copied into the room item tables at 7C00, 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 (CCDD)
  • The inventory address pointer (stored at 60348) is moved along to the start of next inventory slot
  • A later check (D90C) 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 EB43, 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 736F
4 Data set number for this object in table at 736F
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 97C3
7F72 DEFB $00,$32,$AF,$8B,$3E,$01,$32,$B0 Inventory slot 1
7F7A DEFB $8B,$11,$A7,$83,$21,$B5,$40,$CD
7F82 DEFB $00,$81,$21,$B5,$58,$36,$0D,$21 Inventory slot 2
7F8A DEFB $D4,$58,$36,$0D,$3E,$04,$32,$AF
7F92 DEFB $00,$3E,$01,$32,$B0,$8B,$11,$B7 Inventory slot 3
7F9A DEFB $83,$21,$0F,$48,$CD,$F3,$81,$21
7FA2 DEFB $00,$59,$36,$05,$23,$36,$08,$23 Inventory slot 4
7FAA DEFB $36,$08,$23,$36,$08,$21,$8D,$40
7FB2 DEFB $FF Byte indicating end-of-inventory slots
Prev: 7F01 Up: Map Next: 7FB3