Hit chance: Difference between revisions

From Cassette Beasts
ExcaliburZero (talk | contribs)
Created page with some basic details of the general formula
 
ExcaliburZero (talk | contribs)
Added more information on accuracy and evasion as well as the statuses that effect them
Line 2: Line 2:


== General Formulas ==
== General Formulas ==
{{IncompleteSection}}
<!-- Relevant code in global/BattleFormulas.gd and battle/fighter/StatusNode.gd -->
<!-- Relevant code in global/BattleFormulas.gd and battle/fighter/StatusNode.gd -->


Line 9: Line 8:
\frac{MoveAccuracy \times AttackerAccuracy}{100 \times DefenderEvasion}, & : \text{otherwise}
\frac{MoveAccuracy \times AttackerAccuracy}{100 \times DefenderEvasion}, & : \text{otherwise}
\end{cases}</math>
\end{cases}</math>
<math>AttackerAccuracy = \frac{FormAccuracy \times CharacterAccuracy}{100} \times MovesAccuracyMultiplier \times AccuracyStageMultiplier + MovesAccuracyOffsets</math>


If the attacker has the [[Locked On]] status, then the hit chance will be guaranteed to be 100%.
If the attacker has the [[Locked On]] status, then the hit chance will be guaranteed to be 100%.


If the defender has the [[Cottoned On]] status, then the hit chance will be guaranteed to be 0%.
If the defender has the [[Cottoned On]] status, then the hit chance will be guaranteed to be 0%.
=== Accuracy and Evasion ===
{{IncompleteSection}}
<math>\begin{matrix}
AttackerAccuracy = & \left( \frac{FormAccuracy \times CharacterAccuracy}{100} \times MovesAccuracyMultiplier \times AccuracyStageMultiplier \times StatusesAccuracyMultiplier \right) \\
  & + StatusesAccuracyOffsets \\
\end{matrix}</math>
<!-- global/BattleFormulas.gd:get_stat_stage_multiplier -->
<math>AccuracyStageMultiplier = \begin{cases}
\frac{4 + AccuracyStage}{4}, & : \text{If AccuracyStage greater than or equal to 0} \\
\frac{4}{4 - AccuracyStage}, & : \text{otherwise}
\end{cases}</math>
The formulas for defender evasion are the same as for attacker accuracy, but are based on the defender and evasion.
{| class="wikitable"
|-
! Stage
! Multiplier
|-
| 6
| +150 %
|-
| 4
| +100 %
|-
| 2
| +50 %
|-
| 0
| +0 %
|-
| -2
| -33.3 %
|-
| -4
| -66.7 %
|}
==== Accuracy Statuses ====
{| class="wikitable"
|-
! Icon
! Name
! Stages
|-
| [[File:Status Accuracy Up.png|42x42px]]
| [[Accuracy Up]]
| align="center" | +2
|-
| [[File:Status Accuracy Down.png|42x42px]]
| [[Accuracy Down]]
| align="center" | -2
|-
| [[File:Status Gambit.png|42x42px]]
| [[Gambit (status effect)|Gambit]]
| align="center" | +4
|}
==== Evasion Statuses ====
{| class="wikitable"
|-
! Icon
! Name
! Stages
|-
| [[File:Status Evasion Up.png|42x42px]]
| [[Evasion Up]]
| align="center" | +4
|-
| [[File:Status Evasion Down.png|42x42px]]
| [[Evasion Down]]
| align="center" | -4
|-
| [[File:Status Evasion Nullified.png|42x42px]]
| [[Evasion Nullified]]
| align="center" | {{tt|*|Multiplies the defender evasion by 1%, accounted for in StatusesEvasionMultiplier}}
|}


[[Category:Mechanics]]
[[Category:Mechanics]]

Revision as of 03:48, 10 August 2023

Accuracy determines the chance that a move will hit.

General Formulas

HitChance={MoveAccuracy+AttackerAccuracy−100DefenderEvasion,:If AttackerAccuracy greater than 100MoveAccuracy×AttackerAccuracy100×DefenderEvasion,:otherwise

If the attacker has the Locked On status, then the hit chance will be guaranteed to be 100%.

If the defender has the Cottoned On status, then the hit chance will be guaranteed to be 0%.

Accuracy and Evasion

This section is incomplete. Feel free to add the missing information by editing it.

AttackerAccuracy=(FormAccuracy×CharacterAccuracy100×MovesAccuracyMultiplier×AccuracyStageMultiplier×StatusesAccuracyMultiplier)+StatusesAccuracyOffsets

AccuracyStageMultiplier={4+AccuracyStage4,:If AccuracyStage greater than or equal to 044−AccuracyStage,:otherwise

The formulas for defender evasion are the same as for attacker accuracy, but are based on the defender and evasion.

Stage Multiplier
6 +150 %
4 +100 %
2 +50 %
0 +0 %
-2 -33.3 %
-4 -66.7 %

Accuracy Statuses

Icon Name Stages
Accuracy Up +2
Accuracy Down -2
Gambit +4

Evasion Statuses

Icon Name Stages
Evasion Up +4
Evasion Down -4
Evasion Nullified *