Character encoding (Generation III): Difference between revisions

→‎0xFD variables: Clarify variable contents in Emerald, add table of the actual values printed (per https://github.com/pret/pokeemerald/blob/master/charmap.txt#L339 )
m (Using tables with visible borders, to facilitate easier lookups (and make clearer where the boundaries of merged cells are))
(→‎0xFD variables: Clarify variable contents in Emerald, add table of the actual values printed (per https://github.com/pret/pokeemerald/blob/master/charmap.txt#L339 ))
Line 495: Line 495:


===0xFD variables===
===0xFD variables===
When 0xFD is followed by the bytes below, the following variables are printed.
When 0xFD is followed by one of the following bytes, it prints a text variables or version-dependent text. Version-dependent text is only used in Pokémon Ruby, Sapphire, and Emerald; in Pokémon Emerald, all of these values are the same as Pokémon Sapphire, except the version name.
 
;Text variables
*0x01: the player's name
*0x01: the player's name
*0x02, 0x03, or 0x04: whatever text has been assigned to one of three buffers using a variety of script commands
*0x02, 0x03, or 0x04: whatever text has been assigned to one of three buffers using a variety of script commands
*0x06: the rival's name
*0x06: the rival's name
*0x07: the game's name{{sup/3|RSE}}
 
*0x08: the name of the villainous team{{sup/3|RSE}}
;Version-dependent text
*0x09: the name of the non-villainous team{{sup/3|RSE}}
{| class="wikitable"
*0x0A: the name of the villainous team's leader{{sup/3|RSE}}
! rowspan=2 | Variable ID
*0x0B: the name of the non-villainous team's leader{{sup/3|RSE}}
! rowspan=2 | Description
*0x0C: the name of the villainous team's legendary Pokémon{{sup/3|RSE}}
! colspan=5 | Content
*0x0D: the name of the opposing legendary Pokémon{{sup/3|RSE}}
|-
! {{GameIcon|Ru}}
! {{GameIcon|Sa}}
! {{GameIcon|Em}}
|-
| 0x07 || the game's name || RUBY || SAPPHIRE || EMERALD
|-
| 0x08 || the name of the villainous team || MAGMA ||colspan=2| AQUA
|-
| 0x09 || the name of the non-villainous team || AQUA ||colspan=2| MAGMA
|-
| 0x0A || the name of the villainous team's leader || MAXIE ||colspan=2| ARCHIE
|-
| 0x0B || the name of the non-villainous team's leader || ARCHIE ||colspan=2| MAXIE
|-
| 0x0C || the name of the villainous team's Legendary Pokémon || GROUDON ||colspan=2| KYOGRE
|-
| 0x0D || the name of the opposing Legendary Pokémon || KYOGRE ||colspan=2| GROUDON
|}


==Trivia==
==Trivia==