電池切れと初期シード 5A0、ヒンバスのマス、マボロシじま、ケムッソ、タマゴ。
Ruby and Sapphire: dead battery, frozen randomness
Ruby and Sapphire set their seed at boot from the clock: minutes elapsed, folded to 16 bits. But when the clock reports an error — a power failure, i.e. a dead battery — the game replaces it with a fixed date: 1 January 2000, 00:00.
The sum always gives 1 day × 1440 minutes = 1440, which is 5A0 in hexadecimal. A cartridge with a dead battery therefore always boots with the same seed, and replays the same sequence of draws every time it is switched on.
Sources : pokeruby src/rtc.c : sRtcDummy {0, MONTH_JAN, 1}, RtcGetInfo (RTC_ERR_FLAG_MASK), RTC_ERR_POWER_FAILURE, RtcGetMinuteCount ; src/main.c : SeedRngWithRtc
Feebas: six tiles drawn from a trendy phrase
On Route 119, Feebas only bites on 6 of the 447 fishing tiles. Those six tiles are drawn by a small separate generator whose seed is the number attached to Dewford Town's trendy phrase. As long as that phrase stays, the six tiles do not move; when it changes, they are all redealt.
Tiles 1 to 3, unreachable at the top of the map, are redrawn. And even on a right tile, Feebas only has a one-in-two chance of being picked.
Sources : pokeemerald src/wild_encounter.c : CheckFeebas, FeebasSeedRng(dewfordTrends[0].rand), FeebasRandom (ISO_RANDOMIZE2), NUM_FEEBAS_SPOTS 6, NUM_FISHING_SPOTS 131 + 167 + 149
Mirage Island: a number of the day against your Pokémon
The game keeps a 32-bit number that it advances once a day. The island appears if the top 16 bits of that number equal the bottom 16 bits of the personality value of a Pokémon in the party. Each Pokémon thus has a 1 in 65,536 chance per day: with six Pokémon, six in 65,536. Only the party counts, not the boxes.
Sources : pokeemerald src/time_events.c : UpdateMirageRnd, IsMirageIslandPresent (GetMirageRnd() >> 16 == personality & 0xFFFF)
Wurmple: the evolution is written in advance
Silcoon or Cascoon? The game takes the top half of Wurmple's personality value and looks at its remainder when divided by 10: 0 to 4, Silcoon; 5 to 9, Cascoon. It is fixed at capture, and nothing can change it afterwards.
Sources : pokeemerald src/pokemon.c : GetEvolutionTargetSpecies (EVO_LEVEL_SILCOON : (personality >> 16) % 10 <= 4 ; EVO_LEVEL_CASCOON : > 4)
Emerald: two generators for one egg
When the Day Care prepares an egg in Emerald, the bottom half of the personality value comes from the main generator — the one that advances every frame — and the top half from a second generator, separate from the first.
With an Everstone the game redraws that pair up to 2400 times to find the parent's nature.
Sources : pokeemerald src/daycare.c : _TriggerPendingDaycareEgg ((Random2() << 16) | ((Random() % 0xfffe) + 1), natureTries <= 2400)
Pokémon built never to shine
For some opposing Pokémon, such as those in Secret Bases, the game draws a random Trainer ID and starts again as long as the combination would give a shiny. They can therefore never be one, whatever their personality value.
Sources : pokeemerald src/pokemon.c : CreateBoxMon (OT_ID_RANDOM_NO_SHINY : do { value = Random32(); } while (shinyValue < SHINY_ODDS))
Crystal: one shiny parent, a 1 in 64 chance
An egg gets random DVs, then inherits from one parent its Defense and the bottom three bits of Special.
If that parent is shiny, the egg already has the right Defense and nearly the right Special: it only lacks the last Special bit (one in two), a Speed of 10 (one in sixteen) and a valid Attack (one in two) — 1 in 64 instead of 1 in 8192.
The quiet flip side of the same rule: two Pokémon with the same Defense and the same three Special bits are judged too closely related and refuse to breed — which is the case for two shinies together.
Sources : pokecrystal engine/events/daycare.asm (.GotDVs : and $f / and $7) ; engine/pokemon/breeding.asm (.CheckDVs)
Crystal: the Day-Care's gift egg, shiny 14 times in 100
The egg handed out by the Day-Care Man in Crystal is drawn from a table of fourteen entries: seven species, each in a regular version and in one with shiny DVs. The shiny versions weigh 1, 3, 3, 2, 2, 2 and 1 out of 100 (Pichu, Cleffa, Igglybuff, Smoochum, Magby, Elekid, Tyrogue): 14% in total.
Sources : pokecrystal data/events/odd_eggs.asm : OddEggProbabilities, OddEggs (dn 2, 10, 10, 10 ; DVs)