Personality value: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m
→‎Shininess: Chance of shinyness
m (→‎Shininess: Chance of shinyness)
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.
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).


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

edits

Navigation menu