Shiny Pokémon: Difference between revisions

(1 / 8192) * 100 = 0,01220703125
(→‎Generations III and IV: - Reverted my previous mistake)
((1 / 8192) * 100 = 0,01220703125)
Line 31: Line 31:


===Generations III and IV===
===Generations III and IV===
In Generation III, most of the data structures were redone. As such, a Pokémon's shininess would no longer need to be linked to its stats due to incompatibilities between the previous generations. The determinant for shininess is instead a calculation based on the [[Trainer ID number]] of the player encountering it and the [[personality value#Shininess|personality value]] of the Pokémon. <!-- This needs to be verified. I thought it was the same as in Generation II.: -->The secret ID and trainer ID bytewords are first xored together, and then the first byteword of the personality value is xored with the second byteword of the personality value.  If the xor of these two results is less than eight, then the Pokémon is shiny.  This results in a [[Personality_value#Shininess|probability]] of 8 in 65536; simplified as 1/8192 (2<sup>-13</sup>, or approximately 0.00012207%), just as in Generation II.  Symbolically:
In Generation III, most of the data structures were redone. As such, a Pokémon's shininess would no longer need to be linked to its stats due to incompatibilities between the previous generations. The determinant for shininess is instead a calculation based on the [[Trainer ID number]] of the player encountering it and the [[personality value#Shininess|personality value]] of the Pokémon. <!-- This needs to be verified. I thought it was the same as in Generation II.: -->The secret ID and trainer ID bytewords are first xored together, and then the first byteword of the personality value is xored with the second byteword of the personality value.  If the xor of these two results is less than eight, then the Pokémon is shiny.  This results in a [[Personality_value#Shininess|probability]] of 8 in 65536; simplified as 1/8192 (2<sup>-13</sup>, or approximately 0.012207%), just as in Generation II.  Symbolically:


(Trainer ID) '''xor''' (Secret ID) = E
(Trainer ID) '''xor''' (Secret ID) = E
268

edits