Numeric prefix

From NetHackWiki
Jump to navigation Jump to search

Many commands in NetHack can be preceded by a numeric prefix, which modifies the action taken. This usually involves repeating the command several times, or interacting with a specified number of items.

If you are playing with vi keys (i.e. with number_pad off), you can enter numeric prefixes directly before the command, e.g. 10s to search for 10 moves.

If you are playing with number_pad on, you will need to use n to begin a numeric prefix, e.g. n100t$ to throw 100 zorkmids.

When firing a missile, the numeric prefix caps the number of missiles fired in a single move (see multishot). It can only decrease, not increase, the number of missiles fired.

You can also use numbers to specify a certain number of items in some menus, such as when using the extended drop command or when applying a container. When the menu is visible, you can type a number followed by the menu letter (e.g. 20a) to manipulate only some of the items in the stack. You do not need to use n, even when number_pad is enabled.

This page is a stub. Should you wish to do so, you can contribute by expanding this page.

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

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

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