Editing Damage

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
'''Damage''' is a general term for the amount of [[health]] loss a [[creature]] or a [[spell]] can cause to a single creature or to a creatures [[stack]]. If a creature suffers more damage than its current health, it is eliminated, while in a stack of creatures, the topmost dies. The remainder of the damage is dealt to the next one and so forth until all damage is dealt or the whole stack is eliminated.
'''Damage''' is a general term for the amount of [[health]] loss a [[creature]] or a [[spell]] can cause to a single creature or to a creatures [[stack]]. If a creature suffers more damage than its current health, it is eliminated, while in a stack of creatures, the topmost dies. The remainder of the damage is dealt to the next one and so forth until all damage is dealt or the whole stack is eliminated.


Creature's ability to deal damage typically has a range, which means that it causes randomly chosen damage between the minimum and maximum value. Some creatures like [[Naga]]s do not have a damage range, meaning they deal a fixed amount of damage. This is also true for creatures that are [[bless]]ed or [[curse]]d. Creatures in a stack cause individual damages, and the combined damage of the stack is calculated by adding them together (see External Links below). However, the final damage can deviate from the combined damage greatly because of different additions and reductions, which are covered in the next section.
Creature's ability to deal damage typically has a range, which means that it causes randomly chosen damage between the minimum and maximum value . Some creatures like [[Naga]]s do not have a damage range, meaning they deal a fixed amount of damage. This is also true for creatures that are [[bless]]ed or [[curse]]d. Creatures in a stack cause individual damages, and the combined damage of the stack is calculated by adding them together (see External Links below). However, the final damage can deviate from the combined damage greatly because of different additions and reductions, which are covered in the next section.


