Personality value: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
→‎Shininess: now gives an example shininess calculation.
(you need to do a bitwise xor, not a boolean xor. Also, the final value must be less than eight.)
(→‎Shininess: now gives an example shininess calculation.)
Line 113: Line 113:


''E'' xor ''F'' <= 8 , then ''Shiny''
''E'' xor ''F'' <= 8 , then ''Shiny''
As an example, let's take a trainer whose Trainer ID is 24294 and whose Secret ID is 38834.
''ID<sub>Trainer</sub>'' = 24294 = 0101111011100110 in binary.
''ID<sub>Secret</sub>'' = 38834 = 1001011110110010 in binary.
This trainer encounters a pokemon whose personality value is 2814471828
''p'' = 2814471828 = 1010011111000001 0110111010010100 in binary.
''p1'' = 1010011111000001
''p2'' = 0110111010010100
The ''E'' value is 0101111011100110 xor 1001011110110010
''E'' = 1100100101010100
The ''F'' value is 1010011111000001 xor 0110111010010100
''F'' = 1100100101010101
''E'' xor ''F'' = 0000000000000001, which is less than eight.  Therefore, this pokemon is shiny.


==Spinda's spots==
==Spinda's spots==
13

edits

Navigation menu