This is topic

To visit this topic, use this URL:

Posted by

I've gotten to the Stat Exp formula in my calc program, and it's giving me quite a headache.

This is the formula from Marcus Majarra's site:

SE = 64(50 x SP ÷ Level)2 - 16(50 x SP ÷ Level) + 2

It's supposed to calculate how many Stat Exp points (SE) I need to gain in order to grow a specific number of stat points (SP).

When I enter L100 and stat points 63.99999... (which is the maximum number of stat points one can gain at L100, or so I've read), I get a SE value of 3530.

That's strange, since according to the same guide, the maximum amount of Stat Exp is somewhere around 65000.

So, what am I doing wrong? I get an answer only about 1/20 of what it's supposed to be.

Posted by

Did you multiply by 2 instead of squaring the first term? I got roughly 65,026 from that formula (roughly, because I used 64 instead of 63.99999).

Posted by

Now it works. Thanks!

How was I going to know that 2 was supposed to be a ^2? I'm sure there's some way to write that in HTML...

Posted by

it would be interesting to see what formula the game actually uses to determine the points to add for stat exp. it couldn't use (200*sp^2)-(sp*level)=level^2*(se-2)/800, which is about as simple as it can be worked out without converting any of the variables to a real number. it would have to work two separate formulae and use the difference. well,

Posted by

Is there any chance it's something stupid like a bit rotation or somethin like that? Maybe we should look at the numbers and try squaring them, dividing them by each other, etc... and see if we find a number that stands out that might indicate what the formula is based on.

Posted by

It's a quadratic equation, in the form of ax˛+bx+c. In this case, a=64, b= -16, c=2, and x=50s/l, where l is the level and s is the stat points.

I tried fooling around with it, and got this formula, but it probably doesn't work:

Stat Points = Level * (2 + square root of(2 * Stat Experience - 7)) / 800.

Unnervingly, it doesn't work at all when the stat experience is below 4.

Posted by

quote:

Originally posted by oporaca:

Stat Points = Level * (2 + square root of(2 * Stat Experience - 7)) / 800.

Unnervingly, it doesn't work at all when the stat experience is below 4.

Thats because you can't have a root of a negative, unless you start using i and other imaginarys. But that would mean it wouldn't work when its lower than 3. Hm.

Posted by

The foprmula I use is the following:

Stat Pts = int((A*(1+SQRT(B-1)))/400)

A = Pokémon's current level.

B = Pokémon's current Stat Exp.

Posted by

This formula was posted here a while back by Necrosaro. He said that he personally worked it out by reversing the Stat Exp. Formula.

Here it is:

P=(L*((16+(SQRT(256*E-512)))/128)/50)

where P is the extra points you will gain, L is your Level, and E is the amount of Stat Experience you have.

Hope this helps someone.