Experience: Difference between revisions

1,081 bytes added ,  3 May 2023
→‎Trivia: Something I found out after MUCH testing.
(It is specifically about language, not international trading. You can do a local trade (or even an in-game trade) and get the bonus, and you can do an international trade with the same language but not get the bonus.)
(→‎Trivia: Something I found out after MUCH testing.)
Line 1,812: Line 1,812:
** The first group's total experience at level n is equal to <math display="inline">\tfrac{3 n^3}{4} + 10n^2 - 30</math>. It requires 849970 experience to reach level 100.
** The first group's total experience at level n is equal to <math display="inline">\tfrac{3 n^3}{4} + 10n^2 - 30</math>. It requires 849970 experience to reach level 100.
** The second group's total experience at level n is equal to <math display="inline">\tfrac{3 n^3}{4} + 20n^2 - 70</math>. It requires 949930 experience to reach level 100.
** The second group's total experience at level n is equal to <math display="inline">\tfrac{3 n^3}{4} + 20n^2 - 70</math>. It requires 949930 experience to reach level 100.
* It is possible, with the scaled experience formula, to receive less experience points than expected. This is since, to apply the scaling factor, the game internally calculates a numerator, multiplies the base EXP (potentially itself modified by the Trainer battle bonus in Gen V) by it, then calculates a denominator and divides the result by it and rounds down, adding 1 after doing so. When multiplying by the numerator, if the result is greater than 4,294,967,295 (the highest value that can be stored in an unsigned four byte integer), it will overflow, since the operation only uses four bytes max. For instance, a level 84 {{p|Blissey}} will have the result overflow to a considerably lower value, so much that it will only give 54 experience points if knocked out by a level 84 Pokémon. This is only possible via hacks/modding, however; the highest value this result could be legitimately (against [[Nurse]] Carol's level 67 {{p|Blissey}} in {{g|Black 2 and White 2}} in [[Challenge Mode]]) is only just barely greater than 3 billion, not enough to trigger the overflow.


==See also==
==See also==