Difference between revisions of "Force"

From NetHackWiki
Jump to navigation Jump to search
m (Text replace - "<ref> *{{ *[sS]ourcecode *\| *([a-zA-Z_][a-zA-Z0-9_]*\.[ch]) *\| *([0-9][0-9]*) *}} *<\/ref> " to "{{refsrc|$1|$2}}")
(Add "Weapon breakage" section, with probability table)
Line 3: Line 3:
 
'''#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."
 
'''#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 its contents. Smashing the container, therefore, is a very bad idea and 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.
+
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 its contents. Smashing the container, therefore, is a very bad idea and 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.{{refsrc|lock.c|207}}
 +
 
 +
==Mechanics==
 +
{{todo|Describe the probability of success (depends on the weapon's base damage to large monsters), mention 50 tries before giving up, talk about probability of destroying the container and its contents}}
 +
===Weapon breakage===
 +
When forcing open a locked container with an edged weapon, there is a chance the weapon will break, unless it is [[cursed]].{{refsrc|lock.c|149}} 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:{{refsrc|lock.c|148}}
 +
<!-- Formula for this table: ((992-10*Erosion)/(1000-Enchantment))^50 -->
 +
{| class="prettytable"
 +
!rowspan="2"|Enchantment
 +
!colspan="4"|Erosion level
 +
|-
 +
!Uneroded
 +
!Eroded
 +
!Very eroded
 +
!Thoroughly eroded
 +
|-
 +
! +7
 +
||0.95||0.57||0.34||0.20
 +
|-
 +
! +6
 +
||0.90||0.54||0.33||0.19
 +
|-
 +
! +5
 +
||0.86||0.52||0.31||0.19
 +
|-
 +
! +4
 +
||0.82||0.49||0.30||0.18
 +
|-
 +
! +3
 +
||0.78||0.47||0.28||0.17
 +
|-
 +
! +2
 +
||0.74||0.45||0.27||0.16
 +
|-
 +
! +1
 +
||0.70||0.42||0.25||0.15
 +
|-
 +
! +0
 +
||0.67||0.40||0.24||0.14
 +
|-
 +
! -1
 +
||0.64||0.38||0.23||0.14
 +
|-
 +
! -2
 +
||0.61||0.36||0.22||0.13
 +
|-
 +
! -3
 +
||0.58||0.35||0.21||0.12
 +
|-
 +
! -4
 +
||0.55||0.33||0.20||0.12
 +
|-
 +
! -5
 +
||0.52||0.31||0.19||0.11
 +
|-
 +
! -6
 +
||0.50||0.30||0.18||0.11
 +
|-
 +
! -7
 +
||0.47||0.28||0.17||0.10
 +
|}
 +
 
  
Cursed weapons cannot break this way.{{refsrc|lock.c|149}}
 
 
==SLASH'EM==
 
==SLASH'EM==
 
In [[SLASH'EM]], you can also use the force command on doors to bash it down with your weapon.
 
In [[SLASH'EM]], you can also use the force command on doors to bash it down with your weapon.
  
 +
==References==
 
<references/>
 
<references/>
  

Revision as of 20:24, 13 December 2012

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 its contents. Smashing the container, therefore, is a very bad idea and 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.[1]

Mechanics

A user has suggested improving this page or section as follows:

"Describe the probability of success (depends on the weapon's base damage to large monsters), mention 50 tries before giving up, talk about probability of destroying the container and its contents"

Weapon breakage

When forcing open a locked container with an edged weapon, there is a chance the weapon will break, unless it is cursed.[2] 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:[3]

Enchantment Erosion level
Uneroded Eroded Very eroded Thoroughly eroded
+7 0.95 0.57 0.34 0.20
+6 0.90 0.54 0.33 0.19
+5 0.86 0.52 0.31 0.19
+4 0.82 0.49 0.30 0.18
+3 0.78 0.47 0.28 0.17
+2 0.74 0.45 0.27 0.16
+1 0.70 0.42 0.25 0.15
+0 0.67 0.40 0.24 0.14
-1 0.64 0.38 0.23 0.14
-2 0.61 0.36 0.22 0.13
-3 0.58 0.35 0.21 0.12
-4 0.55 0.33 0.20 0.12
-5 0.52 0.31 0.19 0.11
-6 0.50 0.30 0.18 0.11
-7 0.47 0.28 0.17 0.10


SLASH'EM

In SLASH'EM, you can also use the force command on doors to bash it down with your weapon.

References


This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.