Game of origin

The game of origin is a value in the Pokémon data structure that indicates the game a Pokémon was originally obtained in. This value was introduced in Generation III. It determines the origin mark of the Pokémon.
==Assignment==
Pokémon caught in the or obtained as a or in-game trade have the game they were obtained in set as their game of origin. From Generation III to , s have their game of origin set to the game in which they were obtained, not the game they were hatched; from Generation V onward, Eggs have their game of origin set to the game in which they are hatched. How the game of origin is determined for Pokémon from Mystery Gifts varies, with some having a predetermined game of origin set by the Wonder Card and others using the recipient game as the game of origin. retains the 's game of origin upon evolution.
The Generation I and games do not track Pokémon's games of origin, so Pokémon transferred from these Virtual Console games record the game they were transferred from as their game of origin.
Uniquely, Pokémon originating from , , or that are transferred into are assigned the game of origin value for Pokémon Sword and the met location of "the Faraway place". The original game of origin value is restored if these Pokémon are deposited back into Pokémon HOME, but the original met location is permanently lost.
===Gift Pokémon from other games===
All core series games, as well as Pokémon Colosseum, Pokémon XD: Gale of Darkness, and Pokémon GO, have unique game of origin IDs. Pokémon received from other games determine their game of origin in different ways.
* Pokémon Colosseum Bonus Disc: Gift Pokémon from the Bonus Disc have Pokémon Ruby as their game of origin.https://projectpokemon.org/home/files/file/1694-ageto-celebi/
* Pokémon Channel: obtained from Pokémon Channel have Pokémon Ruby or Sapphire as their game of origin (chosen randomly).
* Pokémon Box Ruby & Sapphire: s obtained from Pokémon Box Ruby & Sapphire use the recipient game as their game of origin.
* My Pokémon Ranch: Pokémon traded by Hayley have Pokémon Diamond as their game of origin.https://projectpokemon.org/home/files/file/330-mew/https://projectpokemon.org/home/files/file/333-phione/
* Pokémon Dream Radar: Pokémon sent from Dream Radar have the game they were received in as their game of origin.https://projectpokemon.org/home/files/category/90-dream-radar/
* Pokémon Link: Pokémon sent to Pokémon X, Y, Omega Ruby, and Alpha Sapphire via the Pokémon Link feature (i.e. gift Pokémon obtained from Pokémon Bank or the Pokémon Omega Ruby and Pokémon Alpha Sapphire Special Demo Version) have the game they were received in as their game of origin.https://projectpokemon.org/home/files/file/1556-pokemon-bank-celebi-eng-pl6pk6/
* Pokémon HOME: The game of origin of Pokémon obtained as gifts in Pokémon HOME varies. Regardless of their game of origin, these Pokémon are displayed as being met in "Pokémon HOME" rather than their corresponding region.
** Gift Pokémon that debuted prior to have Pokémon Sword as their game of origin.https://projectpokemon.org/home/files/category/216-pok%C3%A9mon-home/
** Pokémon obtained as gifts in Pokémon HOME intended for have Pokémon Brilliant Diamond as their game of origin.
** Pokémon obtained as gifts in Pokémon HOME intended for have Pokémon Legends: Arceus as their game of origin.
Uniquely, in Pokémon Colosseum, the gift from Mt. Battle has Pokémon Sapphire as its game of origin instead of Pokémon Colosseum.https://projectpokemon.org/home/files/file/2900-mt-battle-present-room-mattle-ho-oh/
==Technical implementation==
In Generation III, this value occupies 4 s of a two- in the Pokémon data structure. From Generation IV onward, it occupies a whole byte.
==Possible values==
# 	Hex 	Game 	Originmark	Met location following transfer
0 	00 	unused 	 	a distant land
1 	01 	 	 	the Hoenn region
2 	02 	 	 	the Hoenn region
3 	03 	 	 	the Hoenn region
4 	04 	 	 	the Kanto region
5 	05 	 	 	the Kanto region
6 	06 	unused 	 	a distant land
7 	07 	 	 	the Johto region
8 	08 	 	 	the Johto region
9 	09 	unused 	 	a distant land
10 	0A 	 	 	the Sinnoh region
11 	0B 	 	 	the Sinnoh region
12 	0C 	 	 	the Sinnoh region
13 	0D 	unused 	 	a distant land
14 	0E 	unused 	 	a distant land
15 	0F 	& 	 	a distant land
16 	10 	unused 	 	a distant land
17 	11 	unused 	 	a distant land
18 	12 	unused 	 	a distant land
19 	13 	unused 	 	a distant land
20 	14 	 	 	the Unova region
21 	15 	 	 	the Unova region
22 	16 	 	 	the Unova region
23 	17 	 	 	the Unova region
24 	18 	 	 	the Kalos region
25 	19 	 	 	the Kalos region
26 	1A 	 	 	the Hoenn region
27 	1B 	 	 	the Hoenn region
28 	1C 	unused 	 	the Kalos region
29 	1D 	unused 	 	the Kalos region
30 	1E 	 	 	the Alola region
31 	1F 	 	 	the Alola region
32 	20 	 	 	the Alola region
33 	21 	 	 	the Alola region
34 	22 	 	 	Pokémon GO
35 	23 	 	 	the Kanto region in the good old daysthe Kanto region. How nostalgic!Gen onward
36 	24 	or 	 	the Kanto region in the good old daysthe Kanto region. How nostalgic!Gen onward
37 	25 	(Japanese)	 	the Kanto region in the good old daysthe Kanto region. How nostalgic!Gen onward
38 	26 	 	 	the Kanto region in the good old daysthe Kanto region. How nostalgic!Gen onward
39 	27 	 	 	the Johto region in the good old daysthe Johto region. How nostalgic!Gen onward
40 	28 	 	 	the Johto region in the good old daysthe Johto region. How nostalgic!Gen onward
41 	29 	 	 	the Johto region in the good old daysthe Johto region. How nostalgic!Gen onward
42 	2A 	 	 	the Kanto region
43 	2B 	 	 	the Kanto region
44 	2C 	 	 	the Galar region
45 	2D 	 	 	the Galar region
46 	2E 	 	 	Pokémon HOME
47 	2F 	 	 	the Hisui regionthe Sinnoh region of oldthe Faraway place
48 	30 	 	 	the Sinnoh regionthe Sinnoh region made newthe Faraway place
49 	31 	 	 	the Sinnoh regionthe Sinnoh region made newthe Faraway place
50 	32 	 	 	the Paldea regionthe Faraway placea distant land
51 	33 	 	 	the Paldea regionthe Faraway placea distant land
52...255	34...FF	unused 	 	a distant land
==See also==
* Language of origin
==References==
Category:Game mechanics
it:Gioco di origine
ja:出身ゲーム