Hit chance is the probability that an attack using hit chance hits. Regular hits will inflict [[damage]]. ==Main formula== This is the general formula: hit chance = skill - defense With: skill = skill * skill multiplier defense = defense * defense multiplier Skill and Defense refer to either Melee or Ranged Skill and Defense. See their respective sections in this article to calculate values. Defense is subject to [[Hit_Chance#Defense diminishing returns|diminishing returns]]. Additionally, being [[Hit_Chance#Surrounding|surrounded]] can decrease Melee Defense. ==Defense: halved effectiveness== Defense has reduced effectiveness over 50. Each point over this threshold will only give half value for the purpose of calculating hit chance: if defense > 50, then defense = 50 + (defense - 50) * 0.5 That, however, does not mean that it is not worth increasing defense past 50. On the contrary, the closer it brings the enemies to 5% hit chance, the greater returns are for each point spent. For example, if an enemy has melee attack 80 (hit chance 80 if melee defense is 0), then it takes 40 points (from 0 to 40) to halve that probability and double the survivability of the defender. Then it takes only 30 more points to double it again (defense 40=>70, hit chance 40=>20), then 20 points (defense 70=>90, hit chance 20=>10) and, finally, only 10 points (defense 90=>100, hit chance 10=>5). Despite the fact that defense is halved over 50, increasing it past that point is nonetheless much more effective than below that threshold. ==Surrounding== Surrounding occurs when two or more enemies are adjacent to an ally. Each enemy above the first reduces the defense of the surrounded unit making it easier for everyone to hit it. melee defense = melee defense - surround bonus * (adjacent enemies - 1) {| class="article-table sortable" |+Surround bonus |- ! colspan="3" align="center"|default = 5 |- ! scope="col" style="text-align: left"|Perk/Enemy ! scope="col" style="text-align: left"| = ! scope="col" style="text-align: left"| - |- |Wiederganger |10 | |- |Backstabber |10 | |- |Underdog | |5 |} ==Height level difference== If the attacker is on a tile that's more elevated than his target's a +10% bonus to hit chance is granted. If the attacker is on a tile that is below his target's a −10% penalty to hit chance per level difference is applied. ==Skills ignoring shields== Some skills ignore the defense bonus granted by shields. Shieldwall is unaffected. hit chance = hit chance - shield defense With Shield Expert, shield defense = shield defense * 1.25. {| class="article-table sortable" |+Skills ignoring shields |- ! scope="col" style="text-align: left"|Skill ! scope="col" style="text-align: left"|Condition |- |Cascade | |- |Flail | |- |Hail |Flail Mastery |- |Lash |Flail Mastery |- |Pound | |} ==Line of fire== The line of fire for ranged attacks can be obstructed by obstacles. Some hinder sight completely making it impossible to select the target they hide. Others just make it more difficult to reach a blocked target. In that case a red arrow blocked by a shield is displayed over the obstacle. The base hit chance penalty to reach a blocked target is 75%. The Bullseye Perk reduces it to 50% (* 0.66). If this fails the shot goes astray. One among the intended target obstacles is randomly chosen and targeted instead. If the shot goes astray a −15% penalty to hit chance is applied. Attacks made over allies at a range of 2 tiles are not blocked. ==Distance== The hit chance for some skills is modified with distance (in tiles). At distance = 1 (adjacent), hit chance is unmodified. hit chance = hit chance + (distance to target - 1) * hit chance per tile modifier {| class="article-table sortable" |+Hit chance per tile modifier |- ! colspan="3" align="center"|default = 0 |- ! scope="col" style="text-align: left"|Skill/Perk ! scope="col" style="text-align: left"| - ! scope="col" style="text-align: left"| + |- |Aimed Shot |2 | |- |Quick Shot |4 | |- |Shoot Bolt |3 | |- |Shoot Heavy Bolt |3 | |- |Throw Axe |10 | |- |Throw Bola |10 | |- |Throw Javelin |10 | |- |Throw Spear |10 | |} ==Hit chance range== Hit chance for regular attacks cannot be lower than 5% and cannot go higher than 95%. hit chance = max(5, min(95, hit chance)) ==Auto hit== Utility skills will always hit. hit chance = 100 ==Hit roll== The hit roll is a random number between 1 and 100. If it is lower than the hit chance the attack hits. hit roll = rand(1, 100) hit = hit roll <= hit chance ==Combat difficulty== If beginner combat difficulty has been selected all hit rolls are modified in favor of the player making it easier for the player to hit enemies and harder for enemies to hit the player. player hit roll = hit roll - 5 enemy hit roll = hit roll +5 ==Reroll== If the target is hit and has the Lucky Trait the hit roll is rolled again (once). ==Scatter== Projectiles that miss a target (intended or not) at a distance > 2 tiles can scatter and hit adjacent targets. For attackers other than the player the chance is 25% but no ally must be adjacent to the target. For those attackers as well as player controlled units either one of these additional conditions must be met: * the skill ignores shields * the target has no shield * hit roll > hit chance + (shield + shieldwall bonus) * 2 So even if the target has a shield there's a chance for the projectile to scatter. The shield and Shiedwall bonus take into account Shield Expert. A scattered shot hits as normal but it cannot go astray or scatter again. ==Critical hit== If a target is hit a roll is made to determine what body part is hit. If the head is hit the hit is a critical hit and will do additional [[damage]]. critical hit chance = chance to hit head * chance to hit head multiplier {| class="article-table sortable" |+Chance to hit head |- ! colspan="2" align="center" |default = 25 |- ! scope="col" style="text-align: left" |Skill/BG/Perk ! scope="col" style="text-align: left" | + |- |Hail |100 |- |Lash |100 |- |Bite (Wiederganger) |15 |- |Juggler |5 |- |Executioner |10 |- |Killer on the Run |10 |- |Head Hunter (after hit) |100 |} {| class="article-table sortable" |+Chance to hit head |- ! colspan="2" align="center" |default = 25 |- ! scope="col" style="text-align: left" |Weapon ! scope="col" style="text-align: left" | + |- |Reach melee weapons |5 |- |Two-handed swords (all) |5 |- |One-handed Flails (all) |10 |- |Two-handed Flails (all) |15 |- |Throwing Axes |5 |} {| class="article-table sortable" |+Chance to hit head multiplier |- ! colspan="2" align="center" |default = 1 |- ! scope="col" style="text-align: left" |Skill ! scope="col" style="text-align: left" |= |- |Terror |0 |- |Puncture |0 |} ==Defense== Defense helps avoid hits. Melee Defense protects against melee attacks while Ranged Defense protects against ranged attacks. Defense is affected by many variables. Modifiers specific to a type are listed under 'Melee' or 'Ranged' sections. Enemies, backgrounds and levels will not be studied here. See the relevant articles. ===Trait=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" | + ! scope="col" style="text-align: left" | - |- |Cocky | |5 |- |Huge | |5 |- |Paranoid |5 | |- |Tiny |5 | |} ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + |- |Sure Footing | |5 |- |Weasel |Retreating |25 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" | + |- |Swift |5 |} ===Perk=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + |- |Dodge | |max(0, initiative) |- |Shield Expert |Shield equipped |shield bonus * 0.25 |} ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + |- |Reach Advantage |Attack hit |stacks * 5 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" | + |- |Anticipation |distance * (1 + ranged defense * 0.1) (minimum 10) |} ===Item=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Item ! scope="col" style="text-align: left" | + |- |[[Shields]] |various |} ===Skill=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Skill ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + |- |Shieldwall |No Shield Expert |shield bonus |- |Shieldwall |Shield Expert |shield bonus * 1.25 |- |Shieldwall |Adjacent Shieldwall |5 * count |} ===Effect=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" | + ! scope="col" style="text-align: left" | - |- |Possessed |10 | |- |RAGE!!! ([[Strange Mushrooms]]) | |15 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" |* ! scope="col" style="text-align: left" | - |- |Nighttime |0.7 | |- |RAGE!!! ([[Strange Mushrooms]]) | |15 |} ===Injury=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Sick |0.75 |} ===Event=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Event ! scope="col" style="text-align: left" | + |- |[[Apprentice Learns]] |rand(2, 4) |- |[[Brawler Teaches]] |rand(1, 2) |- |[[Combat Drill]] |rand(0, 2) |- |[[Hedge Knight vs Hedge Knight]] |rand(1, 2) |- |[[Swordmaster Teaches]] |rand(1, 4) |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Event ! scope="col" style="text-align: left" | + |- |[[Historian Mysterious Text]] |1 |- |[[Juggler Tempts Fate]] |2 |} ==Defense Multiplier== ===Trait=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" |* |- |Addict |0.9 |} ===Perk=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" |* |- |Lonewolf |4 tiles away from ally |1.15 |} ===Morale=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Morale ! scope="col" style="text-align: left" |* |- |Confident |1.1 |- |Wavering |0.9 |- |Breaking |0.8 |- |Fleeing |0.7 |} ===Effect=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" |* |- |Swarm of Insects |0.5 |- |Trapped in Net |0.55 |- |Trapped in Vines |0.65 |- |Trapped in Web |0.5 |- |Drunk |0.75 |- |Hangover |0.9 |} ===Injury=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Deep Face Cut |0.75 |- |Fractured Skull |0.5 |- |Severe Concussion |0.5 |- |Broken Knee |0.6 |} ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Cut Leg Muscles |0.6 |- |Fractured Elbow |0.75 |- |Pierced Leg Muscles |0.7 |- |Broken Elbow Joint |0.7 |} ===Terrain=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Terrain ! scope="col" style="text-align: left" |* |- |Swamp |0.75 |} ==Skill (accuracy)== Skill increases chance to hit. Melee skill targets melee defense while ranged skill targets ranged defense. Skill is affected by many variables. Modifiers specific to a type are listed under 'Melee' or 'Ranged' sections. Enemies, backgrounds and levels will not be studied here. See the relevant articles. ===Trait=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" | + ! scope="col" style="text-align: left" | - |- |Brute | |5 |- |Clumsy | |5 |- |Dexterous |5 | |- |Drunkard | |5 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" | - |- |Drunkard |10 |} ===Perk=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + |- |Fast Adaptation |Miss |10 * stacks |} ===Skill=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Skill ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" | + ! scope="col" style="text-align: left" | - |- |2 tiles melee attack |No mastery | |15 |- |Hand-to-Hand Attack | | |1 |- |Hook | |10 | |- |Impale | |10 | |- |Knock Back |No Shield Expert |25 | |- |Knock Back |Shield Expert |40 | |- |Overhead Strike | |5 | |- |Prong | |10 | |- |Puncture | | |15 |- |Repel | |10 | |- |Round Swing |Axe Mastery | |10 |- |Round Swing |No Axe Mastery | |15 |- |Rupture | |5 | |- |Shatter |Hammer Mastery | |5 |- |Shatter |No Hammer Mastery | |10 |- |Slash | |10 | |- |Lightbringer | |10 | |- |Split |No Sword Mastery | |5 |- |Swing |No Sword Mastery | |5 |- |Thresh |Flail Mastery | |10 |- |Thresh |No Flail Mastery | |15 |- |Thrust | |20 | |- |Riposte |Sword Mastery | |0 |- |Riposte |No Sword Mastery | |10 |- |Disarm |Cleaver Mastery | |10 |- |Disarm |No Cleaver Mastery | |20 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Skill ! scope="col" style="text-align: left" | + |- |Aimed Shot |10 + additional accuracy |- |Quick Shot |additional accuracy |- |Shoot Bolt |15 |- |Shoot Heavy Bolt |10 |- |Throw Axe |20 |- |Throw Bola |20 |- |Throw Javelin |20 |- |Throw Spear |20 |} ===Effect=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" | + |- |Possessed |15 |} ===Injury=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Sick |0.75 |} ===Event=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Event ! scope="col" style="text-align: left" | + |- |[[Apprentice Learns]] |rand(2, 4) |- |[[Brawler Teaches]] |rand(1, 2) |- |[[Butcher Gives Pointers]] |2 |- |[[Combat Drill]] |rand(0, 2) |- |[[Farmer Old Tricks]] |rand(2, 4) |- |[[Hedge Knight vs Hedge Knight]] |rand(1, 2) |- |[[Juggler Tempts Fate]] |1 |- |[[The Horseman]] |1 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Event ! scope="col" style="text-align: left" | + |- |[[Archery Stunt]] |1 |- |[[Cat on Tree]] |1 |- |[[Combat Drill]] |rand(0, 2) |- |[[Shooting Contest]] |1 |} ==Skill (accuracy) multiplier== ===Trait=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Trait ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" |* |- |Addict | |0.9 |- |Team Player |Attacking ally |0.5 |} ===Perk=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Perk ! scope="col" style="text-align: left" |Condition ! scope="col" style="text-align: left" |* |- |Lonewolf |4 tiles away from ally |1.15 |} ===Morale=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Morale ! scope="col" style="text-align: left" |* |- |Confident |1.1 |- |Wavering |0.9 |- |Breaking |0.8 |- |Fleeing |0.7 |} ===Effect=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" |* ! scope="col" style="text-align: left" | - |- |Swarm of Insects |0.5 | |- |Drunk |0.75 | |- |Hangover |0.9 | |- |Overwhelm | |0.1 * count |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Effect ! scope="col" style="text-align: left" |* |- |Nighttime |0.7 |} ===Injury=== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Broken Arm |0.5 |- |Crushed Finger |0.95 |- |Cut Arm |0.85 |- |Deep Face Cut |0.75 |- |Fractured Hand |0.8 |- |Fractured Skull |0.5 |- |Pierced Arm Muscles |0.75 |- |Pierced Hand |0.8 |- |Severe Concussion |0.5 |- |Smashed Hand |0.6 |- |Split Hand |0.5 |- |Broken Elbow Joint |0.8 |- |Missing Finger |0.95 |} ====Ranged==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Injury ! scope="col" style="text-align: left" |* |- |Grazed Eye Socket |0.5 |- |Missing Eye |0.5 |} ===Terrain=== ====Melee==== {| class="article-table sortable" |- ! scope="col" style="text-align: left" |Terrain ! scope="col" style="text-align: left" |* |- |Swamp |0.75 |} [[Category:Game Mechanics]]