v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Combat"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Removing {{migrated article}})
(23 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{quality|unrated}}{{av}}
+
{{Quality|Exceptional|14:28, 17 May 2015 (UTC)}}
 +
{{av}}
 +
{{Translation
 +
| dwarven = zoluth
 +
| elvish  = moÿira
 +
| goblin  = nur
 +
| human  = thec
 +
}}
 +
: ''(This page ''will'' cover the mechanics of combat - as they're all figured out. For now, you may want to refer to [[Combat skill]]s, [[Armor]] and/or [[Weapon]]s) for specific information on those aspoects. The effects of many [[material]] properties on combat are somewhat understood (see the [[Material science]] page.
  
:''(This page ''will'' cover the mechanics of combat - once they're figured out. For now, you may want to refer to [[Combat skill]]s, [[Armor]] or [[Weapon]]s). The effects of many [[Material]] properties on combat are somewhat understood (see the [[Material science]] page).''
+
: For a  "How to", [[Military]] is the main article, or see [[Attack]] for the quick "right now!" version.)''
  
'''Combat''' in Dwarf Fortress is unlike that in most strategy and role playing games. Rather than having hit points, units have a collection of body parts, such as limbs, head(s) and a torso. These have sub parts: limbs have skin, fat, muscle, tendons, bones, nerves and arteries; heads have brains; and torsos have internal organs. Damage to these parts and sub parts causes various negative effects, such as fainting, vomiting, loss of mobility due to bone fractures or nerve damage, and eventually leading to death from organ failure or blood loss. The combat system tries to present a fairly realistic depiction of combat, with several important consequences.
+
[[File:dwarf_fight.jpg|thumb|250px|right|{{DFtext|Urist McSwingdeath felt|7:0}}{{DFtext| satisfied|2:0:1}}{{DFtext| striking his enemies with perfect poise.|7:0}}]]'''Combat''' in ''Dwarf Fortress'' is unlike that in most strategy and role-playing games. Rather than having hit points, units have a collection of body parts, such as limbs, head(s) and a torso. These have sub-parts: limbs have skin, fat, muscle, tendons, bones, nerves and arteries; heads have brains, eyes, noses, mouths, teeth and tongues; and torsos have internal organs. Damage to these parts and sub-parts causes various negative effects, such as fainting, vomiting, loss of mobility due to bone fractures or nerve damage, and eventually leading to death from organ failure or blood loss. The combat system tries to present a fairly realistic depiction of combat, with several important consequences.
  
Although creatures and players may direct and focus their attacks, combat is random in nature. A glancing blow can get lucky and damage a vital organ, or open an artery to cause massive blood loss. Weapons cause damage specific to their class, be they axes or swords or backpacks. You will often see creatures attacked with impaling weapons such as spears or crossbow bolts die of asphyxiation when their lungs are pierced, while slashing weapons are more likely to open an artery or lop off a limb, and blunt weapons will cause fractures. Some weapons may become stuck in the enemy: if the weapon wielder can maintain control he can continue to do damage and immobilize the enemy, but if the enemy gains control of the stuck weapon, the weapon's wielder will be disarmed.  
+
Although [[creature]]s and players may direct and focus their attacks, combat is random in nature. A glancing blow can get lucky and damage a vital organ, or open an artery to cause massive blood loss. Weapons cause damage specific to their class, be they [[Battle axe|axes]] or [[Short sword|swords]] or [[backpack]]s. You will often see creatures attacked with impaling weapons such as [[spear]]s or [[crossbow]] bolts die of asphyxiation when their lungs are pierced, while slashing weapons are more likely to open an artery or lop off a limb, and blunt weapons will cause fractures. Some weapons may become stuck in the enemy: if the weapon wielder can maintain control he can continue to do damage and immobilize the enemy, but if the enemy gains control of the stuck weapon, the weapon's wielder will be disarmed.  
  
Reading the combat {{k|r}}eports will give you a gruesome blow-by-blow of the fighting, telling you exactly what each strike did. It is important to note that while most natural creatures have the same sorts of vulnerabilities due to their similar collection of body parts, procedurally generated creatures such as Titans, Megabeasts and Demons may lack these vulnerabilities entirely. Killing a shambling pile of refuse may prove to be a very, very long process due to the fact that it has no vital parts, and metallic creatures may prove to be nearly invulnerable. When all else fails, a [[cave-in]] or [[obsidian]] casting means certain death for anything caught in it.
+
Reading the combat {{k|r}}eports will give you a gruesome blow-by-blow of the fighting, telling you exactly what each strike did. It is important to note that, while most natural creatures have the same sorts of vulnerabilities due to their similar collections of body parts, procedurally-generated creatures such as [[bogeymen]], [[forgotten beast]]s and [[titan]]s may lack these vulnerabilities entirely. Killing a shambling pile of refuse may prove to be a very, very long process due to the fact that it has no vital parts, and metallic creatures may prove to be nearly invulnerable. When all else fails, a [[cave-in]] or [[obsidian]] casting means certain death for anything caught in it.
  
As in real life, combat in Dwarf Fortress is chaotic, deadly, and gruesome. Numbers seem to matter, as defending against multiple opponents can be difficult even for a decent fighter. Your warriors will not suffer loss of generic hit points, and can not simply rest to regain them. Injuries must be dealt with in an appropriate fashion for healing to occur: broken bones must be set, wounds must be cleaned and stitched up, and for some things such as concussions, you can only wait and hope the victim eventually regains consciousness.
+
As in real life, combat in ''Dwarf Fortress'' is chaotic, deadly, and gruesome. Numbers seem to matter, as defending against multiple opponents can be difficult, even for a decent fighter. Your warriors will not suffer loss of generic hit points, and cannot simply rest to regain them. Injuries must be dealt with in an appropriate fashion for healing to occur: broken bones must be set, wounds must be cleaned and stitched up, and for some things such as concussions, you can only wait and hope the victim eventually regains consciousness.
  
==General Observations==
+
==General observations==
 
* Blunt weapons use "contact area" and weapon mass to scale damage
 
* Blunt weapons use "contact area" and weapon mass to scale damage
* Edge weapons seem to use the progression Silver->Copper->Iron->Bronze->Steel->Adamantine for material strength
+
* Edge weapons seem to use the progression [[Silver]] 🡆 [[Copper]] 🡆 [[Iron]] 🡆 [[Bronze]] 🡆 [[Steel]] 🡆 [[Adamantine]] for material strength
 
* Edge weapons use "contact area" and "penetration size" to determine if an attack is slashing or stabbing in nature
 
* Edge weapons use "contact area" and "penetration size" to determine if an attack is slashing or stabbing in nature
 
* Lower contact area results in better ability to pierce armor, higher contact area increases the amount of tissue affected by an attack.
 
* Lower contact area results in better ability to pierce armor, higher contact area increases the amount of tissue affected by an attack.
Line 19: Line 27:
 
==Mechanics==
 
==Mechanics==
  
Based on information in the RAWs and in-game, Toady seems to use real-world material properties and almost-real physics for in-game behaviour. Using this as a starting point, we can roughly estimate some of the combat damage mechanics for both blunt and edged weapons.
+
Based on information in the [[raw]]s and in-game, [[Main:Toady One|Toady]] seems to use real-world material properties and almost-real physics for in-game behaviour. Using this as a starting point, we can roughly estimate some of the combat damage mechanics for both blunt and edged weapons.
  
==General Terms==
+
 
 +
===AI Behaviour===
 +
On seeing an enemy, military dwarves will rush towards their targets if they're able to path towards them.
 +
 
 +
====Weapon attacks====
 +
During most fights, attacks are targeted at a specific body part with a specific weapon, based on a few factors.
 +
 
 +
In adventurer mode, during a fight, each turn generates a randomised ease and squareness for each part on the target. If an auto-attack is made, the AI will take into account:
 +
*A combination of the ease and squareness of the attack.
 +
*Weapons at its disposal, including both held and natural weapons
 +
*Body parts, such as the head, although this seems to be considered a low priority
 +
 
 +
The AI can also perform wrestling, including the use of locks, choke-holds, and even forcefully removing equipment, although wrestling attacks are usually uncommon when a weapon is equipped.
 +
 
 +
If the target is unconscious or immobilised, such as becoming exhausted or caught in webs, all strikes against that target will become perfectly accurate and perfectly squared, and the AI will always prioritise striking the head. This can make helms particularly valuable in some circumstances:
 +
*A dwarf with nothing but a steel helm might survive longer in a goblin siege if they were unconscious, rather than awake, although the survival chances may be cut short if a troll or goblin wrestles the helm off them. Additionally, fatal spinal injuries may still occur.
 +
*Against forgotten beasts with webs, helms can greatly reduce losses in a melee fight - the beast will web the nearest dwarf it finds and repeatedly strike against the helm of its victim. While the dwarf will certainly die due to spinal injuries, they can give valuable time to their friends to either attack or flee.
 +
 
 +
 
 +
Note that the AI does not seem to account for a body part's injuries - an already-disarmed hand or unusable leg can still be targeted, despite the presence of functional parts.
 +
     
 +
*Example: A goblin might suffer fatal upper spine injury from a blunt attack, rendering everything below their head useless - however, the dwarves will fail to recognise this and can continue to attack their body. This can result in dwarves becoming tired needlessly, increasing their own chances of death, especially in sieges.
 +
 
 +
==General terms==
 
:'''Stress''' - Force per area = F/A
 
:'''Stress''' - Force per area = F/A
 
:'''Strain''' - Deformation of a solid due to stress = Stress/Young's Modulus
 
:'''Strain''' - Deformation of a solid due to stress = Stress/Young's Modulus
Line 29: Line 60:
 
:'''Fracture Strength''' is the amount of stress required to permanently break (rupture) a material  
 
:'''Fracture Strength''' is the amount of stress required to permanently break (rupture) a material  
 
:'''Strain at yield''' is the amount of deformation (bending) that occurs at the yield point
 
:'''Strain at yield''' is the amount of deformation (bending) that occurs at the yield point
:Implications to Dwarf Fortress Combat
+
:Implications to ''Dwarf Fortress'' Combat
 
 
==Armor Properties==
 
  
 +
==Armor properties==
 
*Material Properties
 
*Material Properties
 
:* Blunt Protection
 
:* Blunt Protection
Line 45: Line 75:
  
 
*Item Properties
 
*Item Properties
:*'''Armor Level''': Layer number in which armor is worn. Lower numbers will be equipped first, and later numbers equipped if space is available.
+
:*'''Armor Level''': Layer number in which armor is worn. Lower numbers will be equipped first, and later numbers equipped if space is available.
 
:*'''Coverage'': Some armor covers more of the body than others.
 
:*'''Coverage'': Some armor covers more of the body than others.
  
==Weapon Properties==
+
==Weapon properties==
 
 
 
*Material Properties
 
*Material Properties
 
:*Common
 
:*Common
::*'''Contact Area''': Determines the surface area hit by the weapon. Likely in mm<sup>2</sup>.
+
::*'''Contact Area''': Determines the surface area hit by the weapon. Likely in mm<sup>2</sup>.
 
::*'''Velocity Multiplier''': Effectively increases the velocity of the weapon swing.
 
::*'''Velocity Multiplier''': Effectively increases the velocity of the weapon swing.
  
 
:*Blunt Weapons
 
:*Blunt Weapons
::*Blunt weapons are all about weapon mass, contact area, and velocity. Apply a large force to a small area for bone crushing goodness.
+
::*Blunt weapons are all about weapon mass, contact area, and velocity. Apply a large force to a small area for bone crushing goodness.
 
::*'''Mass''' is likely material '''Density''' times weapon '''Size'''
 
::*'''Mass''' is likely material '''Density''' times weapon '''Size'''
 
::*'''Momentum''' is '''Mass''' times '''Velocity'''
 
::*'''Momentum''' is '''Mass''' times '''Velocity'''
Line 67: Line 96:
 
::*Edged weapons rely on a combination of size, mass, contact area, penetration depth, and velocity
 
::*Edged weapons rely on a combination of size, mass, contact area, penetration depth, and velocity
  
==Attack Speed==
+
==Attack speed==
 +
{{old}}
 +
Attack speed has been overhauled for DF2014. Research is impending.
 +
 
 +
==Other combat factors==
 +
* Both [[adventurer mode]] and [[fortress mode]] keeps track of which way a creature is facing, based on its last actions. Attacks from behind will have increased accuracy, especially if the target hasn't spotted the attacker yet.
 +
* Movement speed plays an important role in melee combat, as it determines both dodging efficiency and opponent's accuracy. Creatures that are either prone or naturally slow (such as [[giant snail]]s) will have a hard time dodging attacks, so breaking one of the opponent's legs is worth the effort.
 +
* Creature size, especially relative to other combatants, has a considerable effect on combat. In addition to individual strength stats, larger targets hit with greater force, though whether this is absolute or relative to the target's size is uncertain. Charging and wrestling also favor the larger combatant.
 +
* As of update 0.43.04 shakes and strong attacks will translate to other bodyparts. For example if you hit an enemy in the head with a blunt weapon, the force from that attack may also hurt the neck of the enemy. Even if the attack is blocked by armor, the force of the blow can still damage other bodyparts.
 +
 
 +
==Arena test results==
 +
* See [[Material]]
 +
 
 +
==Adventurer mode==
 +
 
 +
{| class="wikitable" style="border:1px solid #ccc;"
 +
|-
 +
| {{k|8}} {{k|2}} {{k|4}} {{k|6}} {{k|7}} {{k|9}} {{k|1}} {{k|3}}
 +
| Attack adjacent hostile creature
 +
|-
 +
| {{k|↑}} {{k|↓}} {{k|←}} {{k|→}}
 +
| Attack adjacent hostile creature
 +
|-
 +
| {{k|A}}
 +
| Attack an adjacent creature.
 +
|-
 +
| {{k|f}}
 +
| Fire a projectile
 +
|-
 +
| {{k|t}}
 +
| Throw an item
 +
|-
 +
| {{k|C}}
 +
| Open combat preferences interface
 +
|}
 +
 
 +
[[Combat]] is the fine art of using physical force to cause injury and death, and it is particularly fun in ''Dwarf Fortress''.
 +
 
 +
=== Melee/ranged attacks ===
 +
 
 +
Hostile creatures can be attacked using a non-aimed attack by simply advancing towards your enemy using the arrow keys. Doing a non-aimed attack will also have a chance of freeing up any stuck weapon, though you are more likely to accomplish this by moving away from the enemy, or doing a complex interaction with the weapon.
 +
 
 +
Any creature can be attacked by standing next to it and pressing {{k|A}}. Attacking a friendly or unconscious creature (which includes wild animals for elves) will further require a confirmation, given using  {{k|alt}}+{{k|y}}.
 +
 
 +
After selecting (and maybe confirming) which creature you want to attack, {{k|a}} will allow you to make an '''aimed attack'''. You must first select the body part that you want to attack. Look at the difficulty rating for various possible attacks. Impossible attacks will be nearly impossible to land and Easier attacks will be very easy to land. The difficulty rating for an attack does not change depending on your weapon skill. Based on player experiences, a Grand Master weapon user can almost always land a "Tricky" strike, while a Novice generally cannot. Attacks on various locations will also have limits on how "squarely" they can land (due to being out of reach, for example). Square and very square attacks will deal more damage.{{Verify}} Attacks which "can't land squarely" are generally still effective.
 +
 
 +
Attacks aimed at the head are the most effective; a single attack to the cranium with a weapon will usually put an end to the fight. Aimed attacks are especially useful for dismembering opponents. Opponents who are missing a foot will fall over, thereby greatly lowering their speed, and giving you an immediate edge in the fight. Cutting off both hands is also highly recommended for obvious reasons. After all, a field full of armless, one-legged enemies can be a big experience booster for your character and your companions.
 +
 
 +
Aimed attacks are also especially helpful when fighting giant beasts. Some enemies like giant desert scorpions have lots of redundant body parts, and random attacks waste valuable time on low priority areas while the scorpion is busy injecting venom into the whole party. Lastly, aimed attacks allow you to grab trophies that are not available via butchering. For example, a minotaur's horns can be cut off during a fight, but since it's a humanoid, most adventurers will refuse to butcher its corpse after the fight. However, in DF2014, all butcherable corpses are able to be butchered, as long as the corpse isn't too mangled.
 +
 
 +
There are several options below the hitting menu. '''Quick attacks''' are faster than regular attacks but weaker. '''Heavy attacks''' are slower but hit harder. '''Wild attacks''' are faster and hit harder but are inaccurate. '''Precise attacks''' are very slow but are much more likely to hit. '''Multi-attacks''' allow you to attack several times in a row, at a great cost to the effectiveness of any one of the chosen attacks.
 +
 
 +
In addition to aimed attacks, pressing {{k|A}} also allows for the three defensive maneuvers: blocking, dodging and parrying. They do not have fixed keys, because their order changes if one or more is impossible (e.g. no blocking without a shield). When dodging you will be able to pick a direction, and your character will move one step in this direction, possibly avoiding any number of attacks. Note that you can dodge even if you are not being attacked. When blocking or parrying you can pick one attack and attempt to stop it, if several attacks are incoming, the remaining attacks will not be affected.
 +
 
 +
 
 +
To attack with a ranged weapon press the {{k|f}} key with a ranged weapon (bow, crossbow, etc.) equipped on one hand and select the square where you want to attack. Note that you need to have some sort of ammo, corresponding to the type of ranged weapon you are using (for example, bows use arrows, crossbows use bolts). Otherwise, a message stating "You have nothing left to fire." is displayed in brown. Similarly use the  {{k|t}} key to throw any random object in the same manner. Random objects appear to make a random attack if they happen to have more than one possible type.{{Verify}} For example, if you throw a sword it may hit with a blunt impact, a stabbing impact, or a slicing impact. Throwing crossbow bolts with sufficient throwing skill and strength seems to have an effect similar to firing them, although less powerful. On the plus side, you will never lose ammo if you throw it.
 +
 
 +
It is not possible to aim for specific body parts with ranged or thrown attacks.
 +
 
 +
{{k|t}}hrowing is generally a good skill to have for any adventurer, as it allows you to slow down fleeing foes, both on the ground and in the air without the need of equipping a (cross)bow. Just like {{k|l}}ooking, you can use throwing to view and hit enemies multiple Z levels away from you. If you're lucky, you can simply land a hit that causes the flying enemy to give in to pain, and then let gravity do the rest of the work. Even if the fall doesn't kill them, they will most likely be stunned long enough for you to run up and slaughter them.
 +
 
 +
=== Wrestling and unarmed attacks ===
 +
 
 +
:''Main article: [[Wrestling]]''
 +
 
 +
'''[[Wrestling]]''' (grappling) can be performed by selecting an enemy via {{k|A}} followed by {{k|b}} to wrestle. You can wrestle any enemy. Wrestling works somewhat like a targeted attack: Once you grab a creature by some body part, you may be able to make another wrestling attempt that will allow you to perform a throw or takedown. For a detailed list of moves, such as takedowns, throws, choke holds, etc., see [[Wrestling]]. It's also possible to punch, kick, and bite. These are not in the wrestling menu, but are performed like normal targeted attacks with {{k|A}}.
 +
 
 +
=== Weapons ===
 +
 
 +
[[Weapon]]s are basically divided into [[axe]], [[sword]], [[spear]], [[pike]], [[mace]], [[whip]], [[bow]] and [[hammer]], with various versions of these taking up the gray area.
 +
 
 +
=== Wounds ===
 +
 
 +
If you get wounded during combat, there's not much that you can do except perhaps run before you get more wounded. Be aware that movement speed while stunned, nauseous or winded is reduced, and might leave you open to fatal blows.  Your wounds will heal over time, so just travel around or sleep in a safe place. Some wounds, however, may never heal, leaving you permanently crippled. Obtaining a crutch may help with this. Or, if you are not already a vampire, then you can get bitten by a werebeast during full moon, which will heal all injuries once per month. If you have some bolts or arrows stuck in your body, they can be removed by using the complex interaction menu {{k|I}}. Select the stuck bolt or arrow from the list and then pull it out with {{k|a}} You'll probably start bleeding after you pull it out, but the bleeding is rarely anything to worry about.
  
Attack speed has been overhauled for DF2014. Research is impending.
+
=== Combat preferences ===
 +
 
 +
At any time during gameplay (except in fast travel mode), you can press {{k|C}} to open the Combat Preferences menu. There are three different preferences you can set: Attack, Dodge and Charge Defense. These have a few different sub-preferences each:
 +
 
 +
*'''{{k|a}}ttack'''
 +
**'''According to Opponent''' - The default setting. When set to this, charging happens more or less frequently, depending on the difference in size between you and the opponent. Bigger opponents get charged less, smaller more often. Can be very risky, since a random charge against a huge opponent is likely to get you knocked down and stunned. In the same vein, charging when close to obstacles or other environmental hazards is very dangerous, potentially fatal, if the enemy dodges you.
 +
**'''Strike''' - This setting ensures that you never charge an opponent, but rather just swing your weapon at them. This carries less risk than the above, but you're never going to knock anyone down without hitting their legs or spine. Very preferable against large opponents.
 +
**'''Charge''' - When set to this, you ALWAYS charge. When faced with numerous small enemies (Bogeymen in particular), this can be extremely useful, but remember to switch back when facing something bigger. Charging a large dragon is almost a certain death sentence.
 +
**'''Close Combat''' - With this setting, all your auto-attacks are grapples. Generally not very useful, since the random nature of it tends to prevent you from actually doing any damage with it, but if you continually auto-attack a harmless creature with it your wrestling-skill will be legendary in no time.  
  
==Other Combat Factors==
+
*'''{{k|d}}odge'''
 +
**'''Move Around''' - This means you can jump away from attacks, physically moving in a random direction. While this lets you dodge attacks more often, it can also result in you jumping into a wall or lake. If you're fighting in really tight spaces, or areas with large pits, you might want to switch to the other option.
 +
**'''Stand Ground''' - As can be expected, you stand your ground. No jumping around, which is useful in the above situation, but risky in the open. If you have room for jumping around, go with Move Around, but otherwise this could be a good idea.
  
* Both Adventurer Mode and Fortress Mode keeps track of which way a creature is facing, based on its last actions. Exact effects are unknown, but combat reports indicate when an attack is made from behind or from the side.
+
*'''{{k|c}}harge Defense'''
* Prone creatures are slower to both act and move. There seems to be a slight effect on how easy they are to hit with ranged weapons, but how melee attacks are affected is uncertain.
+
**'''According to Opponent''' - Again, the default setting. You're more likely to stand still against small enemies charging, but will probably prefer moving away from larger ones. Somewhat risky, in that even a somewhat small enemy can stun you by charging.
* Creature size, especially relative to other combatants, has a considerable effect on combat. In addition to individual strength stats, larger targets hitter with greater force, though if this is absolute or relative to the target's size is uncertain. Charging and wrestling also favor the larger combatant.
+
**'''Dodge Away''' - With this, you'll dodge away from charging enemies, if you can. It's not a sure bet, but it's very much worth it against enemies who like to charge. This is probably the most preferable mode, since you're not losing a whole lot by dodging a small foe charging, but dodging an angry night beast can save you from a world of pain.
 +
**'''Stand Ground''' - If you're certain of your physical superiority to the opponent, you can safely choose this. Standing your ground like a real man/woman might feel hardcore, but getting knocked down in a fight can be extremely dangerous. It probably has some use against bogeymen though, since they're quite small. If you really are much bigger than the enemy, you'll end up knocking THEM down. Most of the time though, charges heavily favor the attacker, so dodging away is probably preferable.
  
==Arena Test Results==
+
Using the Combat Preferences properly can actually save your hide, so they're worth fiddling with. Just don't forget that you've fiddled with them, since a misplaced charge or dodge could end up killing you.
  
* See [[Material]]
+
{{Category|Game mechanics}}
 +
[[ru:Combat]]

Revision as of 21:29, 26 October 2020

This article is about the current version of DF.
Note that some content may still need to be updated.

"Combat" in other Languages Books-aj.svg aj ashton 01.svg
Dwarven: zoluth
Elvish: moÿira
Goblin: nur
Human: thec
(This page will cover the mechanics of combat - as they're all figured out. For now, you may want to refer to Combat skills, Armor and/or Weapons) for specific information on those aspoects. The effects of many material properties on combat are somewhat understood (see the Material science page.
For a "How to", Military is the main article, or see Attack for the quick "right now!" version.)
Urist McSwingdeath felt satisfied striking his enemies with perfect poise.

Combat in Dwarf Fortress is unlike that in most strategy and role-playing games. Rather than having hit points, units have a collection of body parts, such as limbs, head(s) and a torso. These have sub-parts: limbs have skin, fat, muscle, tendons, bones, nerves and arteries; heads have brains, eyes, noses, mouths, teeth and tongues; and torsos have internal organs. Damage to these parts and sub-parts causes various negative effects, such as fainting, vomiting, loss of mobility due to bone fractures or nerve damage, and eventually leading to death from organ failure or blood loss. The combat system tries to present a fairly realistic depiction of combat, with several important consequences.

Although creatures and players may direct and focus their attacks, combat is random in nature. A glancing blow can get lucky and damage a vital organ, or open an artery to cause massive blood loss. Weapons cause damage specific to their class, be they axes or swords or backpacks. You will often see creatures attacked with impaling weapons such as spears or crossbow bolts die of asphyxiation when their lungs are pierced, while slashing weapons are more likely to open an artery or lop off a limb, and blunt weapons will cause fractures. Some weapons may become stuck in the enemy: if the weapon wielder can maintain control he can continue to do damage and immobilize the enemy, but if the enemy gains control of the stuck weapon, the weapon's wielder will be disarmed.

Reading the combat reports will give you a gruesome blow-by-blow of the fighting, telling you exactly what each strike did. It is important to note that, while most natural creatures have the same sorts of vulnerabilities due to their similar collections of body parts, procedurally-generated creatures such as bogeymen, forgotten beasts and titans may lack these vulnerabilities entirely. Killing a shambling pile of refuse may prove to be a very, very long process due to the fact that it has no vital parts, and metallic creatures may prove to be nearly invulnerable. When all else fails, a cave-in or obsidian casting means certain death for anything caught in it.

As in real life, combat in Dwarf Fortress is chaotic, deadly, and gruesome. Numbers seem to matter, as defending against multiple opponents can be difficult, even for a decent fighter. Your warriors will not suffer loss of generic hit points, and cannot simply rest to regain them. Injuries must be dealt with in an appropriate fashion for healing to occur: broken bones must be set, wounds must be cleaned and stitched up, and for some things such as concussions, you can only wait and hope the victim eventually regains consciousness.

General observations

  • Blunt weapons use "contact area" and weapon mass to scale damage
  • Edge weapons seem to use the progression Silver 🡆 Copper 🡆 Iron 🡆 Bronze 🡆 Steel 🡆 Adamantine for material strength
  • Edge weapons use "contact area" and "penetration size" to determine if an attack is slashing or stabbing in nature
  • Lower contact area results in better ability to pierce armor, higher contact area increases the amount of tissue affected by an attack.

Mechanics

Based on information in the raws and in-game, Toady seems to use real-world material properties and almost-real physics for in-game behaviour. Using this as a starting point, we can roughly estimate some of the combat damage mechanics for both blunt and edged weapons.


AI Behaviour

On seeing an enemy, military dwarves will rush towards their targets if they're able to path towards them.

Weapon attacks

During most fights, attacks are targeted at a specific body part with a specific weapon, based on a few factors.

In adventurer mode, during a fight, each turn generates a randomised ease and squareness for each part on the target. If an auto-attack is made, the AI will take into account:

  • A combination of the ease and squareness of the attack.
  • Weapons at its disposal, including both held and natural weapons
  • Body parts, such as the head, although this seems to be considered a low priority

The AI can also perform wrestling, including the use of locks, choke-holds, and even forcefully removing equipment, although wrestling attacks are usually uncommon when a weapon is equipped.

If the target is unconscious or immobilised, such as becoming exhausted or caught in webs, all strikes against that target will become perfectly accurate and perfectly squared, and the AI will always prioritise striking the head. This can make helms particularly valuable in some circumstances:

  • A dwarf with nothing but a steel helm might survive longer in a goblin siege if they were unconscious, rather than awake, although the survival chances may be cut short if a troll or goblin wrestles the helm off them. Additionally, fatal spinal injuries may still occur.
  • Against forgotten beasts with webs, helms can greatly reduce losses in a melee fight - the beast will web the nearest dwarf it finds and repeatedly strike against the helm of its victim. While the dwarf will certainly die due to spinal injuries, they can give valuable time to their friends to either attack or flee.


Note that the AI does not seem to account for a body part's injuries - an already-disarmed hand or unusable leg can still be targeted, despite the presence of functional parts.

  • Example: A goblin might suffer fatal upper spine injury from a blunt attack, rendering everything below their head useless - however, the dwarves will fail to recognise this and can continue to attack their body. This can result in dwarves becoming tired needlessly, increasing their own chances of death, especially in sieges.

General terms

Stress - Force per area = F/A
Strain - Deformation of a solid due to stress = Stress/Young's Modulus


Yield Strength is the amount of stress required to permanently deform (bend) a material (plastic deformation)
Fracture Strength is the amount of stress required to permanently break (rupture) a material
Strain at yield is the amount of deformation (bending) that occurs at the yield point
Implications to Dwarf Fortress Combat

Armor properties

  • Material Properties
  • Blunt Protection
  • Impact yield
  • Impact fracture
  • Impact strain at yield
  • Edge Protection
  • Shear yield
  • Shear fracture
  • Shear strain at yield
  • Item Properties
  • Armor Level: Layer number in which armor is worn. Lower numbers will be equipped first, and later numbers equipped if space is available.
  • 'Coverage: Some armor covers more of the body than others.

Weapon properties

  • Material Properties
  • Common
  • Contact Area: Determines the surface area hit by the weapon. Likely in mm2.
  • Velocity Multiplier: Effectively increases the velocity of the weapon swing.
  • Blunt Weapons
  • Blunt weapons are all about weapon mass, contact area, and velocity. Apply a large force to a small area for bone crushing goodness.
  • Mass is likely material Density times weapon Size
  • Momentum is Mass times Velocity
  • Velocity is based on the Mass of the weapon, the Strength of the wielder, and the Velocity Multiplier of the weapon
  • Any impact must have a conservation of momentum, and thusly, impart the weapon's momentum to the target
  • Stress is the Force of the strike divided by the Contact Area
  • Material Impact Yield determines the Stress required to dent the armor (likely not used)
  • Edged Weapons
  • Edged weapons rely on a combination of size, mass, contact area, penetration depth, and velocity

Attack speed

Attack speed has been overhauled for DF2014. Research is impending.

Other combat factors

  • Both adventurer mode and fortress mode keeps track of which way a creature is facing, based on its last actions. Attacks from behind will have increased accuracy, especially if the target hasn't spotted the attacker yet.
  • Movement speed plays an important role in melee combat, as it determines both dodging efficiency and opponent's accuracy. Creatures that are either prone or naturally slow (such as giant snails) will have a hard time dodging attacks, so breaking one of the opponent's legs is worth the effort.
  • Creature size, especially relative to other combatants, has a considerable effect on combat. In addition to individual strength stats, larger targets hit with greater force, though whether this is absolute or relative to the target's size is uncertain. Charging and wrestling also favor the larger combatant.
  • As of update 0.43.04 shakes and strong attacks will translate to other bodyparts. For example if you hit an enemy in the head with a blunt weapon, the force from that attack may also hurt the neck of the enemy. Even if the attack is blocked by armor, the force of the blow can still damage other bodyparts.

Arena test results

Adventurer mode

8 2 4 6 7 9 1 3 Attack adjacent hostile creature
Attack adjacent hostile creature
A Attack an adjacent creature.
f Fire a projectile
t Throw an item
C Open combat preferences interface

Combat is the fine art of using physical force to cause injury and death, and it is particularly fun in Dwarf Fortress.

Melee/ranged attacks

Hostile creatures can be attacked using a non-aimed attack by simply advancing towards your enemy using the arrow keys. Doing a non-aimed attack will also have a chance of freeing up any stuck weapon, though you are more likely to accomplish this by moving away from the enemy, or doing a complex interaction with the weapon.

Any creature can be attacked by standing next to it and pressing A. Attacking a friendly or unconscious creature (which includes wild animals for elves) will further require a confirmation, given using alt+y.

After selecting (and maybe confirming) which creature you want to attack, a will allow you to make an aimed attack. You must first select the body part that you want to attack. Look at the difficulty rating for various possible attacks. Impossible attacks will be nearly impossible to land and Easier attacks will be very easy to land. The difficulty rating for an attack does not change depending on your weapon skill. Based on player experiences, a Grand Master weapon user can almost always land a "Tricky" strike, while a Novice generally cannot. Attacks on various locations will also have limits on how "squarely" they can land (due to being out of reach, for example). Square and very square attacks will deal more damage.[Verify] Attacks which "can't land squarely" are generally still effective.

Attacks aimed at the head are the most effective; a single attack to the cranium with a weapon will usually put an end to the fight. Aimed attacks are especially useful for dismembering opponents. Opponents who are missing a foot will fall over, thereby greatly lowering their speed, and giving you an immediate edge in the fight. Cutting off both hands is also highly recommended for obvious reasons. After all, a field full of armless, one-legged enemies can be a big experience booster for your character and your companions.

Aimed attacks are also especially helpful when fighting giant beasts. Some enemies like giant desert scorpions have lots of redundant body parts, and random attacks waste valuable time on low priority areas while the scorpion is busy injecting venom into the whole party. Lastly, aimed attacks allow you to grab trophies that are not available via butchering. For example, a minotaur's horns can be cut off during a fight, but since it's a humanoid, most adventurers will refuse to butcher its corpse after the fight. However, in DF2014, all butcherable corpses are able to be butchered, as long as the corpse isn't too mangled.

There are several options below the hitting menu. Quick attacks are faster than regular attacks but weaker. Heavy attacks are slower but hit harder. Wild attacks are faster and hit harder but are inaccurate. Precise attacks are very slow but are much more likely to hit. Multi-attacks allow you to attack several times in a row, at a great cost to the effectiveness of any one of the chosen attacks.

In addition to aimed attacks, pressing A also allows for the three defensive maneuvers: blocking, dodging and parrying. They do not have fixed keys, because their order changes if one or more is impossible (e.g. no blocking without a shield). When dodging you will be able to pick a direction, and your character will move one step in this direction, possibly avoiding any number of attacks. Note that you can dodge even if you are not being attacked. When blocking or parrying you can pick one attack and attempt to stop it, if several attacks are incoming, the remaining attacks will not be affected.


To attack with a ranged weapon press the f key with a ranged weapon (bow, crossbow, etc.) equipped on one hand and select the square where you want to attack. Note that you need to have some sort of ammo, corresponding to the type of ranged weapon you are using (for example, bows use arrows, crossbows use bolts). Otherwise, a message stating "You have nothing left to fire." is displayed in brown. Similarly use the t key to throw any random object in the same manner. Random objects appear to make a random attack if they happen to have more than one possible type.[Verify] For example, if you throw a sword it may hit with a blunt impact, a stabbing impact, or a slicing impact. Throwing crossbow bolts with sufficient throwing skill and strength seems to have an effect similar to firing them, although less powerful. On the plus side, you will never lose ammo if you throw it.

It is not possible to aim for specific body parts with ranged or thrown attacks.

throwing is generally a good skill to have for any adventurer, as it allows you to slow down fleeing foes, both on the ground and in the air without the need of equipping a (cross)bow. Just like looking, you can use throwing to view and hit enemies multiple Z levels away from you. If you're lucky, you can simply land a hit that causes the flying enemy to give in to pain, and then let gravity do the rest of the work. Even if the fall doesn't kill them, they will most likely be stunned long enough for you to run up and slaughter them.

Wrestling and unarmed attacks

Main article: Wrestling

Wrestling (grappling) can be performed by selecting an enemy via A followed by b to wrestle. You can wrestle any enemy. Wrestling works somewhat like a targeted attack: Once you grab a creature by some body part, you may be able to make another wrestling attempt that will allow you to perform a throw or takedown. For a detailed list of moves, such as takedowns, throws, choke holds, etc., see Wrestling. It's also possible to punch, kick, and bite. These are not in the wrestling menu, but are performed like normal targeted attacks with A.

Weapons

Weapons are basically divided into axe, sword, spear, pike, mace, whip, bow and hammer, with various versions of these taking up the gray area.

Wounds

If you get wounded during combat, there's not much that you can do except perhaps run before you get more wounded. Be aware that movement speed while stunned, nauseous or winded is reduced, and might leave you open to fatal blows. Your wounds will heal over time, so just travel around or sleep in a safe place. Some wounds, however, may never heal, leaving you permanently crippled. Obtaining a crutch may help with this. Or, if you are not already a vampire, then you can get bitten by a werebeast during full moon, which will heal all injuries once per month. If you have some bolts or arrows stuck in your body, they can be removed by using the complex interaction menu I. Select the stuck bolt or arrow from the list and then pull it out with a You'll probably start bleeding after you pull it out, but the bleeding is rarely anything to worry about.

Combat preferences

At any time during gameplay (except in fast travel mode), you can press C to open the Combat Preferences menu. There are three different preferences you can set: Attack, Dodge and Charge Defense. These have a few different sub-preferences each:

  • attack
    • According to Opponent - The default setting. When set to this, charging happens more or less frequently, depending on the difference in size between you and the opponent. Bigger opponents get charged less, smaller more often. Can be very risky, since a random charge against a huge opponent is likely to get you knocked down and stunned. In the same vein, charging when close to obstacles or other environmental hazards is very dangerous, potentially fatal, if the enemy dodges you.
    • Strike - This setting ensures that you never charge an opponent, but rather just swing your weapon at them. This carries less risk than the above, but you're never going to knock anyone down without hitting their legs or spine. Very preferable against large opponents.
    • Charge - When set to this, you ALWAYS charge. When faced with numerous small enemies (Bogeymen in particular), this can be extremely useful, but remember to switch back when facing something bigger. Charging a large dragon is almost a certain death sentence.
    • Close Combat - With this setting, all your auto-attacks are grapples. Generally not very useful, since the random nature of it tends to prevent you from actually doing any damage with it, but if you continually auto-attack a harmless creature with it your wrestling-skill will be legendary in no time.
  • dodge
    • Move Around - This means you can jump away from attacks, physically moving in a random direction. While this lets you dodge attacks more often, it can also result in you jumping into a wall or lake. If you're fighting in really tight spaces, or areas with large pits, you might want to switch to the other option.
    • Stand Ground - As can be expected, you stand your ground. No jumping around, which is useful in the above situation, but risky in the open. If you have room for jumping around, go with Move Around, but otherwise this could be a good idea.
  • charge Defense
    • According to Opponent - Again, the default setting. You're more likely to stand still against small enemies charging, but will probably prefer moving away from larger ones. Somewhat risky, in that even a somewhat small enemy can stun you by charging.
    • Dodge Away - With this, you'll dodge away from charging enemies, if you can. It's not a sure bet, but it's very much worth it against enemies who like to charge. This is probably the most preferable mode, since you're not losing a whole lot by dodging a small foe charging, but dodging an angry night beast can save you from a world of pain.
    • Stand Ground - If you're certain of your physical superiority to the opponent, you can safely choose this. Standing your ground like a real man/woman might feel hardcore, but getting knocked down in a fight can be extremely dangerous. It probably has some use against bogeymen though, since they're quite small. If you really are much bigger than the enemy, you'll end up knocking THEM down. Most of the time though, charges heavily favor the attacker, so dodging away is probably preferable.

Using the Combat Preferences properly can actually save your hide, so they're worth fiddling with. Just don't forget that you've fiddled with them, since a misplaced charge or dodge could end up killing you.