This is topic Help with the stat points formula needed! in forum Research Lab at The Azure Heights Forum.

To visit this topic, use this URL:
https://www.math.miami.edu/~jam/azure/forum/buzz/ultimatebb.cgi?ubb=get_topic;f=1;t=001042

Posted by Lark84 (Member # 1186) on 09-27-2001, 02:38 PM:

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 oporaca (Member # 922) on 09-27-2001, 09:30 PM:

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 Lark84 (Member # 1186) on 09-28-2001, 05:47 AM:

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 spunman (Member # 1181) on 10-01-2001, 01:19 PM:

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, i think it would be interesting.

Posted by MK (Member # 1445) on 10-02-2001, 06:26 PM:

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 oporaca (Member # 922) on 10-02-2001, 09:09 PM:

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 Jaybee (Member # 1781) on 10-02-2001, 09:24 PM:

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 poccil (Member # 1457) on 10-03-2001, 06:53 AM:

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 mleo2003 (Member # 1618) on 10-03-2001, 02:26 PM:

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.

Karpe Diem