Personality value: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
no edit summary
(Spots are not centered.)
No edit summary
Line 1: Line 1:
A Pokémon's '''personality value''' is an {{wp|Signedness|unsigned}} {{wp|32-bit}} {{wp|Integer (computer science)|integer}} that is created when the Pokémon is first encountered; it is set as soon as the Pokémon appears in the wild, the Pokémon's egg is received from the [[daycare]] man or another [[NPC]], or the Pokémon itself is received from an [[NPC]]. As an unsigned 32-bit integer, its value can be anywhere between 0 and 4,294,967,295 inclusive, represented as a string of thirty-two 0's and thirty-two 1's in binary, respectively. This value was introduced with the [[Pokémon data structure in the GBA|Pokémon data structure]] overhaul that occurred at the start of [[Generation III]].
A Pokémon's '''personality value''' is an {{wp|Signedness|unsigned}} {{wp|32-bit}} {{wp|Integer (computer science)|integer}} that is created when the Pokémon is first encountered; it is set as soon as the Pokémon appears in the wild, the Pokémon's egg is received from the {{pkmn|daycare}} man or another [[Non-player character|NPC]], or the Pokémon itself is received from an NPC. As an unsigned 32-bit integer, its value can be anywhere between 0 and 4,294,967,295 inclusive, represented as a string of thirty-two 0's and thirty-two 1's in binary, respectively. This value was introduced with the [[Pokémon data structure in the GBA|Pokémon data structure]] overhaul that occurred at the start of [[Generation III]].


For each operation, the portion of the 32-bit value used will be indicated at the beginning of the section by highlighting, unless the full value is used. The integer's full value will be known as ''p'', other values will be declared as ''p<sub>x</sub>'', ''p<sub>y</sub>'', and so on. Much of this article will be discussing values in binary.
For each operation, the portion of the 32-bit value used will be indicated at the beginning of the section by highlighting, unless the full value is used. The integer's full value will be known as ''p'', other values will be declared as ''p<sub>x</sub>'', ''p<sub>y</sub>'', and so on. Much of this article will be discussing values in binary.
Line 214: Line 214:
The value in red will be known as ''p<sub>w</sub>''; it is essentially <code>''p'' % 32768</code>.
The value in red will be known as ''p<sub>w</sub>''; it is essentially <code>''p'' % 32768</code>.


{{p|Wurmple}}'s evolution does not depend on time of day, despite what many guides say. In fact, the evolution is determined by taking <code>''p<sub>w</sub>'' % 10</code>, then determining if the remainder is less than or greater than or equal to 5. If it is less than that, Wurmple will become a Silcoon, otherwise, it will become a Cascoon.
{{p|Wurmple}}'s evolution does not depend on time of day, despite what many guides say. In fact, the evolution is determined by taking <code>''p<sub>w</sub>'' % 10</code>, then determining if the remainder is less than or greater than or equal to 5. If it is less than that, Wurmple will become a {{p|Silcoon}}, otherwise, it will become a {{p|Cascoon}}.


<!--Any more personality value things?-->
<!--Any more personality value things?-->
13,937

edits

Navigation menu