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

Line 11: Line 11:
| Remaining HP || word
| Remaining HP || word
|-
|-
| Level || byte
| Level?? (See left) || byte
|-
|-
| [[Status_ailment|Status]] || byte
| [[Status_ailment|Status]] || byte
Line 75: Line 75:


The trainer EO is stored in other memory address.
The trainer EO is stored in other memory address.
Pokémon stored in a PC box use a shortened form of this structure that is 33-bytes in length, ending after the PP data.
The Pokémon box data in Pokémon Yellow begins at 0xDA95 in memory (WRAM), and consists only of the currently open Pokemon box (this necessitates the need to save when switching open boxes). This box data is 660-bytes long (33-bytes * 20 pokemon).


=== Species ===
=== Species ===
Line 87: Line 90:


Is the current level of HP remaining for this Pokémon. The value must not be greater than the total HP.
Is the current level of HP remaining for this Pokémon. The value must not be greater than the total HP.
=== Level ===
1-byte in length. Though it appears to be the level of the Pokémon, it seems effectively redundant: Exists as a Pokémon's level when said Pokémon is stored in a PC box, yet is overwritten as part of the recalculation that takes place when the Pokémon is withdrawn. Thus, its purpose is currently unknown.


=== Status ===
=== Status ===
14

edits