Pokémon species data structure (Generation IV)

The Pokémon species data structure is a 44-byte structure, stored in the ROM of the Generation IV games for every Pokémon species, that determines most of the information inherent to the species, such as base stats, types, Egg Groups, and effort value yield. Level-up moves (including those known at level 1) and Evolutions are stored elsewhere. The Pokémon species' names are not part of this structure, but are instead stored elsewhere.

Notes

Offset Contents Size
0x00 Base HP byte
0x01 Base Attack byte
0x02 Base Defense byte
0x03 Base Speed byte
0x04 Base Sp. Attack byte
0x05 Base Sp. Defense byte
0x06 Type 1 byte
0x07 Type 2 byte
0x08 Catch rate byte
0x09 Base experience yield byte
0x0A Effort yield word
0x0C Wild held item 1 word
0x0E Wild held item 2 word
0x10 Gender ratio byte
0x11 Egg cycles byte
0x12 Base friendship byte
0x13 Growth rate byte
0x14 Egg group 1 byte
0x15 Egg group 2 byte
0x16 Ability 1 byte
0x17 Ability 2 byte
0x18 Safari Zone rate byte
0x19 Color and flip byte
0x1A Padding (always 0) word
0x1C-0x28 TM and HM flags 13 bytes
0x29 Padding (always 0) 3 bytes

Types

The types are associated with the following values. For a single-type Pokémon, both types are set to the same value.

Value Type Value Type Value Type
0 Normal 6 Bug 12 Grass
1 Fighting 7 Ghost 13 Electric
2 Flying 8 Steel 14 Psychic
3 Poison 9 ??? 15 Ice
4 Ground 10 Fire 16 Dragon
5 Rock 11 Water 17 Dark

Effort yield

Each stat is assigned two bits, which give how many effort values (0-3) the Pokémon yields in that stat when defeated. The last 4 bits of the word are unused and are always 0.

Bits Stat
0-1 HP
2-3 Attack
4-5 Defense
6-7 Speed
8-9 Special Attack
10-11 Special Defense

Wild held items

The item entries refer to items by their index number. The first item has a 50% chance of being held when the Pokémon is encountered in the wild, and the second has a 5% chance of being held. If both items are the same, the Pokémon always holds that item. If the first Pokémon in the player's party has Compound Eyes, these chances become 60% and 20%. Pokémon owned by Trainers never receive a held item from this data.

Gender ratio

Main article: Personality value → Gender

The gender ratio is expressed as a 1-byte threshold for the Pokémon to be male. If the species is not all male, all female, or gender unknown, this value is compared to the lowest byte of the Pokémon's personality value: the Pokémon is female if that byte is less than the threshold and male otherwise.

Gender threshold Gender ratio
Binary Decimal Male Female
11111111 255 Gender unknown
11111110 254 0.0% 100.0%
11100001 225 (unused) 12.5% 87.5%
10111111 191 25.0% 75.0%
01111111 127 50.0% 50.0%
00111111 63 75.0% 25.0%
00011111 31 87.5% 12.5%
00000000 0 100.0% 0.0%

Growth rate

The following values correspond to the different growth rates a Pokémon can have:

Value Growth rate Lv. 100 Exp
0 Medium Fast 1,000,000
1 Erratic 600,000
2 Fluctuating 1,640,000
3 Medium Slow 1,059,860
4 Fast 800,000
5 Slow 1,250,000

Egg groups

For a Pokémon in only one group, both are set to the same value. The following values correspond to the different Egg Groups a Pokémon can belong to:

Value Egg group Value Egg group Value Egg group
1 Monster 6 Fairy 11 Amorphous
2 Water 1 7 Grass 12 Water 2
3 Bug 8 Human-Like 13 Ditto
4 Flying 9 Water 3 14 Dragon
5 Field 10 Mineral 15 No Eggs Discovered

Safari Zone rate

This value determines the rate at which the Pokémon will flee when encountered in the Safari Zone. For Pokémon that do not appear in the Safari Zone, this value is 0.

Color and flip

Color is used in the Pokémon Storage System box thumbnails. The following values correspond to the different possible colors:

Value Color Value Color
0 Red 5 Brown
1 Blue 6 Purple
2 Yellow 7 Gray
3 Green 8 White
4 Black 9 Pink

"Flip" refers to whether the Pokémon's image is flipped when seen in the summary screen as opposed to when seen in the Pokédex or PC. This is determined by bit 7 (the most significant bit) of this field. For some Pokémon, such as Poliwag, Kingler, and Unown, this bit is set and the image is not flipped (the image is oriented the same in both places).

TMs

The TMs and HMs a Pokémon can learn are stored as a bit field, with one bit per move, ordered from the least significant bit of the first byte to the most significant bit of the last byte. The eight HMs are treated as TMs 93-100. The remaining 4 bits in the last byte are all 0.

