The Azure Heights Forum


Post New Topic  New Poll  Post A Reply
my profile | search | faq | forum home
  next oldest topic   next newest topic
» The Azure Heights Forum   » Main Campus   » Research Lab   » Stat Formula Decimal Findings

UBBFriend: Email this page to someone!    
Author Topic: Stat Formula Decimal Findings
mleo2003
Farting Nudist
Member # 1618

Member Rated:
posted 12-05-2001 06:41 PM      Profile for mleo2003   Author's Homepage     Send New Private Message      Edit/Delete Post  Reply With Quote 
I was working on my calculator in Algebra 2 today when i noticed something. I could take the Wild Stat Formula and add it's result to the Stat Point Formula's result so I would get this result:

Wild Stat Result + Stat Point Result = Max Stat

However, someone here (spunman, I believe) took the Stat Point formula and figured out where the integral functions should apply. For reference, here are the formula's

Wild Stat = (int( Level * ( BaseStat + DV ) / 50 ) + 5)
This works out fine.

Stat Points = int(Level * int(( 16 + int(Sqrt(256 * Stat Exp - 512))) / 128) / 50 )
This, on the other hand, will give 62 with 65025 Stat Experience, which should yield 63.9999. I have found that this is due to the integral funtions.

For example, a max stat Mew (for simplicity sake, I will use his stats) at Level 100 has a 298 in everything besides HP. Here is how the two formula's above work it out, though:

(int(100 * (100 + 15) / 50) + 5) + int(100 * int((16 + int(sqrt(256 * 65025 - 512))) / 128) / 50)

(int(100 * 115 / 50) + 5) + int(100 * int((16 + int(Sqrt(1625625 - 512))) / 128) / 50)

(int(11500 / 50) + 5) + int(100 * int((16 + int(Sqrt(1625113))) / 128) / 50)

(230 + 5) + int(100 * int((16 + 4079) / 128) / 50)
235 + int(100 * int(4095 / 128) / 50)
235 + int(100 * 31 / 50)
235 + int(3100 / 50)
235 + 62
297, which is one point short of max.

If you take the integral functions out of the formula's above, and only apply one integral function on the final result, you obtain 298. Apparently, the game actually uses the decimal results in the Stat Calculations in order to give you the most boost.

So, in conclusion, the game actually doesn't have many integral functions when it comes to stat calculation. I believe, through testing, that only 2 int's exist in the above formula: the one in the Wild Stat formula and the outermost int in the Stat Point formula.

That's about it. Any other ideas as to why this is, I would love to here them.

- - - - -
When life gives you lemons...

Throw them back!!!


From: Forest, Mississippi | Registered: Mar 2001  |  IP: Logged
NickWhiz1
Farting Nudist
Member # 30

Member Rated:
posted 12-07-2001 10:16 PM      Profile for NickWhiz1   Author's Homepage   Email NickWhiz1   Send New Private Message      Edit/Delete Post  Reply With Quote 

Oh, I see! Oh wait, no, I don't.



- - - - -
"Young love, with horns!"
-Toonami review of Ico (PS2)

[Rockzilla] Remember now, excuses are like asses, everybody has one and they all stink.


From: Toledo, OH, USA | Registered: Feb 2000  |  IP: Logged
Coxy
Hulkamania has run wild over me.
Member # 2297

Member Rated:
posted 12-08-2001 08:25 AM      Profile for Coxy   Email Coxy   Send New Private Message      Edit/Delete Post  Reply With Quote 
int(number) does NOT mean integral function!
Example:
Integral(3.5) would be 3.5x + c
Int(3.5) would be 3

- - - - -
I love nintendolover, but only in a strictly platonic sense.

From: Australia | Registered: Oct 2001  |  IP: Logged
Jolt135
Farting Nudist
Member # 1974

Member Rated:
posted 12-08-2001 08:39 AM      Profile for Jolt135   Author's Homepage   Email Jolt135   Send New Private Message      Edit/Delete Post  Reply With Quote 
And I always thought the SE Value --> Stat Points function was

P = int((sqrt(S - 1) + 1) / 4)

which is derived from reversing the Stat Points --> SE Value function

int(S) = 16 * P^2 - 8 * P + 2

I'm not sure where you got your
int(Level * int((16 + int(Sqrt(256 * Stat Exp - 512))) / 128) / 50) as the formula, but you said that it gave 62 at max SE. Try my formula and see what you can do.


From: Woodbridge, VA, USA | Registered: Jul 2001  |  IP: Logged
mleo2003
Farting Nudist
Member # 1618

Member Rated:
posted 12-10-2001 11:08 AM      Profile for mleo2003   Author's Homepage     Send New Private Message      Edit/Delete Post  Reply With Quote 
I'm not very good with mathematical vocubulary. Hopefully, mos people new what I meant. If not, I'm sorry.

Just thought these 2 formula's could help in the making of Stat Calculators and Pokemon Battling Systems, as it takes the full amount of stat exp. into account, and not just either max stat or wild.

- - - - -
When life gives you lemons...

Throw them back!!!


From: Forest, Mississippi | Registered: Mar 2001  |  IP: Logged


All times are ET (US)  
Post New Topic  New Poll  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Printer-friendly view of this topic
Hop To:


Contact Us | Azure Heights Pokémon Laboratory

© 2000-2016, Maximum Penetration Industries.

Karpe Diem


The views and opinions expressed on this page are strictly those of the author(s). The contents and links have not been reviewed or approved by the University of Miami.