Talk:Experience: Difference between revisions

Line 1,852: Line 1,852:
can we get a detailed example of this please? {{unsigned|DJLO}}
can we get a detailed example of this please? {{unsigned|DJLO}}
:The medium-slow growth algorithm itself is 1.2L^3 - 15L^2 + 100L - 140. This is applied to {{p|Mew}} and all 3-stage evolutionary Pokémon except {{p|Dragonite}}, {{p|Butterfree}} and {{p|Beedrill}}. Substitute L for anything greater than 1 like 2 and the equation will suffice i.e. this would give 9.6 which floors down to 9 total experience for a level 2 medium-slow growth Pokémon. If you use 1 or 0 however you get a negative result, e.g. replacing L with level 1 gives -53.8 experience which floors down to -53. The main problem is that Pokémon experience is an unsigned integer; this means that negative numbers are essentially taken as a positive (w^X)-y value [where w^X is the highest value possible; {at least 2^8} and -y is the negative integer]. Pokémon experience is stored in three 8-bit bytes ((2^8)^3) so for a [[Mew Trick]]ed level 1 Pokémon with no experience we can use the analogy that it has ((2^8)^3)- 53 experience which is 16,777,109. Since 256^3 (16,777,216) is essentially the 'largest value' in this case, if this Pokémon got 54 experience it would revert back to a total experience of 0, though gaining less than 54 experience would cause the game to recalculate what level (very high) the Pokémon should be after a battle ends or the [[box trick]] is used. Since it is way over the total experience required for level 100 by far the level 100 cap comes in and makes the Pokémon level 100. --[[User:Chickasaurus|Chickasaurus]] 21:00, 11 January 2011 (UTC)
:The medium-slow growth algorithm itself is 1.2L^3 - 15L^2 + 100L - 140. This is applied to {{p|Mew}} and all 3-stage evolutionary Pokémon except {{p|Dragonite}}, {{p|Butterfree}} and {{p|Beedrill}}. Substitute L for anything greater than 1 like 2 and the equation will suffice i.e. this would give 9.6 which floors down to 9 total experience for a level 2 medium-slow growth Pokémon. If you use 1 or 0 however you get a negative result, e.g. replacing L with level 1 gives -53.8 experience which floors down to -53. The main problem is that Pokémon experience is an unsigned integer; this means that negative numbers are essentially taken as a positive (w^X)-y value [where w^X is the highest value possible; {at least 2^8} and -y is the negative integer]. Pokémon experience is stored in three 8-bit bytes ((2^8)^3) so for a [[Mew Trick]]ed level 1 Pokémon with no experience we can use the analogy that it has ((2^8)^3)- 53 experience which is 16,777,109. Since 256^3 (16,777,216) is essentially the 'largest value' in this case, if this Pokémon got 54 experience it would revert back to a total experience of 0, though gaining less than 54 experience would cause the game to recalculate what level (very high) the Pokémon should be after a battle ends or the [[box trick]] is used. Since it is way over the total experience required for level 100 by far the level 100 cap comes in and makes the Pokémon level 100. --[[User:Chickasaurus|Chickasaurus]] 21:00, 11 January 2011 (UTC)
::It is explained in depth in the article itself, no? [[User:Ztobor|Ztobor]] 19:04, 20 January 2011 (UTC)
659

edits