Difference between revisions of "Adjust"

From NetHackWiki
Jump to navigation Jump to search
m (Avoiding Inadvertent Command Entry: grammar)
m (Minor rewording)
 
(13 intermediate revisions by 9 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.  The advantage to using #adjust over dropping the items and picking them back up again, is that it will not use any [[turn]]s to manipulate your inventory in this way.
+
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.
A large part of surviving Nethack is forming good habits. One good habit is to be consistent with the inventory slots you select.  When you a replacement for your current weapon, for example, #adjust your new primary weapon to the slot that your old weapon occupied.  An extension of this habit is to store inventory items in the same slot across many games.  Which inventory slot is best for which item is a debated matter.
 
  
===Preserving Starting Inventory Slots===
+
== Merging stacks ==
When you start a new game, certain items tend to already be in certain slots. This is especially true if you play a small number of roles, or if you frequently play the very early game<!-- we'll leave the reader to contemplate why that might be true... -->.  Keeping those items in those slots saves you the time you would spend #adjusting all of your inventory items in the early game.
+
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.)
  
'''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.
+
== 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]].
'''b''' - Secondary Weapon - Similar to using "a" as your primary weapon, most adventurers who start with a secondary weapon will have it labeled b.
 
 
 
===Rapid Command Entry===
 
Another approach is to adjust key items to the inventory letter corresponding to the related NetHack command. For example, a Valkyrie carrying [[Mjollnir]] might put that weapon in the '''t''' slot, so throwing it is done by pressing '''t''' twice.  The same would hold true for moving [[arrow]]s to '''f'''. A player trying to wrest the last charge from a [[wand]] might adjust it to '''z''' to speed up the process.
 
 
 
Frequently-used items can be put on lower-case letters typed with strong fingers. The [[bag of holding]], [[stethoscope]], [[oil lamp]], [[pick-axe]], [[unicorn horn]], [[magic whistle]]/[[leash]], [[skeleton key]], [[blindfold]], [[tinning kit]], [[athame]], and [[ring of regeneration]] probably belong in this category.
 
 
 
===Avoiding Inadvertent Command Entry===
 
In direct oppositions to the desire to rapidly enter commands stands the fear of accidentally executing commands.
 
 
 
'''Directional keys''' are pressed extremely often, and often after the (a)pply command has been
 
activated. Examples of how this can be harmul:
 
 
 
* '''j''' - Crystal ball - 'asj' can transform (a)pply the (s)tethoscope south can easily become 'aj' (a)pply (j) the crystal ball.
 
 
* '''h''' - Pick Axe - 'ahk' becoming 'ahhk' transforms 'dig north; to 'dig west'
 
 
 
 
 
'''y''' - avoid items whose use is so dangerous that the developers protected its command with a 'yes' prompt.  This is also a directional key. Don't keep food in y - you might be standing over a cockatrice corpse.
 
 
 
'''E''' - (E)ngrave 'lbereth' with your (E)merald ring?  [[DYWYPI]]?
 
 
 
'''z''' - (z)ap your wand of create monster?
 
 
 
'''a''' - (a)pply your crystal ball?  Hope you were in a safe spot.
 
 
 
===Mitigating [[Wand of cancellation]] damages===
 
Placing a wand of cancellation inside of a bag of holding can be an extremely frustrating experience.  Players who choose to carry these wands often keep their [[wand_of_wishing|most]] [[candle|valuable]] [[magic_lamp|items]] outside of their bag of holding to prevent losing them accidentally.  This preventative step is negated if the valuable item is placed in the bag in the same turn as the wand, assuming the valuable item has a lower inventory slot than the wand.  Thus:
 
 
 
'''Z''' - An extremely valuable inventory item, like your wand of wishing
 
 
 
'''Y''' - Another extremely valuable inventory item.
 
 
 
'''a''' - An expendable inventory item.
 
 
 
'''b''' - the wand of cancelation or the (b)ag of holding
 
 
 
'''c''' - the bag of holding or the wand of (c)ancelation
 
 
 
===Visual Mnemonic Devices===
 
Nethack often uses ascii characters which resemble the thing they represent.  It is only natural that players would do the same.  Similarly, you can use the same characters which Nethack uses.
 
 
 
'''Y''' - [[Stethoscope]] - "Y" looks like the item in question.
 
 
 
'''c''' - [[Cockatrice_egg|Grenade]] - in recognition of the [[cockatrice]] who laid it.
 
 
 
'''u''' - [[Unicorn horn]] - in remembrance of the [[unicorn]] who parted with it.
 
 
 
===First letter Mnemonic Devices===
 
Finding good Visual Mnemonic Devices for inventory items gets hard very quickly, so some resort to
 
 
 
'''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]]
+
== See also ==
 +
* The {{kbd|+}} key can be used to reorder spells.
  
'''p''' - [[Pick axe]] or other digging tool
 
 
[[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.