Personality value: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m
m (some links)
Line 8: Line 8:
A Pokémon's [[gender]] is determined by the lowest eight digits (a byte) of ''p'' in binary form; essentially, <code>''p'' [[wp:modulo operation|%]] 256</code>. This value will, from here on out, be known as ''p<sub>gender</sub>''.
A Pokémon's [[gender]] is determined by the lowest eight digits (a byte) of ''p'' in binary form; essentially, <code>''p'' [[wp:modulo operation|%]] 256</code>. This value will, from here on out, be known as ''p<sub>gender</sub>''.


In a Pokémon species's [[Pokémon base stats data structure in the GBA|base stat structure]], there is a byte called the gender threshold with a value between <code>00000000</code> and <code>11111111</code>. For genderless Pokémon such as {{p|Magnemite}}, the value of this byte is <code>11111111</code>.  For female only Pokémon such as {{p|Nidoran♀}}, the value of this byte is <code>11111110</code>.  For male only Pokémon such as {{p|Nidoran♂}}, the value of this byte is <code>00000000</code>. Pokémon with ''both'' genders, occupy the rest of the spectrum.  For these Pokémon, if the value of ''p<sub>gender</sub>'' is greater than that of the base stat value, the Pokémon is male, otherwise it is female.
In a Pokémon species's [[Pokémon base stats data structure in the GBA|base stat structure]], there is a byte called the gender threshold with a value between <code>00000000</code> and <code>11111111</code>. For genderless Pokémon such as {{p|Magnemite}}, the value of this byte is <code>11111111</code>.  For female only Pokémon such as {{p|Nidoran♀}}, the value of this byte is <code>11111110</code>.  For male only Pokémon such as {{p|Nidoran♂}}, the value of this byte is <code>00000000</code>. Pokémon with ''both'' genders occupy the rest of the spectrum.  For these Pokémon, if the value of ''p<sub>gender</sub>'' is greater than that of the base stat value, the Pokémon is male, otherwise it is female.




55,887

edits

Navigation menu