31,616
edits
mNo edit summary |
|||
Line 1: | Line 1: | ||
The '''Pokémon data structure''' in the [[Generation I]] games stores most information about the current state of a {{player}}'s [[caught Pokémon]]. It has a length of 44 bytes for Pokémon in the player's [[party]] and 33 bytes for Pokémon in boxes on [[Pokémon Storage System|Bill's PC]]. The information lost when depositing a Pokémon in Bill's PC is its [[level]], | The '''Pokémon data structure''' in the [[Generation I]] games stores most information about the current state of a {{player}}'s [[caught Pokémon]]. It has a length of 44 bytes for Pokémon in the player's [[party]] and 33 bytes for Pokémon in boxes on [[Pokémon Storage System|Bill's PC]]. The information lost when depositing a Pokémon in Bill's PC is its [[level]], [[HP]], {{stat|Attack}}, {{stat|Defense}}, {{stat|Speed}} and {{stat|Special}}; this allows the [[box trick]] to work by recalculating the lost information upon withdrawing the Pokémon again. | ||
==The structure== | ==The structure== | ||
Line 10: | Line 10: | ||
| [[#Species|0x00]] || [[List of Pokémon by index number (Generation I)|Index number of the Species]] || 1 byte | | [[#Species|0x00]] || [[List of Pokémon by index number (Generation I)|Index number of the Species]] || 1 byte | ||
|- | |- | ||
| [[#Remaining HP|0x01]] || Current | | [[#Remaining HP|0x01]] || Current [[HP]] || 2 bytes | ||
|- | |- | ||
| [[#Level|0x03]] || {{tt|Level|as represented while viewed from inside the PC}} || 1 byte | | [[#Level|0x03]] || {{tt|Level|as represented while viewed from inside the PC}} || 1 byte | ||
Line 34: | Line 34: | ||
| [[#Experience|0x0E]] || [[Experience|Experience points]] || 3 bytes | | [[#Experience|0x0E]] || [[Experience|Experience points]] || 3 bytes | ||
|- | |- | ||
| [[#Stat experience|0x11]] || | | [[#Stat experience|0x11]] || [[HP]] [[effort values|EV data]] || 2 bytes | ||
|- | |- | ||
| [[#Stat experience|0x13]] || {{stat|Attack}} EV data || 2 bytes | | [[#Stat experience|0x13]] || {{stat|Attack}} EV data || 2 bytes | ||
Line 46: | Line 46: | ||
| 0x1B || [[Individual values|IV data]] || {{tt|2 bytes|4 bits for each IV excluding HP}} | | 0x1B || [[Individual values|IV data]] || {{tt|2 bytes|4 bits for each IV excluding HP}} | ||
|- | |- | ||
| [[#PP|0x1D]] || Move 1's | | [[#PP|0x1D]] || Move 1's [[PP]] values || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}} | ||
|- | |- | ||
| [[#PP|0x1E]] || Move 2's PP values || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}} | | [[#PP|0x1E]] || Move 2's PP values || {{tt|1 byte|2 bits for applied PP Ups, 6 bits for current PP}} |