Stat: Difference between revisions

mNo edit summary
No edit summary
Line 57: Line 57:
Effort values (or '''EVs''') are what cause a trained Pokehero to have higher stats than an untrained counterpart of the same level. For every 4 EVs gained, a level 100 Pokehero will have 1 extra point in its stats. Variance of stats caused by EVs reaches a maximum of 63 points at level 100, as a Pokehero can gain a maximum of 252 EVs in a single stat.
Effort values (or '''EVs''') are what cause a trained Pokehero to have higher stats than an untrained counterpart of the same level. For every 4 EVs gained, a level 100 Pokehero will have 1 extra point in its stats. Variance of stats caused by EVs reaches a maximum of 63 points at level 100, as a Pokehero can gain a maximum of 252 EVs in a single stat.


===Formula===
:''See also: {{TransLink|Damage calculation|Damage calculation}}''
{{Incomplete|section|Check out the commented out section}}
<!--
<math>HP = \left\lfloor {\left( (Base + DV) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{STATEXP} \right\rceil}{4} \right\rfloor \right) \times Level \over 100} \right\rfloor + Level + 10</math>


<math>OtherStat = \left\lfloor {\left( (Base + DV) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{STATEXP} \right\rceil}{4} \right\rfloor \right) \times Level \over 100} \right\rfloor + 5</math>




