Difference between revisions of "Unique item"

From NetHackWiki
Jump to navigation Jump to search
m (EvilHack)
Line 6: Line 6:
 
* The [[Amulet of Yendor]]
 
* The [[Amulet of Yendor]]
  
Unique items are defined by having the field <code>oc_unique</code> set to 1 in [[objects.c]]. It is not possible to [[wish]] for any of the unique items.
+
The [[discoveries]] page lists these items under the "Unique Items" section. Unique items are defined by having the field <code>oc_unique</code> set to 1 in [[objects.c]]. While the unique items are also commonly referred to as '''invocation artifacts''', they do not count as [[artifact]]s for wishing purposes, as the player is guaranteed to encounter them.
  
== Unique items versus artifacts ==
+
It is not possible to [[wish]] for any of the unique items.  
All [[artifact]]s are also unique within a game, but are not the same as unique items; they are specially named variants of their [[base item]] with additional benefits, and appear as named versions of those items when unidentified. The [[discoveries]] page lists identified artifacts under "Artifacts", whereas it lists unique items under "Unique Items".  
 
  
While the unique items are also commonly referred to as '''invocation artifacts''', they do not count as artifacts for wishing purposes, as the player is always guaranteed to encounter them.
+
==Unique items versus artifacts==
 
+
All [[artifact]]s are also unique within a game, but are not the same as unique items - they are specially named variants of their [[base item]] with additional benefits, and appear as named versions of those items when unidentified. For example, most games will have no more than one [[runesword]] or [[tsurugi]], as those items never generate randomly and only appear when [[Stormbringer]] or the [[Tsurugi of Muramasa]] (respectively) are generated. Neither counts as a unique item - it is possible to wish for them, or find them in a [[bones]] file if the artifact already exists.
== Distinguishing from other "one-per-game" items ==
 
Most games will have no more than one [[runesword]] or [[tsurugi]], by virtue of those items never generating randomly except when [[Stormbringer]] or the [[Tsurugi of Muramasa]], respectively, are generated. Neither counts as a unique item; it is possible to wish for them or find them in a [[bones]] file (if the artifact already existed).
 
  
 
==Variants==
 
==Variants==
Line 22: Line 19:
 
* triple-headed flail (basis for [[Butcher]])
 
* triple-headed flail (basis for [[Butcher]])
 
* eight ball (basis for the [[Magic 8-Ball]])
 
* eight ball (basis for the [[Magic 8-Ball]])
 
+
{{nethack-366}}
 
[[Category:Unique items]]
 
[[Category:Unique items]]
{{nethack-366}}
 

Revision as of 19:35, 16 September 2021

A unique item is one of four specific objects required to complete the game:

The discoveries page lists these items under the "Unique Items" section. Unique items are defined by having the field oc_unique set to 1 in objects.c. While the unique items are also commonly referred to as invocation artifacts, they do not count as artifacts for wishing purposes, as the player is guaranteed to encounter them.

It is not possible to wish for any of the unique items.

Unique items versus artifacts

All artifacts are also unique within a game, but are not the same as unique items - they are specially named variants of their base item with additional benefits, and appear as named versions of those items when unidentified. For example, most games will have no more than one runesword or tsurugi, as those items never generate randomly and only appear when Stormbringer or the Tsurugi of Muramasa (respectively) are generated. Neither counts as a unique item - it is possible to wish for them, or find them in a bones file if the artifact already exists.

Variants

EvilHack

EvilHack adds a couple of other "one-per-game" items that serve as the base item for artifacts, and are never randomly generated (except when their associated artifact is generated):