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

No edit summary
Line 10: Line 10:
! style="text-align: center; background: #ccf;" | '''Size'''
! style="text-align: center; background: #ccf;" | '''Size'''
|-
|-
| [[#Species|0x00]] || [[List of Pokémon by index number (Generation I)|Index number of species]] || Byte
| [[#Species|0x00]] || [[List of Pokémon by index number (Generation I)|Index number of the Species]] || 1 byte
|-
|-
| [[#Remaining HP|0x01]] || Remaining HP || {{tt|Word|2 bytes, with Remaining HP / 256 stored first}}
| [[#Remaining HP|0x01]] || Remaining HP || 2 bytes
|-
|-
| [[#Level|0x03]] || Level? || Byte
| [[#Level|0x03]] || {{tt|Level|as represented while viewed from inside the PC}} || 1 byte
|-
|-
| [[#Status ailments|0x04]] || [[Status ailment]]s || Byte
| [[#Status ailments|0x04]] || [[Status ailment]]s || 1 byte
|-
|-
| [[#Type|0x05]] || [[Elemental type|Type 1]] || Byte
| [[#Type|0x05]] || [[Elemental type|Type 1]] || 1 byte
|-
|-
| [[#Type|0x06]] || Type 2 || Byte
| [[#Type|0x06]] || Type 2 || 1 byte
|-
|-
| [[#Catch rate/Held item|0x07]] || [[Catch rate]]/[[Held item]] || Byte
| [[#Catch rate/Held item|0x07]] || [[Catch rate]]/[[Held item]] || 1 byte
|-
|-
| 0x08 || [[List of moves#Generation I|Index number of first move]] || Byte
| 0x08 || [[List of moves#Generation I|Index number of move 1]] || 1 byte
|-
|-
| 0x09 || Index number of second move || Byte
| 0x09 || Index number of move 2 || 1 byte
|-
|-
| 0x0A || Index number of third move || Byte
| 0x0A || Index number of move 3 || 1 byte
|-
|-
| 0x0B || Index number of fourth move || Byte
| 0x0B || Index number of move 4 || 1 byte
|-
|-
| 0x0C || [[Trainer ID number|Original Trainer ID number]] || {{tt|Word|2 bytes, with Trainer ID number / 256 stored first}}
| 0x0C || [[Trainer ID number|Original Trainer ID number]] || 2 bytes
|-
|-
| [[#Experience|0x0E]] || [[Experience]] || {{tt|3 bytes|Experience / 65536, then Experience / 256 mod 256, then Experience mod 256}}
| [[#Experience|0x0E]] || [[Experience]] || 3 bytes
|-
|-
| [[#Stat experience|0x11]] || {{stat|HP}} [[stat experience]] || {{tt|Word|2 bytes, with HP stat experience / 256 stored first}}
| [[#Stat experience|0x11]] || {{stat|HP}} [[stat experience]] || 2 bytes
|-
|-
| [[#Stat experience|0x13]] || {{stat|Attack}} stat experience || {{tt|Word|2 bytes, with Attack stat experience / 256 stored first}}
| [[#Stat experience|0x13]] || {{stat|Attack}} stat experience || 2 bytes
|-
|-
| [[#Stat experience|0x15]] || {{stat|Defense}} stat experience || {{tt|Word|2 bytes, with Defense stat experience / 256 stored first}}
| [[#Stat experience|0x15]] || {{stat|Defense}} stat experience || 2 bytes
|-
|-
| [[#Stat experience|0x17]] || {{stat|Speed}} stat experience || {{tt|Word|2 bytes, with Speed stat experience / 256 stored first}}
| [[#Stat experience|0x17]] || {{stat|Speed}} stat experience || 2 bytes
|-
|-
| [[#Stat experience|0x19]] || {{stat|Special statistic|Special}} stat experience || {{tt|Word|2 bytes, with Special stat experience / 256 stored first}}
| [[#Stat experience|0x19]] || {{stat|Special statistic|Special}} stat experience || 2 bytes
|-
|-
| 0x1B || [[Individual values]] || {{tt|Word|4 bits for each IV excluding HP}}
| 0x1B || [[Individual values]] || {{tt|2 bytes|4 bits for each IV excluding HP}}
|-
|-
| [[#PP|0x1D]] || {{PP}} of first move || {{tt|Byte|6 bits for current PP, 2 bits for applied PP Ups}}
| [[#PP|0x1D]] || {{PP}} of first move || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}}
|-
|-
| [[#PP|0x1E]] || {{PP}} of second move || {{tt|Byte|6 bits for current PP, 2 bits for applied PP Ups}}
| [[#PP|0x1E]] || {{PP}} of second move || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}}
|-
|-
| [[#PP|0x1F]] || {{PP}} of third move || {{tt|Byte|6 bits for current PP, 2 bits for applied PP Ups}}
| [[#PP|0x1F]] || {{PP}} of third move || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}}
|-
|-
| [[#PP|0x20]] || {{PP}} of fourth move || {{tt|Byte|6 bits for current PP, 2 bits for applied PP Ups}}
| [[#PP|0x20]] || {{PP}} of fourth move || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}}
|-
|-
| 0x21 || [[Level]] || Byte
| 0x21 || [[Level]] || 1 byte
|-
|-
| [[#Maximum HP|0x22]] || Maximum HP || {{tt|Word|2 bytes, with Maximum HP / 256 stored first}}
| [[#Maximum HP|0x22]] || Maximum HP || 2 bytes
|-
|-
| [[#Attack, Defense, Speed, and Special|0x24]] || Attack || {{tt|Word|2 bytes, with Maximum HP / 256 stored first}}
| [[#Attack, Defense, Speed, and Special|0x24]] || Attack || 2 bytes
|-
|-
| [[#Attack, Defense, Speed, and Special|0x26]] || Defense || {{tt|Word|2 bytes, with Maximum HP / 256 stored first}}
| [[#Attack, Defense, Speed, and Special|0x26]] || Defense || 2 bytes
|-
|-
| [[#Attack, Defense, Speed, and Special|0x28]] || Speed || {{tt|Word|2 bytes, with Maximum HP / 256 stored first}}
| [[#Attack, Defense, Speed, and Special|0x28]] || Speed || 2 bytes
|-
|-
| [[#Attack, Defense, Speed, and Special|0x2A]] || Special || {{tt|Word|2 bytes, with Maximum HP / 256 stored first}}
| [[#Attack, Defense, Speed, and Special|0x2A]] || Special || 2 bytes
|}
|}


166

edits