====Example====
Consider a Level 81 Pikachu with the following IVs and EVs:
{| class="roundy" style="margin:auto; text-align:center; background: #{{electric color dark}}; border: 5px solid #{{electric color}}"
|-
! style="background:#{{electric color light}}; {{roundytl|5px}} width:60px" |
! style="background:#{{HP color}}; width:60px" | HP
! style="background:#{{Attack color}}; width:60px" | Attack
! style="background:#{{Defense color}}; width:60px" | Defense
! style="background:#{{Special Attack color}}; width:60px" | Sp.Atk
! style="background:#{{Special Defense color}}; width:60px" | Sp.Def
! style="background:#{{Speed color}}; width:60px" | Speed
! style="background:#{{electric color light}}; {{roundytr|5px}} width:60px" | Total
|- style="background:#fff"
!style="background:#{{electric color light}}" |Base stat
|35
|55
|30
|50
|40<ref>In Generation I, this stat did not exist. The Pikachu's Special stat would simply be 50.</ref>
|90
|'''300'''
|- style="background:#fff"
!style="background:#{{electric color light}}" |IV
|'''''7'''''<ref>This is calculated as shown in the {{IV}} article.</ref>
|8
|13
|colspan="2" |9<ref>In the first two generations, the Special IV was unified.</ref>
|5
|'''42'''
|-
!style="background:#{{electric color light}}; {{roundybl|5px}}" |EV
|style="background:#fff" |22850
|style="background:#fff" |23140
|style="background:#fff" |17280
|style="background:#fff" colspan="2" |19625
|style="background:#fff" |24795
|style="background:#fff; {{roundybr|5px}}" |'''107690'''
|}
<small><references /></small>
Its HP can be calculated as follows:
<math>
\begin{align}
HP & = \left\lfloor {\left( (35 + 7) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{22850} \right\rceil}{4} \right\rfloor \right) \times 81 \over 100} \right\rfloor + 81 + 10 \\
& = \left\lfloor {( 42 \times 2 + 38) \times 81 \over 100} \right\rfloor + 91 \\
& = \left\lfloor {122 \times 81 \over 100} \right\rfloor + 91 \\
& = \lfloor {98.82} \rfloor + 91 \\
& = 98 + 91 \\
& = 189
\end{align}
</math>
Its Special Attack and Special Defense stats simply rely on the Special EV and IV.
<math>
\begin{align}
SpAtk & = \left\lfloor {\left( (50 + 9) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{19625} \right\rceil}{4} \right\rfloor \right) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {( 59 \times 2 + 35) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {153 \times 81 \over 100} \right\rfloor + 5 \\
& = \lfloor 123.93 \rfloor + 5 \\
& = 123 + 5 \\
& = 128
\end{align}
</math>
<math>
\begin{align}
SpDef & = \left\lfloor {\left( (40 + 9) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{19625} \right\rceil}{4} \right\rfloor \right) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {( 49 \times 2 + 35) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {133 \times 81 \over 100} \right\rfloor + 5 \\
& = \lfloor 107.73 \rfloor + 5 \\
& = 107 + 5 \\
& = 112
\end{align}
</math>
Its Speed can be calculated as follows:
<math>
\begin{align}
Speed & = \left\lfloor {\left( (90 + 5) \times 2 + \left\lfloor \tfrac{\left\lceil \sqrt{24795} \right\rceil}{4} \right\rfloor \right) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {( 95 \times 2 + 39) \times 81 \over 100} \right\rfloor + 5 \\
& = \left\lfloor {229 \times 81 \over 100} \right\rfloor + 5 \\
& = \lfloor 185.49 \rfloor + 5 \\
& = 185 + 5 \\
& = 190
\end{align}
</math>
In the end, this Pikachu's stats are:
{| class="roundy" style="margin:auto; text-align:center; background: #{{electric color dark}}; border: 5px solid #{{electric color}}"
|-
! style="background:#{{electric color light}}; {{roundytl|5px}} width:60px" |
! style="background:#{{HP color}}; width:60px" | HP
! style="background:#{{Attack color}}; width:60px" | Attack
! style="background:#{{Defense color}}; width:60px" | Defense
! style="background:#{{Special Attack color}}; width:60px" | Sp.Atk
! style="background:#{{Special Defense color}}; width:60px" | Sp.Def
! style="background:#{{Speed color}}; {{roundytr|5px}} width:60px" | Speed
|- style="background:#fff"
! style="background:#{{electric color light}}"| Base stat
|35
|55
|30
|50
|40
|90
|- style="background:#fff"
! style="background:#{{electric color light}}"| IV
|'''''7'''''
|8
|13
|colspan="2" |9
|5
|- style="background:#fff"
! style="background:#{{electric color light}}"| EV
|22850
|23140
|17280
|colspan="2" |19625
|24795
|-
! style="background:#{{electric color light}}; {{roundybl|5px}}"| Total
| style="background:#fff" |'''189'''
| style="background:#fff" |'''137'''
| style="background:#fff" |'''101'''
| style="background:#fff" |'''128'''
| style="background:#fff" |'''112'''
| style="background:#fff; {{roundybr|5px}}" |'''190'''
|}-->
===In battle===
In battle, additional [[#Stat modifiers|modifiers]] can further alter the effective value of a stat. This is not reflected in visible stats, but instead is only accounted for when {{TransLink|Damage|damage}} is dealt or received.
====Accuracy and evasion====
Accuracy and evasion are not visible anywhere as explicit stats, but they influence the probability of a move hitting. {{TransLink|:Category:Moves that cannot miss|Some moves}} ignore accuracy checks.
{{Incomplete|section|Missing the accuracy check formula (see comments)}}
<!--Whether a move hits depends on the formula:
<math>T= Accuracy_{move} \times StageMultiplier \times Other</math>, where:
* ''T'' is the computed threshold value that will determine whether the move will hit,
* ''Accuracy<sub>move</sub>'' is the move's {{TransLink|accuracy}}, a value from 1 to 100,
* ''StageMultiplier'' is the equivalent accuracy {{TransLink|Stat modifier#Stage multipliers|stage multiplier}} of the user after the target's evasion stage is subtracted from the user's accuracy stage, both possibly modified by Ability or move effects such as {{a|Simple}} or {{m|Foresight}} (to no less than -6 and no more than 6 after the subtraction), and
* ''Other'' encompasses all multipliers from other accuracy or evasion modifiers from Ability effects, {{TransLink|fog}}, move effects, and item effects (as can be seen in {{TransLink|Stat_modifier#In-battle_modification|this table}}), serially applied.
The game then selects a random number ''r'' from 1 to 100 and compares it to ''T'' to determine whether the move hits. If ''r'' is less than or equal to ''T'', the move hits.-->
==Stat modifiers==
{{main|Stat modifier|Stat modifier}}
When a stat is used in a calculation in battle, a number of modifiers may be applied during the calculation. During a battle, a Pokehero's effective stats may be raised or lowered by certain {{TransLink|Move|moves}}, {{TransLink|Ability|Abilities}}, and {{TransLink|Held item|held items}}. Some attacks may only have a chance of raising or lowering stats, while certain Abilities and held items may require a triggering event to activate any stat modifications.


==Related articles==
==Related articles==