Experience: Difference between revisions

1,551 bytes added ,  5 January 2014
→‎Gain formula: Making the explanation cover more space, but much easier to parse. For Gen VI, I did a fairly low-level test and it seemed to work as I wrote (except I couldn't test O-Powers)
(removed statement that this is a quadratic function, checked wikipedia and quadratic is to 2nd degree, cubic is to 3rd degree)
(→‎Gain formula: Making the explanation cover more space, but much easier to parse. For Gen VI, I did a fairly low-level test and it seemed to work as I wrote (except I couldn't test O-Powers))
Line 1,534: Line 1,534:


===Gain formula===
===Gain formula===
{{incomplete|section|Check Gen VI. Make an image for Gen VI's formula. It should probably replace the Gen I-IV formula; some of the variables will just always be 1 like Lucky Egg in Gen I.<br>Reason 2: Check Gen I, ''completely'', too. It does weird things, esp. with Exp. All... See [[User:Tiddlywinks/Gen I Exp|data]]}}
[[File:ExpGainFormula.png|frame|Formula for experience gain from battle (Generation I to IV)]]
[[File:ExpGainFormula.png|frame|Formula for experience gain from battle (Generation I to IV)]]
[[File:Delta exp gen5.png|frame|Formula for experience gain from battle (Generation V)]]
[[File:Delta exp gen5.png|frame|Formula for experience gain from battle (Generation V)]]
Unlike the great variation in formulas among the six experience groups, there is only a single formula used to determine how much experience a Pokémon will gain from battle, to the right. In this formula:
Any Pokémon game only uses one formula to calculate a Pokémon's experience gain after a battle. Prior to [[Generation V]], this formula was basically the same, with small additions or changes between Generations. Generation V used a significantly different formula, though, scaling received experience depending on the difference in the levels of the opposing Pokémon and changing the divisor constant in the formula from 7 to 5. In general, this meant more experience for the winning Pokémon unless its level was lower than its opponent's. [[Generation VI]] switched back to using the old formula as its base, however, with a few of its own tweaks and additions.
*''a'' is equal to 1 if the fainted Pokémon is wild, and 1.5 if the fainted Pokémon is owned by a Trainer.
*''t'' is equal to 1 if the winning Pokémon's OT is its current owner, 1.5 if the Pokémon was gained in a domestic trade, and (from Generation IV onwards) 1.7 if the Pokémon was gained in an international trade.
*''b'' is the base experience yield of the fainted Pokémon's species, listed [[List of Pokémon by effort value yield|here]].
*''e'' is equal to 1.5 if the winning Pokémon is holding a [[Lucky Egg]], and 1 otherwise.
*''L'' is the [[level]] of the fainted Pokémon.
** In [[Generation V]], ''L<sub>p</sub>'' is the level of the victorious Pokémon.
*''s'' is the number of Pokémon that participated in the battle and have not fainted. If any Pokémon in the party is holding an [[Exp. Share]], ''s'' is equal to 2, and for the rest of the Pokémon, ''s'' is equal to twice the number of Pokémon that participated instead.
** If more than one Pokémon is holding an Exp. Share, ''s'' is equal to twice the number of Pokémon holding the Exp. Share for each Pokémon holding one.
*''p'' is equal to 1 if no [[Entralink#List of Pass Powers|Exp. Point Power]] is active, or else equal to the following depending on the power: Power ↓↓↓: 0.5; Power ↓↓: 0.66; Power ↓: 0.8; Power ↑: 1.2; Power ↑↑: 1.5; Power ↑↑↑, Power S, Power MAX: 2.


In [[Generation V]], the experience gain formula was revamped. The constant divisor of 7 was changed to 5, and a factor was added that took the battling Pokémon's level into account.
The formulas for Generations I-IV and for Generation V can be seen on the right. Generation VI's formula looks the same as the Generation I-IV formula, but further multiplied by factors p and f. Depending on the order of multiplication and where rounding down is done, these formulas may produce slightly different results than are seen in-game.


Also, a constant of 1 was added to each battle, presumably to prevent a defeated Pokémon from yielding no experience due to a very low ratio between levels.
The variables in these formulas evaluate as follows (presented in alphabetical order)...
*''a'' is equal to...
**1 if the fainted Pokémon is wild
**1.5 if the fainted Pokémon is owned by a Trainer
*''b'' is the base experience yield of the fainted Pokémon's species, values for the current Generation listed [[List of Pokémon by effort value yield|here]].
*''e'' is equal to...
**1.5 if the winning Pokémon is holding a {{DL|Experience-affecting item|Lucky Egg}}
**1 otherwise.
*''f'' is equal to...
**1.2 if the Pokémon has an [[Pokémon-Amie|Affection]] of two hearts or more
**1 otherwise
*''L'' is the [[level]] of the fainted Pokémon.
*''L<sub>p</sub>'' is the level of the victorious Pokémon.
*''p'' is equal to...
**1 if no Exp. Point Power ([[Entralink#List of Pass Powers|Pass Power]]<sup>Gen V</sup> or [[Player Search System#Exp. Point Power|O-Power]]<sup>Gen VI</sup>) is active
**If Exp. Point Power [x] is active...
***0.5 for ↓↓↓, 0.66 for ↓↓, 0.8 for ↓, 1.2 for ↑, 1.5 for ↑↑, or 2 for ↑↑↑, S, or MAX
*''s'' is equal to...
**In Generations II-V...
***If no Pokémon in the party is holding an {{DL|Experience-affecting item|Exp. Share}}...
****The number of Pokémon that participated in the battle and have not fainted
***If at least one Pokémon in the party is holding an {{DL|Experience-affecting item|Exp. Share}}...
****Twice the number of Pokémon holding an Exp. Share, ''when calculating the experience of a Pokémon holding Exp. Share''
****Twice the number of Pokémon that participated and have not fainted, ''when calculating the experience of a Pokémon not holding Exp. Share''
**In Generation VI...
***1, when calculating the experience of a Pokémon that participated in battle
***2, when calculating the experience of a Pokémon that did not participate in battle and if Exp. Share is turned on
*''t'' is equal to...
**1 if the winning Pokémon's current owner is its Original Trainer
**1.5 if the Pokémon was gained in a domestic trade
**''Generation IV+ only'': 1.7 if the Pokémon was gained in an international trade


====Example (Generation I to IV)====
====Example (Generation I to IV)====
An originally owned {{p|Skitty}} holding a [[Lucky Egg]] and an internationally traded {{p|Meowth}} have just defeated a Level 78 Trainer-owned {{p|Garchomp}}, with an originally owned {{p|Salamence}} in the winner's [[party]] holding an [[Exp. Share]].
An originally owned {{p|Skitty}} holding a {{DL|Experience-affecting item|Lucky Egg}} and an internationally traded {{p|Meowth}} have just defeated a Level 78 Trainer-owned {{p|Garchomp}}, with an originally owned {{p|Salamence}} in the winner's [[party]] holding an {{DL|Experience-affecting item|Exp. Share}}.


The base experience yield of a Garchomp is 218, meaning that a Level 78 Garchomp will normally yield 2429 experience points. Because the battle is a Trainer battle, this is multiplied by 1.5 to give 3643.
The base experience yield of a Garchomp is 218, meaning that a Level 78 Garchomp will normally yield 2429 experience points. Because the battle is a Trainer battle, this is multiplied by 1.5 to give 3643.