Prev: 60276 Up: Map Next: 60305
60290: Data buffer - room objects
60290 DEFW 0 Address pointer to item's data set in object room table at 29551
60292 DEFB 0 Data set number for object in room interactable objects table at 29551
8 bytes copied here from object data table (29551) at the routine at 56959
60293 DEFB 0 Room number of object being dealt with
60294 DEFB 0 Horizontal (X) position of object in room, in 4-pixel (half-character) steps
60295 DEFB 0 Vertical (Y) position of object in room, in pixels, from top of room
60296 DEFB 0 Item properties byte (similar to 60238)
Bit 1 (2) set = Item is not visible
Bit 2 (4) set = Item/creature not subject to standard room boundary collision checks (e.g. BATS)
Bit 4 (16) set = Item is being carried by servant
Bit 6 (64) set = Maroc can pick up the item
60297 DEFB 0 Object state - starts at 1 for each object, e.g. chest state 1 = closed, 2 = open
Each additional object state is stored in an extra 4 byte set
60298 DEFB 0 Spell number (or 0 if not a spell) - spell table at 28156
Start counting with MOVE = 0, SERVANT = 1 etc.
60299 DEFB 0 Attribute/colour/value of object
  • Bits 0-3 = INK colour of object (0-7)
  • Bit 4 = object will change colour
  • Bits 5-7 contain the item's value when trading with warlocks - see 52857
60300 DEFB 0 Number of additional 4-byte sets for this object
4 additional bytes related to the object's current state. Copied here from the object's data set at 29551 by the routine at 56959
60301 DEFB 0 Room item/creature movement pattern byte. Used for moving room items (including set room creatures) in the routine at 52136
  • Bit 0 set = room item/creature has a random element to its movement
  • Bit 1 set = room item/creature will try to home in on Maroc's position
  • Bit 2 set = room item/creature is subject to usual room wall collision detection/adjustment (BATS do not have this set)
60302 DEFB 0 Event number for items acting on this item - e.g. for a chest, which is opened by a particular key with matching event number
Checked in event/collision checks at 52263
Event type 15 = Object that Maroc can collect (or be given by the servant)
60303 DEFB 0 Event number to check for this item - e.g. for a key, that opens a particular chest with matching event number
As part of event/collision check, also used for energy-affecting objects, e.g. orbs and mushrooms. 254 = energy drain, 253 = energy replenish
60304 DEFB 0 Graphic number - offset for graphic address table at 38851
Calculated is [(n-1)*2] + 38851
A value of 124 (check at 51968) means the object is hidden (e.g. inside a chest) so doesn't need drawing on screen
Prev: 60276 Up: Map Next: 60305