Difference between revisions of "Adjust"

From NetHackWiki
Jump to navigation Jump to search
(added section on using adjust to merge like items into a single stack)
m (Minor rewording)
 
(20 intermediate revisions by 12 users not shown)
Line 1: Line 1:
'''#adjust''' is the [[extended command]] to change the letter that represents an item in your inventory.
+
'''#adjust''' is the [[extended command]] to change the letter that an item in your inventory is stored under. It also allows you to merge and split [[stackable|stacks]] of identical items.
  
== Consolidating Inventory ==
+
== Splitting stacks ==
A key function of the adjust command that is not immediately obvious is to force NetHack to consolidate identical stackable items into a single stack in the inventory. For example, if you are dipping potions with the intent of making [[holy water]], you may start with ten different potions, each in its own inventory slot.  Dipping them one at a time until they are fully diluted will leave you with ten separate potions of water, each occupying its own slot in your inventory.  This is not a huge problem if you are using a water prayer at an [[altar]], but is no good at all if you want to dip the diluted potions into a single potion of holy water that you already have.  The answer is to #adjust one of the potions into its own inventory slot (b to b or whatever), which will cause Nethack to merge the other nine potions into a single stack.
+
As of [[NetHack 3.6.0]], the #adjust command can take a count, specifying how many items to move from one slot to another. (For example, to split off one half of <span class="nowrap"><tt>a - 10 darts</tt></span>, you can #adjust <tt>5a</tt> to <tt>b</tt>.)
  
== Strategy ==
+
As of [[NetHack 3.6.1]], items/stacks that have been split with the #adjust command will not automatically merge with each other unless dropped and picked up, or stashed and removed from a container. This removes the need to #name individual items to prevent them from stacking.
It is often useful to give commonly used items a letter that you can use each time you play the game. Here are some suggested letters for common items:
 
  
'''a''' - Primary Weapon - Your primary weapon always starts out being a. When you get a better primary weapon, adjust it to being "a" so you know it is now your primary one.
+
== Merging stacks ==
 +
If you #adjust an item to its own slot (e.g. adjusting <tt>a</tt> to <tt>a</tt>), any stacks of identical items will be merged into the stack on that slot. (This is useful when [[dip]]ping identical items in {{of|potion|holy water}}&mdash;first merge the stacks, then dip the stack to bless them all at once.)
  
'''b''' - Secondary Weapon - Similar to using "a" as your primary weapon, most adventurers who start with a secondary weapon, will have it labeled b.
+
== Strategy ==
 
+
Many players find it useful to #adjust certain useful items to the same slot across games. As an example, consistently having your key in the <tt>k</tt> slot might save you the annoyance of having to look at your inventory every time you wish to unlock a door. It's also a good idea to readjust your inventory slots so as to prevent typos from killing you: keeping a [[food ration]] on <tt>y</tt> might be lethal if you try to eat it while standing above a [[cockatrice corpse]].
'''c''' - Primary Ranged Weapon - As an alternative, you might want to use "Q", which is the same letter as the command for placing an item in your [[quiver]].
 
 
 
'''k''' - [[Key]] or [[Lock pick]] - As an alternative use "K", because "k" is also the command for kick, and if the player mistypes applying a key, they may accidentally kick a door instead.
 
 
 
'''l''' - [[Lamp]] or [[Lantern]]
 
 
 
'''p''' - [[Pick axe]] or other digging tool
 
 
 
'''u''' - [[Unicorn horn]]
 
 
 
'''Y''' - [[Stethoscope]] - "Y" looks like the item in question.
 
  
Also, it is useful to keep dangerous items out of the '''y''' slot to avoid [[YASD]]s. Nothing is worse than accidentally eating a cockatrice corpse due to mistyping.
+
== See also ==
 +
* The {{kbd|+}} key can be used to reorder spells.
  
 
[[Category:Extended commands]]
 
[[Category:Extended commands]]
 +
{{nethack-361}}

Latest revision as of 01:21, 31 August 2019

#adjust is the extended command to change the letter that an item in your inventory is stored under. It also allows you to merge and split stacks of identical items.

Splitting stacks

As of NetHack 3.6.0, the #adjust command can take a count, specifying how many items to move from one slot to another. (For example, to split off one half of a - 10 darts, you can #adjust 5a to b.)

As of NetHack 3.6.1, items/stacks that have been split with the #adjust command will not automatically merge with each other unless dropped and picked up, or stashed and removed from a container. This removes the need to #name individual items to prevent them from stacking.

Merging stacks

If you #adjust an item to its own slot (e.g. adjusting a to a), any stacks of identical items will be merged into the stack on that slot. (This is useful when dipping identical items in holy water—first merge the stacks, then dip the stack to bless them all at once.)

Strategy

Many players find it useful to #adjust certain useful items to the same slot across games. As an example, consistently having your key in the k slot might save you the annoyance of having to look at your inventory every time you wish to unlock a door. It's also a good idea to readjust your inventory slots so as to prevent typos from killing you: keeping a food ration on y might be lethal if you try to eat it while standing above a cockatrice corpse.

See also

  • The + key can be used to reorder spells.

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

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

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