Found a bug? Have a suggestion? File a bug report!
This is the old busted veekun, which will be going away in the future. You may be looking for the new hotness.

Because someone asked.
2 posts; 251 views
Post last edited on 03/06/08 18:54 by Gojithefox
Hidden Power Damage Formula
[Round Down]( ( HP + Atk + Def + Spd + SAtk + SDef ) * 40 / 63 + 30 )

HP : Returns 1 if the IV, divided by 4, has a remainder of 2 or 3
Atk: Returns 2 if the IV, divided by 4, has a remainder of 2 or 3
Def: Returns 4 if the IV, divided by 4, has a remainder of 2 or 3
Spd: Returns 8 if the IV, divided by 4, has a remainder of 2 or 3
SAtk: Returns 16 if the IV, divided by 4, has a remainder of 2 or 3
SDef: Returns 32 if the IV, divided by 4, has a remainder of 2 or 3

If the IV divided by 4 does not have a remainder of 2 or 3, the
DV returns a value of 0.

Example:
Quote:
For a practical example, I shall use the DVs 24/31/06/25/17/19.

Starting with the HP. 24 divided by 4 is an even 6-no reminder,
so A returns 0. The ATK DV. 31 divided by 4 is 7 with a remainder
of 3, so B returns 2. The DEF DV. 6 divided by 4 is 1 with 2
remainder, so C returns 4. The SPD DV. 25 divided by 4 is 6
remainder 1, so D returns 0. The S.A DV. 17 divided by 4 is 4
remainder 1, so E returns 0. The S.D DV. 19 divided by 4 is 4
remainder 3, so F returns 32.

So the power of this Hidden Power is:

int ( ( 0 + 2 + 4 + 0 + 0 + 32 ) * 40 / 63 + 30 )

*We'll just ignore the int for now. Make sure you know BODMAS ;)

(38) * 40 / 63 + 30

(38) * .634921 + 30

24.126998 +30

54.126998

int(54.126998) = 54

So the power of this Hidden Power is 54.


Hidden Power Type Formula
[Round Down] ( ( HP + Atk + Def + Spd + SAtk + SDef ) * 15 / 63 )
HP : Returns 1 if IV is odd
Atk: Returns 2 if IV is odd
Def: Returns 4 if IV is odd
Spd: Returns 8 if IV is odd
SAtk: Returns 16 if IV is odd
SDef: Returns 32 if IV is odd

If the IV is even, it returns 0.

Example:
Quote:
int ( ( 0 + 2 + 0 + 8 + 16 + 32 ) * 15 / 63 )

(58) * 15 / 63

58 * .238095

13.80851

int(13.80851) = 13


Value Chart
0 = Fighting
1 = Flying
2 = Poison
3 = Ground
4 = Rock
5 = Bug
6 = Ghost
7 = Steel
8 = Fire
9 = Water
10 = Grass
11 = Electric
12 = Psychic
13 = Ice
14 = Dragon
15 = Dark

70 Base Power Hidden Power IV spreads
Fire:
31/30/31/30/30/31
31/31/30/30/30/31

Water:
31/31/31/30/30/31

Grass:
31/30/31/31/30/31
31/31/30/31/30/31
30/31/31/31/30/31

Electric:
31/31/31/31/30/31
31/30/30/30/31/31
30/31/30/30/31/31

Ice:
31/31/31/30/31/31
31/30/30/31/31/31

Fighting:
31/31/30/30/30/30
30/30/31/30/30/30
30/30/30/30/30/30
31/30/30/30/30/30
30/31/30/30/30/30

Poison:
31/31/30/31/30/30

Ground:
31/31/31/31/30/30
30/30/30/30/31/30

Flying:
31/31/31/30/30/30
30/30/30/31/30/30

Psychic:
31/30/31/30/31/31
31/31/30/30/31/31
30/31/31/30/31/31

Bug:
31/31/31/30/31/30
31/30/30/31/31/30

Rock:
31/31/30/30/31/30
30/30/31/30/31/30

Ghost:
31/31/30/31/31/30
31/30/31/31/31/30

Dragon:
31/30/31/31/31/31
31/31/30/31/31/31
30/31/31/31/31/31

Dark:
31/31/31/31/31/31

Steel:
31/31/31/31/31/30
30/30/30/30/30/31

I'm not claiming this as mine. I just made it easier to read and understand.
Platinum FC: 2364 5517 1334
posted at 03/07/08 18:25 -- 23 hours, 31 minutes since previous post
That is a lot to read.

But what if it gets divided by zero?
I'll always reply. Even if I don't help.

Quote of the Week:
[17:10] <Lapiass> i just turned and looked to scott
[17:10] <Lapiass> and i was like
[17:10] <Lapiass> "i dont mean to sound arrogant"
[17:10] <Lapiass> "but i'm a genius"

4338 9412 7031
Diamond: US
Name: Kit
Anna-chan: Level 84
2 years, 1 week
since last post
View options

Filter by user: