Pokémon data structure (Generation III): Difference between revisions

Line 60: Line 60:
The language of the game the Pokémon comes from. [[Pokémon Egg|Eggs]] have this value set to <code>0x0601</code>. In international versions, the language value determines which character set is used when displaying the Pokémon's name and OT name. Any Pokémon with a language value of <code>0x0601</code> will, in international versions, be named the game's regional variant of "EGG", ignoring the nickname field.
The language of the game the Pokémon comes from. [[Pokémon Egg|Eggs]] have this value set to <code>0x0601</code>. In international versions, the language value determines which character set is used when displaying the Pokémon's name and OT name. Any Pokémon with a language value of <code>0x0601</code> will, in international versions, be named the game's regional variant of "EGG", ignoring the nickname field.


In Japanese versions, the language value is entirely disregarded. Names always use the nickname bytes decoded with the Japanese character set.
In Japanese versions, the language value is entirely disregarded. Names always use the nickname bytes decoded with the Japanese character set. This causes issues such as the nickname and OT name being truncated to five characters, and {{wp|mojibake}} (for example, if the {{DL|In-game trade|Pokémon FireRed and LeafGreen|in-game trade}} {{p|Seel}} from Spanish {{2v2|FireRed|LeafGreen}}, whose nickname is normally SEELÍN, is traded to a Japanese game, then its nickname is displayed as SEELコ).


For Pokémon not in Eggs, the valid values are:
For Pokémon not in Eggs, the valid values are: