- This article is about the extended command. For the force that sometimes prevents you from teleporting or climbing stairs, see mysterious force.
#force is the extended command to unlock a container with a weapon, either by prying or by smashing the lock. It cannot be used on doors, you will instead get the message "You decide not to force the issue."
Prying with an edged weapon (such as a dagger) is a better method, as it will do no harm to the container and its contents. However, it may break your weapon, so do not pry with your only (or best) weapon! Smashing the box with a blunt weapon (such as a mace) may destroy the whole container, including some or all of its contents. Otherwise, it would be best to leave the container until you have some means of unlocking it. Forcing the chest with an edged weapon exercises dexterity, while a blunt weapon exercises strength.
The per-turn percent chance of success is , where is the maximum amount of base damage the weapon deals to large monsters. For example, a dagger deals 1d3 damage to large monsters, so the per-turn chance of success is . If you have not succeeded after 50 turns, you give up.
When forcing open a locked container with an edged weapon, there is a chance the weapon will break, unless it is cursed. Artifacts will resist breaking 99% of the time. The probability that a non-artifact, noncursed, edged weapon will survive an unsuccessful attempt to force a locked container is given in the following table, depending on the weapon's enchantment and erosion level:
|Uneroded||Eroded||Very eroded||Thoroughly eroded|
Destroying the container
If you successfully force the lock using a blunt weapon, there is a 25% chance that you also destroy the container. If you do destroy the container, you will also destroy every potion in the container, and every non-potion in the container has a 25% chance of being destroyed.
In SLASH'EM, you can also use the force command on doors to bash it down with your weapon.
In Slash'EM Extended, you can also use the force command on monsters to deal some damage to them. This counts as a melee attack and will therefore set off a monster's passive attack, but unlike an actual melee attack it cannot miss. Also, sometimes the monster is knocked back a square. A Jedi deals extra damage by doing so.
- lock.c in NetHack 3.4.3, line 207: edged weapons exercise dexterity; blunt weapons exercise strength
- lock.c in NetHack 3.4.3, line 488: success probability depends on the weapon's damage vs. large monsters
- lock.c in NetHack 3.4.3, line 139: give up after 50 turns
- lock.c in NetHack 3.4.3, line 149: cursed weapons won't break
- lock.c in NetHack 3.4.3, line 148: whether an edged weapon breaks depends on its enchantment and erosion
- lock.c in NetHack 3.4.3, line 168: containers forced with blunt weapons destroyed 25% of the time
- lock.c in NetHack 3.4.3, line 182: contents of a destroyed container have 25% chance (or 100% for potions) of being destroyed