Personality value: Difference between revisions

No edit summary
Line 156: Line 156:
:The <span style="background:#FF9999">red value</span> will be represented as ''p<sub>1</sub>'', while the <span style="background:#9999FF">blue value</span> will be represented as ''p<sub>2</sub>''.
:The <span style="background:#FF9999">red value</span> will be represented as ''p<sub>1</sub>'', while the <span style="background:#9999FF">blue value</span> will be represented as ''p<sub>2</sub>''.


Whether a Pokémon is {{shiny2}} or not depends on the values of the [[Trainer ID number]], [[secret ID number]], and personality value. There is a [[Alternate_coloration#Generations_III_and_IV|8/65536 chance]] (0.0001220703125% or 2<sup>-10</sup>) of a Pokémon being shiny (which simplifies to 1/8192).
Whether a Pokémon is {{shiny2}} or not depends on the values of the [[Trainer ID number]], [[secret ID number]], and personality value. There is a [[Alternate_coloration#Generations_III_and_IV|8 in 65536 chance]] (0.0001220852154% or about 2<sup>-13</sup>) of a Pokémon being shiny (which roughly simplifies to 1/8191).


Variables ''E'' and ''F'' are declared to hold the values that result.
Variables ''E'' and ''F'' are declared to hold the values that result.
33

edits