Luck manipulation: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
>Torchickens
Line 10: Line 10:
Two pseudorandom number generators exist in Pokémon Diamond and Pearl.
Two pseudorandom number generators exist in Pokémon Diamond and Pearl.


#The first pseudorandom number generator manages the encryption of Pokémon data in the save file (also known as the hidden ID number), the generation of the Personality Value, the Individual Values of a wild Pokémon, the species of wild Pokémon when encountered in a particular area and for determining the lottery number.
#The first pseudorandom number generator manages the encryption of Pokémon data in the save file (also known as the hidden ID number), the generation of the Personality Value, the Individual Values of a wild Pokémon, the species of wild Pokémon when encountered in a particular area and for determining the lottery number.<br /><br />Before the pseudorandom number generator is used the game will use generate a 'random' number based on the value of a [[qword]] (known as the random seed or 'seed state'). The seed can range from any value between 1 and 4294967295 and is usually generated after the player chooses 'Continue' on the title screen, except in Pokémon Emerald. The random seed changes depending on variables which are 'almost random', such the game clock time or the amount of recent coin tosses. To determine a 'random' number the game will then use the algorithm (0x41C64E6D * Seed) + 0x6073, where 0x41C64E6D is the integer 1103515245 and where 0x6073 is the integer 24691.


:Before the pseudorandom number generator is used the game will use generate a 'random' number based on the product of the values of eight bytes (known as the random seed or 'seed state'). The seed is the product of eight bytes and can range from any value between 1 and 4294967295. This number is usually generated after the player chooses 'Continue' on the title screen or will depend on the values of previous in-game variables. To determine a 'random' number the game will then use the algorithm (0x41C64E6D * Seed) + 0x6073, where 0x41C64E6D is the integer 1103515245 and where 0x6073 is the integer 24691.
2. The second pseudorandom number generator creates a value, determining the species of a Pokémon swarm, the species of Pokémon found in the telescopes within the Great Marsh and the Pokémon found in the Trophy Garden. The algorithm specifically ensures that Mystery Gift Pokémon and a Manaphy hatched from an Egg from Pokémon Ranger is not shiny.<br /><br /> The second pseudorandom number generator instead uses the algorithm (0x6C078965 * Seed) + 0x1, where 0x6C078965 is the integer 1822919013 and 0x1 is the integer 1.

2. The second pseudorandom number generator creates a value ensuring that the Manaphy Egg obtained from Pokémon Ranger does not contain a shiny Manaphy. It also determines the species of a Pokémon swarm, the species of Pokémon found in the telescopes within the Great Marsh, the Pokémon found in the Trophy Garden and ensures that the Pokémon obtained from Mystery Gift cards are not shiny.

:The second pseudorandom number generator instead uses the algorithm (0x6C078965 * Seed) + 0x1, where 0x6C078965 is the integer 1822919013 and 0x1 is the integer 1.


==A glitch in the pseudorandom number generator process of Pokémon Emerald and Pokémon Platinum==
==A glitch in the pseudorandom number generator process of Pokémon Emerald and Pokémon Platinum==