Personality value: Difference between revisions
(→Performance changes: Rewording it to make it more accessible) |
|||
Line 221: | Line 221: | ||
The day-to-day [[performance]] of a Pokémon, for the purposes of the [[Pokéathlon]], depends on the personality value as well as the day of the month. It also depends on nature, which is also calculated based on personality value. The five least significant digits govern, from least significant to most significant, Power, Stamina, Skill, Jump, and Speed. | The day-to-day [[performance]] of a Pokémon, for the purposes of the [[Pokéathlon]], depends on the personality value as well as the day of the month. It also depends on nature, which is also calculated based on personality value. The five least significant digits govern, from least significant to most significant, Power, Stamina, Skill, Jump, and Speed. | ||
The change in performance in a particular attribute is calculated | The change in performance in a particular attribute is calculated as the sum of the following factors: | ||
*'''The Day of Month Modifier''': This modifier depends on the day of the month and one particular digit of the personality value (determined based on the attribute in question). It is calculated as (((''Day'' + ''Attribute'' + 3) × (''Day'' - ''Attribute'' + 7) + ''Personality'') mod 10) × 2 - 9, where: | |||
** ''Attribute'' is 0 for Power, 1 for Stamina, 2 for Skill, 3 for Jump, and 4 for Speed | |||
** ''Personality'' is the relevant value of the particular digit | |||
*'''The Nature Modifier''': This modifier depends on the nature of the Pokémon. Each of the neutral natures raise one attribute by 10 points while lowering another by 10 points, while the other 20 natures each raise one attribute by 35 points while lowering another by 35 points, based on which [[stat]]s they normally raise and lower. | |||
*'''The Aprijuice Modifier''': This modifier depends on the [[Aprijuice]] applied to the Pokémon. The Pokémon receives 1.5× the flavor values in the attributes corresponding to the strongest and second-strongest flavors of the Aprijuice, an additional 10-point bonus in the strongest flavor of the Aprijuice, and a penalty to the attribute corresponding to the weakest flavor of the Aprijuice based on its mildness and the sum of the Aprijuice's two strongest flavors (see [[Apriblender]] for further details). | |||
Note that the Day of Month modifier is at most -9 and at most +9 (and only takes on odd values therein). Also as a result, the Day of Month modifier cycles every 10 days ('''exception''': for Power and Speed, the modifiers in effect for the first day of each month are different from those of Day 11, Day 21, and Day 31, though the latter three have the same modifiers). | |||
Also, since nature is also determined by the last two digits of the personality value, the nature of a Pokémon will constrain the Day of Month modifier in Power (and to a lesser extent, Stamina) for a Pokémon. For example, a Hardy Pokémon (last digit 0 or 5) will never get a +9 or a +7 from a Day of Month modifier in Power; if the last digit is 5 it furthermore entails that its best performance will be on the first day of each month, barring Aprijuice factors (as it has its sole +5 boost on the first day on each month). | |||
{| {{bluetable2}} | {| {{bluetable2}} |
Revision as of 18:14, 12 May 2011
A Pokémon's personality value is an unsigned 32-bit 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 overhaul that occurred at the start of Generation III, and is generated using the games' pseudorandom number generator.
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 px, py, and so on. Much of this article will be discussing values in binary.
Gender
00000000 00000000 00000000 00000000
A Pokémon's gender is determined by the lowest eight digits (a byte) of p in binary form; essentially, p % 256
. This value will, from here on out, be known as pgender.
In a Pokémon species's base stat structure, there is a byte called the gender threshold with a value between 00000000
and 11111111
. For genderless Pokémon such as Magnemite, the value of this byte is 11111111
. For female only Pokémon such as Nidoran♀, the value of this byte is 11111110
. For male only Pokémon such as Nidoran♂, the value of this byte is 00000000
. Pokémon with both genders occupy the rest of the spectrum. For these Pokémon, if the value of pgender is equal to or greater than that of the base stat value, the Pokémon is male, otherwise it is female.
Base stat value | Gender ratio | ||
---|---|---|---|
Binary | Decimal | Male | Female |
11111111
|
255 | Genderless | |
11111110
|
254 | 0% | 100% |
11011111
|
223 | 12.5% | 87.5% |
10111111
|
191 | 25% | 75% |
01111111
|
127 | 50% | 50% |
00111111
|
63 | 75% | 25% |
00011111
|
31 | 87.5% | 12.5% |
00000000
|
0 | 100% | 0% |
Ability
If p is even, that Pokémon has the first ability for its species. If it's odd, it has the second. If a species has only one ability while p is odd, it gets the only ability it can. Pokémon transferred from Generation III to Generation IV or Generation V that can get one of the new abilities will retain the ability they had in Generation III; however, if they are evolved and their personality value is odd, they will get the new ability upon evolution. For example, a Porygon that has the ability Trace is brought to a Generation IV game. If it then evolves into Porygon2, it may keep Trace (if p is even), or it may switch to the ability Download (if p is odd). The reason this happens is because although the ability is initially determined by the personality value, the ability is stored as a separate value in the Pokémon data, and alongside the IVs in Generation III. When the Pokémon evolves in Generation IV, the personality value is rechecked, and a new ability assigned.
Note that a separate bit governs whether a Pokémon has their normal abilities or hidden abilities in Generation V; the personality value of a Pokémon is always set to have its first ability in this case, so as to allow the inclusion of a second hidden ability in a future generation.
Nature
A Pokémon's nature is determined by p % 25
.
The number acquired as the remainder corresponds to the personality as follows:
p % 25 | Nature |
---|---|
0 | Hardy |
1 | Lonely |
2 | Brave |
3 | Adamant |
4 | Naughty |
5 | Bold |
6 | Docile |
7 | Relaxed |
8 | Impish |
9 | Lax |
10 | Timid |
11 | Hasty |
12 | Serious |
13 | Jolly |
14 | Naive |
15 | Modest |
16 | Mild |
17 | Quiet |
18 | Bashful |
19 | Rash |
20 | Calm |
21 | Gentle |
22 | Sassy |
23 | Careful |
24 | Quirky |
Shininess
00000000 00000000 00000000 00000000
- The red value will be represented as p1, while the blue value will be represented as p2.
Whether a Pokémon is Shiny or not depends on the values of the Trainer ID number, secret ID number, and personality value. There is an 8 in 65536 chance (0.012207% or 2-13) of a Pokémon being shiny (which simplifies to 1/8192).
Variables E and F are declared to hold the values that result.
A bitwise exclusive or (xor) operation (such as a xor b = c) is equivalent to saying "If each bit of a ≠ b, c is true." In other words, 11010111 xor 01101010 = 10111101. Each xor in the operation is a bitwise xor.
E = IDTrainer xor IDSecret
F = p1 xor p2
E xor F < 8 , then Shiny
Example
As an example, let's take a Trainer whose Trainer ID is 24294 and whose Secret ID is 38834.
IDTrainer = 24294 = 0101111011100110 in binary.
IDSecret = 38834 = 1001011110110010 in binary.
This Trainer encounters a Pokémon 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 Pokémon is shiny.
Spinda's spots
00000000 00000000 00000000 00000000
Spinda has four spots: two on its face, and one on each of its ears. Each of the four bytes represents the coordinates of the spot on Spinda's face or ears. The first four digits of each byte represents the x-coordinate of the top left of the spot when translated into decimal notation, while the last four represent the y-coordinate of the top left of the spot when translated into decimal. There are 4,294,967,296 different spot variations.
Unown's letter (from Gen. III)
00000000 00000000 00000000 00000000
pletter = 00000000
Unown's letter (ever since Generation III, for Generation II see individual values) is taken from the modulus of the combination of the least significant 2 bits of each byte in p. With A representing 0, and each letter thereafter representing the following number value (? as 26 and ! as 27), the letter can be determined by:
up = pletter % 28
Wurmple's evolution
00000000 00000000 00000000 00000000
The value in red will be known as pw; it is essentially p % 65536
.
Wurmple's evolution does not depend on time of day, despite what many guides say. In fact, the evolution is determined by taking pw % 10
. If the remainder is less than 5, Wurmple will become a Silcoon, and if it is greater than or equal to 5, it will become a Cascoon.
Performance changes
The day-to-day performance of a Pokémon, for the purposes of the Pokéathlon, depends on the personality value as well as the day of the month. It also depends on nature, which is also calculated based on personality value. The five least significant digits govern, from least significant to most significant, Power, Stamina, Skill, Jump, and Speed.
The change in performance in a particular attribute is calculated as the sum of the following factors:
- The Day of Month Modifier: This modifier depends on the day of the month and one particular digit of the personality value (determined based on the attribute in question). It is calculated as (((Day + Attribute + 3) × (Day - Attribute + 7) + Personality) mod 10) × 2 - 9, where:
- Attribute is 0 for Power, 1 for Stamina, 2 for Skill, 3 for Jump, and 4 for Speed
- Personality is the relevant value of the particular digit
- The Nature Modifier: This modifier depends on the nature of the Pokémon. Each of the neutral natures raise one attribute by 10 points while lowering another by 10 points, while the other 20 natures each raise one attribute by 35 points while lowering another by 35 points, based on which stats they normally raise and lower.
- The Aprijuice Modifier: This modifier depends on the Aprijuice applied to the Pokémon. The Pokémon receives 1.5× the flavor values in the attributes corresponding to the strongest and second-strongest flavors of the Aprijuice, an additional 10-point bonus in the strongest flavor of the Aprijuice, and a penalty to the attribute corresponding to the weakest flavor of the Aprijuice based on its mildness and the sum of the Aprijuice's two strongest flavors (see Apriblender for further details).
Note that the Day of Month modifier is at most -9 and at most +9 (and only takes on odd values therein). Also as a result, the Day of Month modifier cycles every 10 days (exception: for Power and Speed, the modifiers in effect for the first day of each month are different from those of Day 11, Day 21, and Day 31, though the latter three have the same modifiers).
Also, since nature is also determined by the last two digits of the personality value, the nature of a Pokémon will constrain the Day of Month modifier in Power (and to a lesser extent, Stamina) for a Pokémon. For example, a Hardy Pokémon (last digit 0 or 5) will never get a +9 or a +7 from a Day of Month modifier in Power; if the last digit is 5 it furthermore entails that its best performance will be on the first day of each month, barring Aprijuice factors (as it has its sole +5 boost on the first day on each month).
Attribute | Attribute Modifier | Personality Digit | Neutral Nature +10 | Neutral Nature -10 | Other Nature Stat |
---|---|---|---|---|---|
Power | 0 | Ones | Hardy | Bashful | Attack |
Stamina | 1 | Tens | Docile | Quirky | Defense |
Skill | 2 | Hundreds | Quirky | Serious | Sp. Def |
Jump | 3 | Thousands | Bashful | Docile | Sp. Atk |
Speed | 4 | Ten-thousands | Serious | Hardy | Speed |
The calculated value is then translated into a difference in stars as follows:
Stars | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 |
---|---|---|---|---|---|---|---|---|---|
Score | < -120 | -119 - -80 | -79 - -40 | -39 - -15 | -14 - 14 | 15 - 39 | 40 - 79 | 80 - 119 | > 120 |
Note that performance changes may not drop below the Pokémon's minimum performance rating, nor may it exceeds the Pokémon's maximum performance rating. Thus, for example, a Cradily may never improve or have its Speed rating degraded as its Speed attribute is fixed.
This game-related article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games. |