Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.
The wiki has recently moved; please report any issues in Discord. Pardon the dust.
EarthBound/Store Inventories Table
Jump to navigation
Jump to search
Store Inventories Table | |
Game | EarthBound |
Start Address | 0x1578B9 |
End Address | 0x157A86 |
# of Entries | 66 |
Entry Length | 7 bytes (0x07) |
Total Length | 462 bytes (0x1CE) |
Back to the ROM map |
The Store Inventories Table stores what items are sold by the various stores in EarthBound. It is essientially a list of indexes in the Item Properties Table, seven for each store.
Format
Item #N
- Length: 1 byte
- Offset within entry: 0x0N
- Range of values: 0-255 (0x00-0xFF), but it must be a valid index in the Item Properties Table
The index in the Item Properties Table of the Nth item sold by this store or 0 for no item. N can be 0-6 for up to 7 items per store. Note that the cost of an item is controlled by the Item Properties Table and will be the same at every store which sells that item.