Pokémon species data structure (Generation II): Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary |
(→Specs: Table) |
||
Line 5: | Line 5: | ||
Every [[Pokémon|Pokémon species]] in the [[Generation II]] {{pkmn|games}} has a 32-byte base stats structure stored in the game's ROM somewhere. It determines all information inherent to the species, such as base Defense, [[type]]s, [[catch rate]] and [[Egg Group]]s. | Every [[Pokémon|Pokémon species]] in the [[Generation II]] {{pkmn|games}} has a 32-byte base stats structure stored in the game's ROM somewhere. It determines all information inherent to the species, such as base Defense, [[type]]s, [[catch rate]] and [[Egg Group]]s. | ||
{| | {| class="roundy" style="width:auto; text-align:center; background: #ccf; border: 3px solid blue;" | ||
|- | |- | ||
! | ! '''Offset''' | ||
! | ! '''Contents''' | ||
! | ! '''Size''' | ||
|- | |- style="background:#F8F8FF" | ||
| 0x00 || [[List of Pokémon by Johto Pokédex number|Pokédex number]] || byte | | 0x00 || [[List of Pokémon by Johto Pokédex number|Pokédex number]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x01 || [[Base stats|Base HP]] || byte | | 0x01 || [[Base stats|Base HP]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x02 || Base Attack || byte | | 0x02 || Base Attack || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x03 || Base Defense || byte | | 0x03 || Base Defense || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x04 || Base Speed || byte | | 0x04 || Base Speed || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x05 || Base Sp. Attack || byte | | 0x05 || Base Sp. Attack || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x06 || Base Sp. Defense || byte | | 0x06 || Base Sp. Defense || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x07 || [[Type]] 1 || byte | | 0x07 || [[Type]] 1 || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x08 || Type 2 || byte | | 0x08 || Type 2 || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x09 || [[Catch rate]] || byte | | 0x09 || [[Catch rate]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0a || [[Experience|Base Exp. Yield]] || byte | | 0x0a || [[Experience|Base Exp. Yield]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0b || [[List of items by index number (Generation II)|Wild held item]] 1 || byte | | 0x0b || [[List of items by index number (Generation II)|Wild held item]] 1 || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0c || Wild held item 2 || byte | | 0x0c || Wild held item 2 || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0d || Gender ratio || byte | | 0x0d || Gender ratio || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0e || {{tt|Unknown|Always 0x64 (100)}} || byte | | 0x0e || {{tt|Unknown|Always 0x64 (100)}} || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x0f || [[Egg cycles]] || byte | | 0x0f || [[Egg cycles]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x10 || {{tt|Unknown|Always 0x05}} || byte | | 0x10 || {{tt|Unknown|Always 0x05}} || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x11 || Dimensions of frontsprite || byte | | 0x11 || Dimensions of frontsprite || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x12-0x15 || {{tt|Blank|Always 00 00 00 00}} || 4 bytes | | 0x12-0x15 || {{tt|Blank|Always 00 00 00 00}} || 4 bytes | ||
|- | |- style="background:#F8F8FF" | ||
| 0x16 || [[Experience|Growth rate]] || byte | | 0x16 || [[Experience|Growth rate]] || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x17 || [[Egg Group]]s || byte | | 0x17 || [[Egg Group]]s || byte | ||
|- | |- style="background:#F8F8FF" | ||
| 0x18-0x1f || TM and HM flags || 8 bytes | | 0x18-0x1f || TM and HM flags || 8 bytes | ||
|} | |} |