Pokémon data structure (Generation I): Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{cleanup}}{{incomplete}} | {{cleanup}}{{incomplete}} | ||
== Notes == | |||
{| style="border: 1px solid #88a; background: #f8f8ff; padding: 0.5em; border-collapse: collapse; float: right; margin: 0 0 0.5em 0.5em;" cellspacing="1" cellpadding="2" | {| style="border: 1px solid #88a; background: #f8f8ff; padding: 0.5em; border-collapse: collapse; float: right; margin: 0 0 0.5em 0.5em;" cellspacing="1" cellpadding="2" | ||
|- | |- | ||
Line 64: | Line 67: | ||
| Special || word | | Special || word | ||
|} | |} | ||
Pokémon in [[Generation I]] games are all stored in the same 44-byte structure. | Pokémon in [[Generation I]] games are all stored in the same 44-byte structure. | ||
The trainer EO is stored in other memory address. | |||
=== Species === | |||
This value is 1 byte length, and is the Pokémon Species. | |||
The value for each Pokémon is listed in [[List of Pokémon by index number (GB)|this article]]. | |||
=== Remaining HP === | |||
This value is 2 bytes length. | |||
Is the current level of HP remaining for this Pokémon. The value must not be greater than the total HP. | |||
=== Status === | |||
This value is 1 byte length, and is the status of the Pokémon: | |||
0 = OK | |||
4 = Sleep | |||
8 = Poisson | |||
10 = Burn | |||
20 = Freezed | |||
40 = Paralysis | |||
=== OT ID === | |||
Is the ID of the trainer who catched the Pokémon. Is is different than ours, the Pokémon will gain extra experience. | |||
=== Experience === | |||
Is the total amount of experience gained. The level of the Pokémon should be concordant with the experience amount. Visit the [[experience]] article for more information about Pokémon grow types, and experience formulas. | |||
=== HP Up === | |||
This value informs about the amount of [[HP Up]] used in the Pokémon. Just because the number of HP Ups we can use with a Pokémon is limited. | |||
== Protein, Carbos, Iron === | |||
The same as HP Up. | |||
=== Total HP === | |||
Is the total HP the Pokémon can have when we visit a Pokémon Center. | |||
{{stub}} | {{stub}} | ||
{{data structure}} | {{data structure}} |