For example, Charizard's TM and HM flags in Diamond, Pearl, and Platinum are 33 46 71 CE E4 5E 8E 16 09 A4 46 B2 03. TM n is stored in bit (n−1)mod8 of byte ⌊n−18⌋, where bit 0 is the least significant bit:

Byte Value Binary Bits set Moves
0 33 00110011 0, 1, 4, 5 TM01 (Focus Punch), TM02 (Dragon Claw), TM05 (Roar), TM06 (Toxic)
1 46 01000110 1, 2, 6 TM10 (Hidden Power), TM11 (Sunny Day), TM15 (Hyper Beam)
2 71 01110001 0, 4, 5, 6 TM17 (Protect), TM21 (Frustration), TM22 (Solar Beam), TM23 (Iron Tail)
3 CE 11001110 1, 2, 3, 6, 7 TM26 (Earthquake), TM27 (Return), TM28 (Dig), TM31 (Brick Break), TM32 (Double Team)
4 E4 11100100 2, 5, 6, 7 TM35 (Flamethrower), TM38 (Fire Blast), TM39 (Rock Tomb), TM40 (Aerial Ace)
5 5E 01011110 1, 2, 3, 4, 6 TM42 (Facade), TM43 (Secret Power), TM44 (Rest), TM45 (Attract), TM47 (Steel Wing)
6 8E 10001110 1, 2, 3, 7 TM50 (Overheat), TM51 (Roost), TM52 (Focus Blast), TM56 (Fling)
7 16 00010110 1, 2, 4 TM58 (Endure), TM59 (Dragon Pulse), TM61 (Will-O-Wisp)
8 09 00001001 0, 3 TM65 (Shadow Claw), TM68 (Giga Impact)
9 A4 10100100 2, 5, 7 TM75 (Swords Dance), TM78 (Captivate), TM80 (Rock Slide)
10 46 01000110 1, 2, 6 TM82 (Sleep Talk), TM83 (Natural Gift), TM87 (Swagger)
11 B2 10110010 1, 4, 5, 7 TM90 (Substitute), HM01 (Cut), HM02 (Fly), HM04 (Strength)
12 03 00000011 0, 1 HM05 (Defog), HM06 (Rock Smash)

In HeartGold and SoulSilver, HM05 is Whirlpool instead of Defog, so Charizard's last byte is 02.

Alternate forms

The entries for alternate forms are in the same file as the other species, after the entry for Arceus (index 493) and the entries for the Egg and Bad Egg (indices 494 and 495). The default form of a species uses its normal entry. For any other form, the game looks up the entry at the form's index below instead. Forms not listed here share their species' entry.

Index Entry Games
494 Egg Diamond, Pearl, Platinum, HeartGold, and SoulSilver
495 Bad Egg
496 Deoxys (Attack Forme)
497 Deoxys (Defense Forme)
498 Deoxys (Speed Forme)
499 Wormadam (Sandy Cloak)
500 Wormadam (Trash Cloak)
501 Giratina (Origin Forme) Platinum, HeartGold, and SoulSilver
502 Shaymin (Sky Forme)
503 Rotom (Heat Rotom)
504 Rotom (Wash Rotom)
505 Rotom (Frost Rotom)
506 Rotom (Fan Rotom)
507 Rotom (Mow Rotom)

The table therefore has 501 entries in Diamond and Pearl, and 508 in the other games. The entries for the Rotom forms are identical to Rotom's normal entry.

Fingerprint

The first entries of the table are shown below and can be used to locate it in a ROM. The first ten entries are the same in Diamond, Pearl, and Platinum, and differ in HeartGold and SoulSilver only in the last byte of four entries.

Diamond, Pearl, and Platinum

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ?????????? (used for unknown/glitch Pokémon)
2D 31 31 2D 41 41 0C 03 2D 40 00 01 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 20 07 35 84 08 1E 10 02 20 24 66 92 02 00 00 00 // BULBASAUR
3C 3E 3F 3C 50 50 0C 03 2D 8D 00 05 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 20 07 35 84 08 1E 10 02 20 24 66 92 02 00 00 00 // IVYSAUR
50 52 53 50 64 64 0C 03 2D D0 00 06 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 30 47 35 86 08 1E 10 02 28 24 66 92 0A 00 00 00 // VENUSAUR
27 34 2B 41 3C 32 0A 0A 2D 41 40 00 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 23 06 51 CC E4 1E 82 12 01 A4 46 92 02 00 00 00 // CHARMANDER
3A 40 3A 50 50 41 0A 0A 2D 8E 40 01 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 23 06 51 CC E4 1E 82 12 01 A4 46 92 02 00 00 00 // CHARMELEON
4E 54 4E 64 6D 55 0A 02 2D D1 00 03 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 33 46 71 CE E4 5E 8E 16 09 A4 46 B2 03 00 00 00 // CHARIZARD
2C 30 41 2B 32 40 0B 0B 2D 42 10 00 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 65 32 53 CC 40 1E C0 02 00 22 46 C2 06 00 00 00 // SQUIRTLE
3B 3F 50 3A 41 50 0B 0B 2D 8F 10 04 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 65 32 53 CC 40 1E C0 02 00 22 46 C2 06 00 00 00 // WARTORTLE
4F 53 64 4E 55 69 0B 0B 2D D2 00 0C 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 75 72 53 CE 40 1E C8 02 88 A2 46 C6 0E 00 00 00 // BLASTOISE
...

