Pokemon Tabletop Reunited: Evolved

Math for Nerds

Over on this page you can find the in-depth math calculations used in the Combat System. Don't worry, you don't need to understand these, but for you math nerds out there, its here so you can fact check us!

Math for Nerds

Who is this page for?
This page contains all the mathematical formulas used by the system to make calculations, as well as explanations on what each of their values mean.

This page is NOT intended for every user to read and learn how things work, as all this complicated math is handled by the system, after all we want you to focus on enjoying the game, not doing Math homework.

However, some of you may wish to explore the Math more in-depth, to form a higher understanding of the rules, fact-check us, or even help figure out balancing!
That is why this page exists.

Stat Calculation

HP Stat

HP is uniquely calculated as follows:

$$
HP = \Bigg\lfloor \bigg\lfloor \Big\lfloor \frac \rfloor ) * Level * BulkMod} + Scalar + 20 \Big\rfloor * Nature \bigg\rfloor * Stage \Bigg\rfloor
$$

Note 1: The constant value, the +20 before modifiers, is increased from the VGs' +10 to address massive statistical imbalances at lower levels.

Note 2: A creature’s HP calculation is modified by their Size Category, specifically their CatMod. Their BulkMod is expressed as:

$$
BulkMod= \left(1+\frac\right)^
$$

$$
Scalar = Level*\left(\frac+\frac\right)
$$

Note 3: The HP calc includes an additional scaling value, utilizing level and a logarithm, to provide additional HP at lower levels and some additional HP at higher levels.

Other Stats

All other Stats are calculated as follows:
$$
STAT = \Bigg\lfloor \bigg\lfloor \Big\lfloor \frac \rfloor )* Level} + 10 \Big\rfloor * Nature \bigg\rfloor * Stage \Bigg\rfloor
$$

Note: The constant value, the +10 before modifiers, is increased from the VGs' +5 to address massive statistical imbalances at lower levels.

Stat Stage Changes

The Stage variable in the calculation of ATK, DEF, SPATK, SPDEF, and SPD is based on the val`stage` variable (the one listed on an Actor's page):

$$
Stage = \begin
\frac} & val_< 0 \
\frac} & val_\geq 0 \
\end
$$

ACC and EVA Stage Changes

ACC and EVA Stages, similar to Stat Stages, are calculated as below:

$$
Stage = \begin
\frac} & val_< 0 \
\frac} & val_\geq 0 \
\end
$$

CRIT Stage Changes

CRIT Stages increase the likelihood of a Physical- or Special-Category Attack being a Critical Hit. An attack's Critical Hit value is based on the user's amount of CRIT Stages, plus the Attack's innate [Crit X] value.

Effective CRIT Level Chance to Crit
0 1/24
1 12.5%
2 25%
3 50%
4 100%

Initiative Math

Base AV is calculated as follows:
$$
AV _ = \frac ) * (1 - SpeedStages / 8)\Big)}
$$

Upper and Lower Bounds

The upper and lower bounds of a creature's Initiative is determined as follows:

$$
Lower Bound = 70 - Math.max(5 * Math.min(5, speedStages), 0)
$$
$$
Upper Bound = 125 - Math.min(5 * Math.max(-5, speedStages), 0)
$$

This means that a creature's intiative is, normally, bound between 70 and 125. At +5 and +6 SPD stages, the minimum becomes 45 while at -5 and -6, the maximum becomes 150.

The Sigmoid Compression

Utilizing the above upper and lower bounds, as well as the absolute extreme bounds (45 and 150), the above BaseAV is "compressed" to the above upper and lower bounds using what is referred to as a "sigmoid function".

The sigmoid function essentially "normalizes" a number, attempting to bring it within some set of arbitrary bounds (in this case, the absolute extreme bounds), to essentially soften the "extremes" that can occur with the speed calculation (such as with speedsters like Deoxys or Regieleki or absolute slowpokes like Shuckle or Geodude).

First, the calculated d baseAV is placed onto a scale of -3.5 and +3.5, via the formula:
$$
normalized = 7* ((baseAV - 45) / 105) - 3.5
$$
Then, the normalized number is "compressed", using the hyperbolic function that utilizes the special properties of Euler's number, e:
$$
compressed = \frac}
$$
From here, the compressed AV value is scaled back to the normal bounds:
$$
effectiveAV = compressed * 105 + 45
$$
And is then bound to the above-determined Upper and Lower bounds (based on the creature's SPD stages).

Accuracy and Damage Calculation

Accuracy Roll

Nearly identical to the VGs' formula, this system's accuracy formula is as follows:

$$
DC_ = \left\lfloor Accuracy_+Modifier_ \right\rfloor * StageBonus +Modifier_
$$

Note 1: Modifier`Flat` and Modifier`Percentile` are the modifiers present on the Accuracy Roll dialog window.

$$
StageBonus = max(-6, min(6, ACC_-EVA_))
$$

Note 2: The ACC and EVA values here are determined not only based on the Stages of the user and target, but also include modifiers from the Accuracy Roll dialog window and factors such as Range Increment Penalty.

Damage Roll

Nearly identical to the VGs' formula, this system's damage formula is as follows:

$$
Damage = \left\lfloor Calc_TargetsCritical*\fracSTABType_*Modifiers \right\rfloor
$$

Note 1: The randomization factor was changed from a d16 roll in the VGs to a 2d8 roll, to make Moves more consistent in terms of their damage output.

$$
Calc_ = \left(\frac}+2\right)Power\frac*0.75} {50}+2\right)
$$

Note 2: The constant value, the 0.75 is included in the damage calculations, in order to reduce the swingy nature of Damage from the VGs, and the reducing the ease at which a creature can deal enough damage to Faint a target.

$$
Targets = \begin
1 & Num_ = 1 \
0.75 & Num_ > 1 \
\end
$$

$$
Critical = \begin
1 & \small\text \
1.5 & \small\text \
\end
$$

$$
STAB \tiny} \normalsize = \begin
1 & \footnotesize\text \
1.5 & \footnotesize\text \
\end
$$

$$
Type_ = \begin
0 & \scriptsize\text \
2^- Types_} & \scriptsize\text \
\end
$$

$$
Modifiers = \footnotesize\text
$$