47
edits
No edit summary |
m (→Species names: diplaying > displaying) |
||
Line 324: | Line 324: | ||
The names of all the Pokémon are stored in a simple list of 256 strings. In international versions, each entry is 10 bytes, while in Japanese versions, they are 5 bytes. If a name takes less than its full allotted length, it is terminated by <code>0x50</code>. | The names of all the Pokémon are stored in a simple list of 256 strings. In international versions, each entry is 10 bytes, while in Japanese versions, they are 5 bytes. If a name takes less than its full allotted length, it is terminated by <code>0x50</code>. | ||
The first name in the list is {{p|Bulbasaur}} while the last is [[Five question marks|?????]]. The game looks up a Pokémon's name by receiving its [[List of Pokémon by index number (Generation II)|index number]], decrementing it by 1, and then looking for that index in the list. So while Bulbasaur's index number is 1, the game will find Bulbasaur's name at index 0 in the list (the first entry). These names are used for a variety of things, such as naming wild Pokémon and | The first name in the list is {{p|Bulbasaur}} while the last is [[Five question marks|?????]]. The game looks up a Pokémon's name by receiving its [[List of Pokémon by index number (Generation II)|index number]], decrementing it by 1, and then looking for that index in the list. So while Bulbasaur's index number is 1, the game will find Bulbasaur's name at index 0 in the list (the first entry). These names are used for a variety of things, such as naming wild Pokémon and displaying the species name in the Pokédex and on summary screens. | ||
The following are ROM offsets for the start of the list in each game: | The following are ROM offsets for the start of the list in each game: |
edits