HeartGold and SoulSilver

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ?????????? (used for unknown/glitch Pokémon)
2D 31 31 2D 41 41 0C 03 2D 40 00 01 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 20 07 35 84 08 1E 10 02 20 24 66 92 02 00 00 00 // BULBASAUR
3C 3E 3F 3C 50 50 0C 03 2D 8D 00 05 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 20 07 35 84 08 1E 10 02 20 24 66 92 02 00 00 00 // IVYSAUR
50 52 53 50 64 64 0C 03 2D D0 00 06 00 00 00 00 1F 14 46 03 01 07 41 00 00 03 00 00 30 47 35 86 08 1E 10 02 28 24 66 92 0A 00 00 00 // VENUSAUR
27 34 2B 41 3C 32 0A 0A 2D 41 40 00 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 23 06 51 CC E4 1E 82 12 01 A4 46 92 02 00 00 00 // CHARMANDER
3A 40 3A 50 50 41 0A 0A 2D 8E 40 01 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 23 06 51 CC E4 1E 82 12 01 A4 46 92 02 00 00 00 // CHARMELEON
4E 54 4E 64 6D 55 0A 02 2D D1 00 03 00 00 00 00 1F 14 46 03 01 0E 42 00 00 00 00 00 33 46 71 CE E4 5E 8E 16 09 A4 46 B2 02 00 00 00 // CHARIZARD
2C 30 41 2B 32 40 0B 0B 2D 42 10 00 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 65 32 53 CC 40 1E C0 02 00 22 46 C2 07 00 00 00 // SQUIRTLE
3B 3F 50 3A 41 50 0B 0B 2D 8F 10 04 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 65 32 53 CC 40 1E C0 02 00 22 46 C2 07 00 00 00 // WARTORTLE
4F 53 64 4E 55 69 0B 0B 2D D2 00 0C 00 00 00 00 1F 14 46 03 01 02 43 00 00 01 00 00 75 72 53 CE 40 1E C8 02 88 A2 46 C6 0F 00 00 00 // BLASTOISE
...

Storage

The table is stored in a NARC archive in the file system of each of the Generation IV games, listed below. The following are the ROM offsets of the first data entry (Bulbasaur) in each release. The table begins with an all-zero entry for index 0, so each offset is 44 bytes after the start of the table. Platinum also contains the Diamond and Pearl table (poketool/personal/personal.narc), but does not use it.

Game File Language Offset
Diamond poketool/personal/personal.narc Japanese 0x01C6FA08
Japanese (Rev 5)
Japanese (Rev 6) 0x01C6FE08
Korean 0x01B01008
English 0x01C15A08
German 0x01C0EE08
French 0x01C02208
Italian 0x01BF5408
Spanish 0x01BE6E08
Pearl poketool/personal_pearl/personal.narc Japanese 0x01C6FA08
Japanese (Rev 5)
Japanese (Rev 6) 0x01C6FE08
Korean 0x01B01008
English 0x01C15A08
German 0x01C0EE08
French 0x01C02208
Italian 0x01BF5408
Spanish 0x01BE6E08
Platinum poketool/personal/pl_personal.narc Japanese 0x037FA240
Korean 0x033ED640
English (Europe) 0x0370AE40
English (USA) 0x0370B440
English (USA, Rev 1)
German 0x0374AE40
French 0x0371E240
Italian 0x036FEE40
Spanish 0x036E2240
HeartGold a/0/0/2 Japanese 0x012B3E40
Korean 0x011FF240
English 0x012B2840
German
French 0x012B2A40
Italian 0x012B2640
Spanish 0x012B2A40
SoulSilver a/0/0/2 Japanese 0x012B3E40
Korean 0x011FF240
English 0x012B2840
German
French 0x012B2A40
Italian 0x012B2640
Spanish

Related articles

Data structure in the Pokémon games
General Character encoding
Generation I Pokémon species • Pokémon • Poké Mart • Character encoding (Stadium) • Save
Generation II Pokémon species • Pokémon • Trainer • Character encoding (Stadium • Korean) • Save
Generation III Pokémon species (Evolution • Pokédex • Type chart)
Pokémon (substructures) • Move • Contest • Contest move • Item
Trainer Tower • Battle Frontier • Character encoding (GameCube) • Save
Generation IV Pokémon species (Evolution • Learnsets)
Pokémon • Save • Character encoding (Wii)
Generation V–present Character encoding
Generation VIII Save
TCG GB and GB2 Character encoding
This data structure article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games.