Poké Mart data structure (Generation I)
This is the Poké Mart data structure in Generation I games.
In each game, there is a data block containing the list of items sold in each Poké Mart.
When the player talks to a Poké Mart clerk, the data pertaining to the current Poké Mart (the total number of items, as well as the list of items) is copied to the RAM to be used (even before the player enters the "Buy" option and sees the list of items). These values remain in the RAM even after the player leaves the Poké Mart.
The fourth Poké Mart found in the game code is simply set up to sell a Bicycle, but this data remains unused. The Miracle Cycle in Cerulean City delivers the Bicycle using a separate script, which does not use this Poké Mart data.
The hexadecimal FE value is found at the start of each Poké Mart in the game data. This value is not copied to the RAM data used for the current Poké Mart.
Total number of items
At the start of the data for each Poké Mart (after the FE value, except in the data copied to the RAM), there is a value for the number of items available. The game starts counting from 00, but the "Cancel" button at the end counts as an additional item.
For instance, the Vermilion City Poké Mart has the value "06" for the number of items. This Poké Mart stores seven items in the game's memory (counting from 00 to 06): the six regular items (Poké Ball, Super Potion, Ice Heal, Awakening, Parlyz Heal, and Repel), as well as the "Cancel" button as the seventh item.
List of items
After the number of items, all the following values are the index numbers of items sold in this Poké Mart. (for instance, Potion's index number is hexadecimal 14)
In all Poké Marts, the "Cancel" button is stored as the item FF at the end, which represents the unobtainable TM55.
If the last item is changed to any item index number other than FF, the respective item name will appear at the end instead of the "Cancel" button, and some glitched data may appear below the last item. However, even if the last item is not "Cancel", the player will still be unable to buy it.
List of Poké Marts
This is the list of all Poké Marts found in the Generation I game data. The item index numbers are formatted in bold.
Poké Mart data locations
This is where the Poké Mart data block is stored in each Generation I game.
All Poké Marts
This is where the list of all Poké Marts is stored in each game.
(start of Viridian City Poké Mart)
(end of Indigo Plateau Poké Mart)
|Pokémon Red and Green||Japanese 1.0||0x0ED6||0x0F68||147|
|Pokémon Red and Blue||English, German, Italian||0x2442||0x24D5|
|Pokémon Yellow||Japanese 1.0||0x2368||0x23FD||150|
|Japanese 1.1, 1.2||0x236D||0x2402|
Current Poké Mart
This is the RAM location that stores data for the Poké Mart currently used by the player.
|Game||Language||Number of items||Item index numbers|
|All Generation I games||Japanese||0xCF62||0xCF63 onwards|
|Pokémon Red and Blue||English||0xCF7B||0xCF7C onwards|
Italian, and Spanish
|Pokémon Yellow||English||0xCF7A||0xCF7B onwards|
Italian, and Spanish
|Example: Vermilion City Poké Mart|
|—||06||04 13 0D 0E 0F 1E FF|
|This data structure article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games.|