Age of Empires Online Wiki
m (Updated with test results)
(Updated Values)
Line 1: Line 1:
 
{{WIP}}
 
{{WIP}}
The '''Battle Equation''' in [[Age of Empires Online]] is a mathematical equation used to determine how many [[hit points]] a target will lose when attacked by a [[buildings|building ]] or [[unit]]. While the formula for previous entries in the series is [https://ageofempires.fandom.com/wiki/Attack#Age_of_Empires_II known] the exact formula for AOEO is presently unknown: the following are speculations based on testing.
+
The '''Battle Equation''' in [[Age of Empires Online]] is a mathematical equation used to determine how many [[hit points]] a target will lose when attacked by a [[buildings|building]] or [[unit]]. While the formula for previous entries in the series is [https://ageofempires.fandom.com/wiki/Attack#Age_of_Empires_II known] the exact formula for AOEO is presently unknown: the following are speculations based on testing.
   
 
The speculated equation is roughly as follows:
 
The speculated equation is roughly as follows:
   
HitPointLoss = (BaseAttack * ( ( BonusDamage * (1 - BonusDamageProtection ) ) ) * (1 - Armor)
+
HitPointLoss = (BA * ( ( BD * (1 - BDP ) ) ) * (1 - A)
  +
''OR'' possibly
  +
BA x (1 - BDP) x BD x (1 - A)
  +
  +
BA=Base Attack, BDP=Bonus Damage Protection,
  +
BD=Bonus Damage, A=Armor
   
 
Example using hypothetical units for easy numbers:
 
Example using hypothetical units for easy numbers:
A Spearmen with 100 damage output and 3.0 bonus damage against cavalry vs a Cavalry unit with armor stat of 0.25 against melee-infantry.
+
A Spearmen with 100 damage output (not DPS, but DAMage per hit) and 3.0 bonus damage against cavalry vs a Cavalry unit with armor stat of 0.25 against melee-infantry.
   
Damage = 100, Bonus Damage = 3.0, Bonus Damage Protection = 0, Armor Bonus = 0.25
+
BA = 100, BD = 3.0, BDP = 0, A = 0.25
   
(100 * (3.0 * (1 - 0))) * (1 - 0.25) = 225 damage
+
225 = (100 * (3.0 * (1 - 0))) * (1 - 0.25)
  +
''OR'' possibly
  +
255 = 100 * (1 - 0) * 3.0 * (1 - A)
   
 
[[Category:Battle Basics]]
 
[[Category:Battle Basics]]

Revision as of 15:51, 6 September 2019

The Battle Equation in Age of Empires Online is a mathematical equation used to determine how many hit points a target will lose when attacked by a building or unit. While the formula for previous entries in the series is known the exact formula for AOEO is presently unknown: the following are speculations based on testing.

The speculated equation is roughly as follows:

HitPointLoss = (BA * ( ( BD * (1 - BDP ) ) ) * (1 - A)

OR possibly

BA x (1 - BDP) x BD x (1 - A)

BA=Base Attack, BDP=Bonus Damage Protection,

BD=Bonus Damage,  A=Armor

Example using hypothetical units for easy numbers: A Spearmen with 100 damage output (not DPS, but DAMage per hit) and 3.0 bonus damage against cavalry vs a Cavalry unit with armor stat of 0.25 against melee-infantry.

BA = 100, BD = 3.0, BDP = 0, A = 0.25

225 = (100 * (3.0 * (1 - 0))) * (1 - 0.25)

OR possibly

255 = 100 * (1 - 0) * 3.0 * (1 - A)