Hidden Power (move)/Calculation: Difference between revisions

no edit summary
(okay, I found it and am now adding it)
No edit summary
Line 1: Line 1:
{{inuse}}
In the Pokémon games, {{m|Hidden Power}} is a {{type|Normal}} move when the type is displayed, such as in battle and on status screens. However, the actual type of Hidden Power is determined by the Pokémon's [[individual values]], and through calculation, can be set as one of the sixteen other natural types and with a power between 30 and 70.
In the Pokémon games, {{m|Hidden Power}} is a {{type|Normal}} move when the type is displayed, such as in battle and on status screens. However, the actual type of Hidden Power is determined by the Pokémon's [[individual values]], and through calculation, can be set as one of the sixteen other natural types and with a power between 30 and 70.


The type of Hidden Power can be checked in [[Veilstone Game Corner]]'s prize house in {{game|Platinum}}, the [[Celadon Game Corner]] in {{game|HeartGold and SoulSilver|s}}, in [[Mistralton City]]'s Pokémon Center in {{game|Black and White|s}}, and at the [[PWT]] in {{game|Black and White 2|s}}. There remains no in-game way to determine the power level directly, however.
The type of Hidden Power can be checked in [[Veilstone Game Corner]]'s prize house in {{game|Platinum}}, the [[Celadon Game Corner]] in {{game|HeartGold and SoulSilver|s}}, in [[Mistralton City]]'s Pokémon Center in {{game|Black and White|s}}, and at the [[PWT]] in {{game|Black and White 2|s}}. There remains no in-game way to determine the power level directly, however.
==Generation II==
===Type===
Consider an example Pokémon, like Pikachu with this set of IVs:
{{Hidden Power calculation/II|14|15|15|15|14}}
The type is determined by taking the two {{wp|least significant bit}}s of the Attack and Defense IVs, then {{wp|Concatenation|concatenating}} these two values in that order.
Mathematically, this is the equivalent of:
:[[File:HPtypeII.png]]
Where a represents the Attack IV and b represents the Defense IV.
The resulting number will correspond to a type as marked below.
{| class="roundy" style="background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; {{roundy|10px}}"
! style="background: #{{platinum color light}}; {{roundytl|10px}}" | Number
! style="background: #{{platinum color light}}; {{roundytr|10px}}" | Type
|-style="background-color: #{{Fighting color}}; color:#FFFFFF" align="center"
| 0
| {{typecolor|Fighting}}
|-style="background-color: #{{Flying color}}; color:#FFFFFF" align="center"
| 1
| {{typecolor|Flying}}
|-style="background-color: #{{poison color}}; color:#FFFFFF" align="center"
| 2
| {{typecolor|Poison}}
|-style="background-color: #{{Ground color}}; color:#FFFFFF" align="center"
| 3
| {{typecolor|Ground}}
|-style="background-color: #{{Rock color}}; color:#FFFFFF" align="center"
| 4
| {{typecolor|Rock}}
|-style="background-color: #{{Bug color}}; color:#FFFFFF" align="center"
| 5
| {{typecolor|Bug}}
|-style="background-color: #{{Ghost color}}; color:#FFFFFF" align="center"
| 6
| {{typecolor|Ghost}}
|-style="background-color: #{{Steel color}}; color:#FFFFFF" align="center"
| 7
| {{typecolor|Steel}}
|-style="background-color: #{{Fire color}}; color:#FFFFFF" align="center"
| 8
| {{typecolor|Fire}}
|-style="background-color: #{{Water color}}; color:#FFFFFF" align="center"
| 9
| {{typecolor|Water}}
|-style="background-color: #{{Grass color}}; color:#FFFFFF" align="center"
| 10
| {{typecolor|Grass}}
|-style="background-color: #{{Electric color}}; color:#FFFFFF" align="center"
| 11
| {{typecolor|Electric}}
|-style="background-color: #{{Psychic color}}; color:#FFFFFF" align="center"
| 12
| {{typecolor|Psychic}}
|-style="background-color: #{{Ice color}}; color:#FFFFFF" align="center"
| 13
| {{typecolor|Ice}}
|-style="background-color: #{{Dragon color}}; color:#FFFFFF" align="center"
| 14
| {{typecolor|Dragon}}
|-style="background-color: #{{Dark color}}; color:#FFFFFF" align="center; color:#FFFFFF" align="center"
| 15
| {{typecolor|Dark}}
|}
In our example, we get:
HPtype=4*('''15 mod 4''')+('''15 mod 4''')='''4*3'''+3='''12+3'''='''15''', which means that our Pikachu has a {{type|Dark}} {{m|Hidden Power}}.
===Damage===
The damage of the Hidden Power is calculated using the following formula:
:[[File:HPPowerII.png]]
* The variables v through y (the "damage bits") represent the {{wp|most significant bit}} of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.
:* v and w depend on the Attack and Defense stats respectively.
:* x depends on the Speed stat.
:* y depends on the Special stat.
* Z is equal to the Special stat when the Special stat is less than or equal to 3; when the Special stat is greater than 3, Z is equal to 3.
Hidden Power's power is therefore a number ranging from 31 to 70, inclusively.
In our example, we get:
{{Hidden Power calculation/II|14<br>''N/A''|15<br>''1''|15<br>''1''|15<br>''1''|14<br>''1''}}
HP Power = Floor[(5*(1 + '''2*1''' + '''4*1''' + '''8*1''') + 3)/2+31] = Floor[(5*('''1 + 2 + 4 + 8''') + 3)/2+31] = Floor[('''5*15''' + 3)/2+31] = Floor[('''75 + 3''')/2+31] = Floor['''78/2'''+31] = Floor['''39+31'''] = '''Floor[70]''' = '''70''', which means that our Pikachu's Hidden Power's power is '''70'''
{{Hidden Power calculation/II|14|15|15|15|14}}
{| class="roundy" width="650px" style="border: 2px solid #{{Dark color light}};"
|- style="text-align:center;"
| bgcolor="#{{Dark color}}" style="width: 33%; {{roundyleft|10px}}" |[[Hidden Power (move)|<span style=color:#000>Hidden Power:</span>]]
| bgcolor="#{{Dark color}}" style="width: 33%" | <span style=color:#000>Type:</span><br>'''[[Dark_(type)|<span style=color:#000>Dark</span>]]'''
| bgcolor="#{{Dark color}}" style="width: 33%; {{roundyright|10px}}" | <span style=color:#000>Power:</span><br>'''<span style=color:#000>70</span>'''
|}


==Generation III and on==
==Generation III and on==
Line 277: Line 375:
==Trivia==
==Trivia==
* Although Hidden Power is listed as a Normal-type move, it cannot count as a Normal-type attack.
* Although Hidden Power is listed as a Normal-type move, it cannot count as a Normal-type attack.
* In Generation II, the calculation of the type and power of Hidden Power is completely independent of


==External links==
==External links==
Many Pokémon related sites prepared web-based calculators, which allows to compute Hidden Power of a Pokémon with given IVs:
Many Pokémon related sites prepared web-based calculators, which allows to compute Hidden Power of a Pokémon with given IVs:
* [http://www.psypokes.com/dex/hp.php Psypoke's Hidden Power Calculator]
* [http://www.psypokes.com/gsc/dvguide.php Psypoke's Hidden Power calculator (Generation II)]
* [http://www.legendarypokemon.net/javacalc.html Legendary Pokémon calculator]   
* [http://www.psypokes.com/dex/hp.php Psypoke's Hidden Power calculator (Generation III and on)]
* [http://www.legendarypokemon.net/javacalc.html Legendary Pokémon Hidden Power calculator (Generation III and on)]   


{{Project Games notice|game mechanic}}
{{Project Games notice|game mechanic}}