# ID number research

## Recommended Posts

I'm not sure if this post belongs here or not, so please correct me if I'm wrong.

I ran into this recently and discovered that there was one guy who did research on this and even released an online tool to calculate which of the 8 variants you would get - http://www.pokebeach.com/forums/threads/i-need-some-help-for-a-d-p-avatar-calculator.15718/ - but it is not defunct, and he never published his equations anywhere. If I can get maybe two or three dozen ID numbers + genders + what option you have, I can likely figure out what the equation is and a make a replacement tool for this.

In Diamond/Pearl/Platinum, you just need to talk to the psychic dude in the pokemon center in Oreburgh City, and in HeartGold and SoulSilver, you need to talk to a dude near the top left of the pokemon center in Violet City.

I've heard that the calculations are different for games from different countries, for now I just want to focus on U.S. games, but if I can get a lot of samples for other country games, I'd be up for figuring those out too.

~

Also, I will probably make a seperate post later, but I have been wanting to ask - for each generation, what are all the different things that your ID number is used for by the game?

I know in R/S/E, it is used for the dude in the Mauville pokemon center, and your secret base trainer type (https://bulbapedia.bulbagarden.net/wiki/Old_guys and https://bulbapedia.bulbagarden.net/wiki/Secret_Base#Representative_Trainer_Class). But, what is everything else in all the other games?

##### Share on other sites

Here we go!

Gen 3

Spoiler

```
Ruby & Sapphire

Secret Base Trainer
Trainer ID & 255 % 5

Male
0 = Youngster
1 = Bug Catcher
2 = Rich Boy
3 = Camper
4 = Cooltrainer

Female
0 = Lass
1 = Student
3 = Picnicker
4 = Cooltrainer

Berry
Trainer ID % 5

0 = Figy Berry
1 = Wiki Berry
2 = Mago Berry
3 = Aguav Berry
4 = Iapapa Berry

Mauville Old Man
Trainer ID % 10 >> 1

0 = Bard
1 = Hipster
3 = Storyteller
4 = Giddy

FireRed & LeafGreen

Union Room Trainer
Trainer ID & 7

Male
0 = Cooltrainer
1 = Blackbelt
2 = Camper
3 = Youngster
4 = Psychic
5 = Bug Catcher
6 = Tamer
7 = Juggler

Female
0 = Cooltrainer
1 = Channeler
2 = Picnicker
3 = Lass
4 = Psychic
5 = Fighter Girl
6 = Pokémon Breeder
7 = Beauty

Emerald

Trainer ID % 6 >> 1

0 = "Quiz"
1 = "Favor"
2 = "Contest"```

Gen 4

Spoiler

```
Trainer ID & 7

Male
0 = School Kid - Bug Catcher - Ace Trainer - Roughneck
1 = Bug Cather - Rich Boy - Psychic - School Kid
2 = Ace Trainer - Roughneck - Ruin Maniac - Black Belt
3 = Roughneck - School Kid - Black Belt - Rich Boy
4 = Ruin Maniac - Bug Catcher - Ace Trainer - Psychic
5 = Black Belt - Ace Trainer - Psychic - School Kid
6 = Rich Boy - Roughneck - Ruin Maniac - Bug Catcher
7 = Psychic - Ruin Maniac - Black Belt - Rich Boy

Female
0 = Lass - Battle Girl - Beauty - Ace Trainer
1 = Battle Girl - Cowgirl - Lady - Lass
2 = Beauty - Ace Trainer - Idol - Socialite
3 = Ace Trainer - Lass - Socialite - Cowgirl
4 = Idol - Battle Girl - Beauty - Lady
5 = Socialite - Beauty - Lady - Lass
6 = Cowgirl - Ace Trainer - Idol - Battle Girl
7 = Lady - Idol - Socialite - Cowgirl```

Edited by ajxpk
• 1
• 1
• 1

##### Share on other sites

Wow, thank you! :0
(took a break for a minute now, but I'm back)
I'm very familiar with the modulo operator, but what do the "&" and ">>" operators mean?

On 1/15/2018 at 9:20 AM, ajxpk said:

Here we go!

Gen 3

Hide contents

```

Ruby & Sapphire

Secret Base Trainer
Trainer ID & 255 % 5

Male
0 = Youngster
1 = Bug Catcher
2 = Rich Boy
3 = Camper
4 = Cooltrainer

Female
0 = Lass
1 = Student
3 = Picnicker
4 = Cooltrainer

Berry
Trainer ID % 5

0 = Figy Berry
1 = Wiki Berry
2 = Mago Berry
3 = Aguav Berry
4 = Iapapa Berry

Mauville Old Man
Trainer ID % 10 >> 1

0 = Bard
1 = Hipster
3 = Storyteller
4 = Giddy

FireRed & LeafGreen

Union Room Trainer
Trainer ID & 7

Male
0 = Cooltrainer
1 = Blackbelt
2 = Camper
3 = Youngster
4 = Psychic
5 = Bug Catcher
6 = Tamer
7 = Juggler

Female
0 = Cooltrainer
1 = Channeler
2 = Picnicker
3 = Lass
4 = Psychic
5 = Fighter Girl
6 = Pokémon Breeder
7 = Beauty

Emerald

Trainer ID % 6 >> 1

0 = "Quiz"
1 = "Favor"
2 = "Contest"```

Gen 4

Hide contents

```

Trainer ID & 7

Male
0 = School Kid - Bug Catcher - Ace Trainer - Roughneck
1 = Bug Cather - Rich Boy - Psychic - School Kid
2 = Ace Trainer - Roughneck - Ruin Maniac - Black Belt
3 = Roughneck - School Kid - Black Belt - Rich Boy
4 = Ruin Maniac - Bug Catcher - Ace Trainer - Psychic
5 = Black Belt - Ace Trainer - Psychic - School Kid
6 = Rich Boy - Roughneck - Ruin Maniac - Bug Catcher
7 = Psychic - Ruin Maniac - Black Belt - Rich Boy

Female
0 = Lass - Battle Girl - Beauty - Ace Trainer
1 = Battle Girl - Cowgirl - Lady - Lass
2 = Beauty - Ace Trainer - Idol - Socialite
3 = Ace Trainer - Lass - Socialite - Cowgirl
4 = Idol - Battle Girl - Beauty - Lady
5 = Socialite - Beauty - Lady - Lass
6 = Cowgirl - Ace Trainer - Idol - Battle Girl
7 = Lady - Idol - Socialite - Cowgirl```

##### Share on other sites
35 minutes ago, Dmode2 said:

Wow, thank you! :0
(took a break for a minute now, but I'm back)
I'm very familiar with the modulo operator, but what do the "&" and ">>" operators mean?

• 1

##### Share on other sites
9 minutes ago, Kaphotics said:

Thanks!

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account