Difference between revisions of "Adjust"

From NetHackWiki
Jump to navigation Jump to search
m (Mitigating Wand of cancellation damages: The period must be outside the link.)
(what a train wreck of an article that was)
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 stacks of identical items.
  
== Consolidating Inventory ==
+
== Merging 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.
+
If you have two or more stacks of identical items (with identical [[beatitude]]), you can #adjust one of these stacks to its own slot, and they will all be merged. (This is useful when [[dip|#dipping]] identical items in [[holy water]]: first merge the stacks, then bless them all at once.)
 +
 
 +
== 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 <tt>a - 10 darts</tt>, you can #adjust <tt>5a</tt> to <tt>b</tt>.)
  
 
== Strategy ==
 
== Strategy ==
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 have 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.
+
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]].
 
 
===Preserving Starting Inventory Slots===
 
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.
 
 
 
'''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.
 
 
 
'''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. (this does not apply to those using the number pad)
 
 
 
'''Directional keys''' are pressed extremely often, and often after the (a)pply command has been
 
activated. Examples of how this can be harmful:
 
 
 
* '''j''' - [[Crystal ball]] - 'asj' can transform (a)pply the [[stethoscope|(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''' - [[engrave|(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===
 
See [[Wand_of_cancellation#Packorder]]. Long story short, you can't prevent the worst damage.
 
 
 
===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]]
 
 
 
'''p''' - [[Pick axe]] or other digging tool
 
 
 
 
== See Also ==
 
== See Also ==
The [[+]] key can be used to reorder spells.
+
The {{kbd|+}} key can be used to reorder spells.
  
 
[[Category:Extended commands]]
 
[[Category:Extended commands]]
 +
{{nethack-360}}

Revision as of 02:02, 14 December 2015

#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.

Merging stacks

If you have two or more stacks of identical items (with identical beatitude), you can #adjust one of these stacks to its own slot, and they will all be merged. (This is useful when #dipping identical items in holy water: first merge the stacks, then bless them all at once.)

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.)

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.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.