This article is intended to be moved into one of Bulbapedia's main content spaces. Be mindful that it is still part of a personal userspace. Any content changes should be brought up on the talk page for this article.
Game of origin is a value in the Pokémon data structure that indicates the game a Pokémon was obtained in.
In Generation III, this value occupies 4 bits of a two-byte word. From Generation IV onward, it occupies a whole byte.
Pokémon caught in the wild, obtained as a gift or in-game trade, met in Entree Forest, or received from a Wonder Card have the game they were obtained in as their game of origin. Eggs have their game of origin set to the game in which they were obtained, not the game they were hatched. Shedinja retains the Nincada's game of origin.