Spells can deal damage much like creatures do, except that the amount of inflicted damage does not vary within a range but is fixed. The exact amount of unmodified spell damage can always be calculated with a linear formula. For example, basic [[Lightning Bolt]] cast by a hero with 7 [[Primary skill#Power skill|spell power]] does 7 × 25 + 10 = 185 damage. For other spells different values than 25 and 10 need to be substituted. The eventual amount of spell damage is modified as follows:
Spells can deal damage much like creatures do, except that the amount of inflicted damage does not vary within a range but is fixed. The exact amount of unmodified spell damage can always be calculated with a linear formula. For example, basic [[Lightning Bolt]] cast by a hero with 7 [[Primary skill#Power skill|spell power]] does 7 × 25 + 10 = 185 damage. For other spells different values than 25 and 10 need to be substituted. The eventual amount of spell damage is modified as follows:
Line 10: Line 10:
*The damage that [[Stone Golem]]s, [[Iron Golem]]s, [[Gold Golem]]s and [[Diamond Golem]]s take from spells is reduced by, respectively, 50%, 75%, 85% and 95%.
*The damage that [[Stone Golem]]s, [[Iron Golem]]s, [[Gold Golem]]s and [[Diamond Golem]]s take from spells is reduced by, respectively, 50%, 75%, 85% and 95%.
*The spells [[Protection from Air]], [[Protection from Earth|Earth]], [[Protection from Fire|Fire]] and [[Protection from Water|Water]] reduce spell damage from the school they protect against by 30%, or even by 50% when cast at basic or advanced/expert level.
*The spells [[Protection from Air]], [[Protection from Earth|Earth]], [[Protection from Fire|Fire]] and [[Protection from Water|Water]] reduce spell damage from the school they protect against by 30%, or even by 50% when cast at basic or advanced/expert level.
 
*[[Crystal Dragon]]s and [[Dwarf|Dwarves]] have a 20% chance and [[Battle Dwarf|Battle Dwarves]] a 40% chance to completely resist any (damage) spells.
Moreover, [[magic resistance]] ability, [[Resistance]] secondary skill and resistance artifacts such as the [[Boots of Polarity]] give a chance to completely avoid spell damage. Some creatures are naturally [[immunity|immune]] to some damage spells, or even to all spells. Finally, there are some artifacts which make your units immune to a certain damage spell, or disallow casting certain spells to both sides. [[Orb of Inhibition]] and [[Anti-Magic Garrison]] ban all spells with no exceptions.
*Creatures adjacent to [[Unicorn]]s and [[War Unicorn]]s have a 20% chance to completely resist any (damage) spells.
*The [[Resistance]] secondary skill and resistance artifacts such as the [[Boots of Polarity]] provide each creature stack of a hero's army with a chance to resist any (damage) spell.
*Some creatures are naturally [[immunity|immune]] to certain spells (including damage spells), and [[Black Dragons]] are immune to all spells. [[Undead]] creatures are immune to [[Death Ripple]] (since it is a typically [[Necropolis]] spell intended to destroy the enemy's troops, with an effect of [[Armageddon]]), and non-Undead creatures are immune to [[Destroy Undead]].


== Damage calculation of creature stacks ==
== Damage calculation of creature stacks ==
Line 60: Line 62:
&emsp;&ensp;&thinsp;= 0.50 if target is [[Petrify|petrified]]<br>
&emsp;&ensp;&thinsp;= 0.50 if target is [[Petrify|petrified]]<br>
&emsp;&ensp;&thinsp;= 0.75 for retaliation after being [[paralyze]]d
&emsp;&ensp;&thinsp;= 0.75 for retaliation after being [[paralyze]]d
|-
| {{-}}R<sub>9</sub> =  0.50 for [[Luck|unlucky]] {{wh}} strikes
|}
|}


Mathematical formula for calculating the final damage (DMG<small>f</small>) is:
Mathematical formula for calculating the final damage (DMG<small>f</small>) is:


{{Math|DMG<sub>f</sub> <nowiki>=</nowiki> DMG<sub>b</sub> &times; (1 + I<sub>1</sub> + I<sub>2</sub> + I<sub>3</sub> + I<sub>4</sub> + I<sub>5</sub>) &times; (1 - R<sub>1</sub>) &times; (1 - R<sub>2</sub> - R<sub>3</sub>) &times; (1 - R<sub>4</sub>) &times; (1 - R<sub>5</sub>) &times; (1 - R<sub>6</sub>) &times; (1 - R<sub>7</sub>) &times; (1 - R<sub>8</sub>) &times; (1 - R<sub>9</sub>{{wh}})}}
{{Math|DMG<sub>f</sub> <nowiki>=</nowiki> DMG<sub>b</sub> &times; (1 + I<sub>1</sub> + I<sub>2</sub> + I<sub>3</sub> + I<sub>4</sub> + I<sub>5</sub>) &times; (1 - R<sub>1</sub>) &times; (1 - R<sub>2</sub> - R<sub>3</sub>) &times; (1 - R<sub>4</sub>) &times; (1 - R<sub>5</sub>) &times; (1 - R<sub>6</sub>) &times; (1 - R<sub>7</sub>) &times; (1 - R<sub>8</sub>)}}


Primary determinant for the final damage is the base damage (DMG<sub>b</sub>), which is affected by the number of attacking creatures and their damage range. All other variables are basically modifiers of the base damage. Variables are denoted as I if they (i)ncrease damage and as R if they (r)educe it. I<sub>1</sub> and R<sub>1</sub> are mutually exclusive, but all other variables may simultaneously affect the final damage (DMG<sub>f</sub>). A brief summary of the variables have been given in the table on the right. To summarize the above formula, the content in the first parentheses increase the base damage by multiplying it with a modifier varying from 1.00 to 8.00, and the content in the second parentheses reduces the damage with a modifier varying from ~0.01 to 1.00.
Primary determinant for the final damage is the base damage (DMG<sub>b</sub>), which is affected by the number of attacking creatures and their damage range. All other variables are basically modifiers of the base damage. Variables are denoted as I if they (i)ncrease damage and as R if they (r)educe it. I<sub>1</sub> and R<sub>1</sub> are mutually exclusive, but all other variables may simultaneously affect the final damage (DMG<sub>f</sub>). A brief summary of the variables have been given in the table on the right. To summarize the above formula, the content in the first parentheses increase the base damage by multiplying it with a modifier varying from 1.00 to 8.00, and the content in the second parentheses reduces the damage with a modifier varying from ~0.01 to 1.00.
Line 88: Line 88:
Variable I<sub>2</sub> represents [[secondary skill]] modifier of either [[Archery]] or [[Offense]] depending on the attack type. Creatures able to [[Ranged attack|attack from the distance]] gain bonus from the Archery secondary skill when using their ability, and if a creature engages into [[melee]] combat, it gains bonus to its damage from Offense secondary skill. For ranged attacks, Archery secondary skill may give 0, 0.10, 0.25 or 0.50 for I<sub>2</sub> depending on what level the skill is (if any). Similarly, Offense may give 0, 0.10, 0.20 or 0.30 to melee attacks. Because creatures cannot peform ranged and melee attacks at the same time, Archery and Offense modifiers cannot affect damage simultaneously.
Variable I<sub>2</sub> represents [[secondary skill]] modifier of either [[Archery]] or [[Offense]] depending on the attack type. Creatures able to [[Ranged attack|attack from the distance]] gain bonus from the Archery secondary skill when using their ability, and if a creature engages into [[melee]] combat, it gains bonus to its damage from Offense secondary skill. For ranged attacks, Archery secondary skill may give 0, 0.10, 0.25 or 0.50 for I<sub>2</sub> depending on what level the skill is (if any). Similarly, Offense may give 0, 0.10, 0.20 or 0.30 to melee attacks. Because creatures cannot peform ranged and melee attacks at the same time, Archery and Offense modifiers cannot affect damage simultaneously.


Variable I<sub>3</sub> is related to Archery and Offense modifiers through heroes who specilize in these skills. There are three heroes specializing in Archery or Offense; Orrin specializes in Archery, while Gundula and Crag Hack specialize Offense (also Corkes in HotA). They receive additional bonus from Archery or Offense secondary skill, as calculated with the following formula:
Variable I<sub>3</sub> is related to Archery and Offense modifiers through heroes who specilize in these skills. There are three heroes specializing in Archery or Offense; Orrin specializes in Archery, while Gundula and Crag Hack specialize Offense. They receive additional bonus from Archery or Offense secondary skill, as calculated with the following formula:


<big><code>I<sub>3</sub> = 0.05 &times; hero level &times; I<sub>2</sub></code></big>
<big><code>I<sub>3</sub> = 0.05 &times; hero level &times; I<sub>2</sub></code></big>


As can be seen from the formula, the specialty bonus requires that the hero has the appropriate secondary skill, otherwise I<sub>2</sub> becomes 0, which leads I<sub>3</sub> to become 0 as well. In other words, Orrin does not receive his specialty bonus if he does not have Archery secondary skill; same applies to Gundula and Crag Hack with Offense (also Corkes in HotA). By default these heroes start with the skill they specialize in, but in custom maps the map-maker may change the starting skills.
As can be seen from the formula, the specialty bonus requires that the hero has the appropriate secondary skill, otherwise I<sub>2</sub> becomes 0, which leads I<sub>3</sub> to become 0 as well. In other words, Orrin does not receive his specialty bonus if he does not have Archery secondary skill; same applies to Gundula and Crag Hack with Offense. By default these heroes start with the skill they specialize in, but in custom maps the map-maker may change the starting skills.


A special case of the variable I<sub>3</sub> is [[Adela]] and her [[Bless]] specialty. Adela's Bless maximizes base damage as usual, but also deals extra damage according to the following formula:
A special case of the variable I<sub>3</sub> is [[Adela]] and her [[Bless]] specialty. Adela's Bless maximizes base damage as usual, but also deals extra damage according to the following formula:
Line 101: Line 101:


==== Luck as combat modifier – variable I<sub>4</sub> ====
==== Luck as combat modifier – variable I<sub>4</sub> ====
The [[luck]] variable may be either 0 or 1.00, depending on whether or not the attacking creatures gets "a lucky strike". This is determined by the combat variable luck, which may be 0 (neutral), +1 (positive), +2 (good) or +3 (excellent). These values determine how often lucky strikes occur. These probabilities are, respectively, 0/24 (0%), 1/24 (4.17%), 1/12 (8.33%) and 1/8 (12.5%). Luck may be affected by artifacts, creature special abilities, adventure map locations, spells and the [[Luck (secondary skill)|Luck]] secondary skill.
The [[luck]] variable may be either 0 or 1.00, depending on whether or not the attacking creatures gets "a lucky strike". This is determined by the combat variable luck, which may be 0 (neutral), +1 (positive), +2 (good) or +3 (excellent). These values determine how often lucky strikes occur. These probabilities are, respectively, 0/24 (0%), 1/24 (4.17%), 1/12 (8.33%) and 1/8 (12.5%). Luck may be affected by artifacts, adventure map locations, spells and the [[Luck (secondary skill)|Luck]] secondary skill.


==== Creature abilities – variable I<sub>5</sub> ====
==== Creature abilities – variable I<sub>5</sub> ====
Line 116: Line 116:
Armorer has two unexpected side effects. First, heroes with Armorer take extra damage from [[arrow tower]]s. The damage reduction is reversed, as if the sign within the parenthesis would be plus instead of minus. Second, damage is reduced by 1 if creatures from a hero with Armorer take an amount of damage that is exactly an integer value. Thus, if 100 [[Peasant]]s attack a stack of Peasants commanded by a hero with basic Armorer (and the ADD is 0), damage is not 100 &times; 1 &times;(1 - 0.05) = 95, but 94. If the attack had instead been performed by 99 Peasants, the damage would be 99 &times; 1 &times;(1 - 0.05) = 94.05, which is not an integer value and therefore rounded off in the usual way, that is, to 94.
Armorer has two unexpected side effects. First, heroes with Armorer take extra damage from [[arrow tower]]s. The damage reduction is reversed, as if the sign within the parenthesis would be plus instead of minus. Second, damage is reduced by 1 if creatures from a hero with Armorer take an amount of damage that is exactly an integer value. Thus, if 100 [[Peasant]]s attack a stack of Peasants commanded by a hero with basic Armorer (and the ADD is 0), damage is not 100 &times; 1 &times;(1 - 0.05) = 95, but 94. If the attack had instead been performed by 99 Peasants, the damage would be 99 &times; 1 &times;(1 - 0.05) = 94.05, which is not an integer value and therefore rounded off in the usual way, that is, to 94.


==== Magic shields - variable R<sub>4</sub> ====
==== Magic shields - Variable R<sub>4</sub> ====
There are many spells that modify damage, but most do so by increasing or decreasing the attack and defense skills of allied or enemy troops. [[Stone Skin]], for example, increases an allied unit's defense skill, and therefore modifies damage by affecting variable R<sub>1</sub>. The only spells that modify damage directly are [[Shield]], [[Air Shield]], and [[Forgetfulness]]. Shield reduces all [[melee]] damage done to the hero's troops by 15% (R<small>4</small> = 0.15), or even by 30% when cast with advanced or expert proficiency. [[Air shield]] reduces all [[ranged attack|ranged]] damage done to the hero's troops by 25% (R<small>4</small> = 0.25), or by 50% when cast with advanced or expert proficiency. Similarly to Armorer and arrow towers, also Air Shield actually increases the damage from arrow towers instead of decreasing it.
There are many spells that modify damage, but most do so by increasing or decreasing the attack and defense skills of allied or enemy troops. [[Stone Skin]], for example, increases an allied unit's defense skill, and therefore modifies damage by affecting variable R<sub>1</sub>. The only spells that modify damage directly are [[Shield]], [[Air Shield]], and [[Forgetfulness]]. Shield reduces all [[melee]] damage done to the hero's troops by 15% (R<small>4</small> = 0.15), or even by 30% when cast with advanced or expert proficiency. [[Air shield]] reduces all [[ranged attack|ranged]] damage done to the hero's troops by 25% (R<small>4</small> = 0.25), or by 50% when cast with advanced or expert proficiency. Similarly to Armorer and arrow towers, also Air Shield actually increases the damage from arrow towers instead of decreasing it.


Line 130: Line 130:
The spell [[Blind]] is deactivated when a blinded creature stack is attacked. Any retaliation against this attack will not be at full strength. It will be at only 50% strength (R<small>7</small> = 0.50) when Blind is cast with basic or no proficiency, and at 25% (R<small>7</small> = 0.25) when cast with advanced proficiency. An attack that deactivates expert Blind cannot be retaliated against, but the targeted creature stack does retain its ability to retaliate against another attack in that same combat round. [[Unicorn]]s and [[War Unicorn]]s cast Blind with basic proficiency, unless the battle takes place on [[Magic Plains]].  
The spell [[Blind]] is deactivated when a blinded creature stack is attacked. Any retaliation against this attack will not be at full strength. It will be at only 50% strength (R<small>7</small> = 0.50) when Blind is cast with basic or no proficiency, and at 25% (R<small>7</small> = 0.25) when cast with advanced proficiency. An attack that deactivates expert Blind cannot be retaliated against, but the targeted creature stack does retain its ability to retaliate against another attack in that same combat round. [[Unicorn]]s and [[War Unicorn]]s cast Blind with basic proficiency, unless the battle takes place on [[Magic Plains]].  


Additionally, when [[Forgetfulness]] cast with basic or no proficiency, it causes half of an enemy creature stack to forget to use its ranged attack, effectively halving its ranged damage (R<small>7</small> = 0.50). Due to a bug, shooter's melee attack damage, affected by Forgetfulness, is also decreased by half (R<small>7</small> = 0.50) (fixed in {{hota}}{{-wh}}).
Additionally, when [[Forgetfulness]] cast with basic or no proficiency, it causes half of an enemy creature stack to forget to use its ranged attack, effectively halving its ranged damage (R<small>7</small> = 0.50). Due to a bug, shooter's melee attack damage, affected by Forgetfulness, is also decreased by half (R<small>7</small> = 0.50).


==== Creature Specialties - variable R<sub>8</sub> ====
==== Creature Specialties - variable R<sub>8</sub> ====
Line 146: Line 146:


FS is a percentage that equals 0.20 for Efreet Sultans and (basic) Fire Shield, 0.25 for advanced Fire Shield, and 0.30 for expert Fire Shield.
FS is a percentage that equals 0.20 for Efreet Sultans and (basic) Fire Shield, 0.25 for advanced Fire Shield, and 0.30 for expert Fire Shield.
==== Unluck as combat modifier - variable R<sub>9</sub> ====
[[Horn of the Abyss]] {{wh}} introduced negative effects of [[luck]]. R<sub>9</sub> variable may be either 0 or 0.50, depending on whether or not the attacking creatures gets "an unlucky strike". This is determined by combat variable luck, which may range from -3 to 3. Negative values can trigger unlucky strike to occur. The probability of such a strike is 1/12 (8.33%) if luck variable is -1, 1/6 (16.7%) for luck equal to -2, and 1/4 (25%) for luck equal to -3. Luck variable may be affected by artifacts, creature special abilities, adventure map locations, spells and the [[Luck (secondary skill)|Luck]] secondary skill.


== Example ==
== Example ==
Line 182: Line 179:
Thread at [http://heroescommunity.com HeroesCommunity], started by Ecoris: [http://heroescommunity.com/viewthread.php3?TID=21273 Rules for (Creature) Spells and Orbs] <br>
Thread at [http://heroescommunity.com HeroesCommunity], started by Ecoris: [http://heroescommunity.com/viewthread.php3?TID=21273 Rules for (Creature) Spells and Orbs] <br>
[http://homm3.plazacraft.com/damagesymulator HOMM3 Damage Simulator] is an implementation of the damage calculation based on this article.<br>
[http://homm3.plazacraft.com/damagesymulator HOMM3 Damage Simulator] is an implementation of the damage calculation based on this article.<br>
[http://heroes3wog.net/download/%5BManual%5D%20Tribute%20to%20Strategists.pdf Tribute to Strategists]<br>
[hxxp://heroes3wog.net/download/<nowiki>[Manual]Tribute to Strategists.pdf</nowiki>]<br>
[[Category: Combat]]
[[Category: Combat]]
[[Category: Terms]]
[[Category: Terms]]
Please note that all contributions to Heroes 3 wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)