NetHack
|It’s tremendously addictive. It takes a lifetime to master. And people play it for decades without completing it. Welcome to the strange world of NetHack…
Believe it or not, it’s possible to be terrified by the sight of the letter D. Or ecstatic about the sight of a % character. (And the less said about ^, the better.) But before you assume we’ve gone totally loopy and close the tab, bear with us for a moment: those characters represent dragons, food rations and traps respectively. Welcome to NetHack, where your imagination needs to play a big role in the gameplay.
You see, NetHack is a text-mode game: it just uses the standard terminal character set to portray the player, enemies, items and surroundings. Graphical versions of the game exist, but NetHack purists tend to avoid them, and what’s the point of a game if you can’t play it when you’re SSHed into your revived Amiga 3000 running NetBSD? In some ways, NetHack is a lot like Vi – it has been ported to nigh-on every operating system in existence, and its requirements are absolutely minimal.
Now, given that it looks like utter pants when compared to modern games, what makes NetHack so appealing? Well, this dungeon exploring masterpiece is incredibly rich and detailed. There are so many items to discover, spells to cast, monsters to fight and tricks to learn – and the dungeons are generated randomly. There’s so much to explore, and no two games are ever the same. People play NetHack for years and decades without complete it, still discovering new secrets each time.
Here we’ll show you how NetHack came about, give you a guided tour of the dungeons, and show you some tricks. Note: by reading this feature, you agree to not sue us when you become addicted to NetHack and your real-life productivity is obliterated.
The NetHack interface (click to embiggen)
Possibly the oldest still-developed game
Despite its name, NetHack isn’t an online game. It’s based on an earlier dungeon-exploring romp called Hack, which in turn was a descendant of an 1980 game called Rogue. NetHack’s first release arrived in 1987, and although no new features have been added since version 3.4.3 in 2003, various patches, add-ons and spin-offs are still doing the rounds on the web. This makes it arguably the oldest game that’s still being hacked on and played by a sizeable group of people. Go to www.reddit.com/r/nethack to see what we mean – long-time NetHack players are still discussing new strategies, discoveries and tricks. Occasionally you’ll see gleeful messages from old timers who have finally, after many years, completed the game.
But how do you complete it? Well, NetHack is set in a large and deep dungeon. You start at the top – level 1 – and your goal is to keep going down until you find a hugely valuable item called the Amulet of Yendor. This is typically in level 20 or lower, but it can vary. As you traverse through and down the dungeon, you’ll meet all manner of monsters, traps and human characters; some will try to kill you, some will stay out of your way, and some…. well, you don’t know until you get close to them.
“There’s so much to
learn, and many items
only work best when
combined with others.”
What makes NetHack so compelling is the vast range of items crammed into the game. Weapons, armour, spell books, rings, gems – there’s so much to learn, and many items only work best when combined with others. Monsters often drop useful items when you kill them, although some items can have very negative effects if you don’t use them correctly. You’ll find shops in the dungeon that are packed with potentially useful bits of kit, but don’t expect the shopkeeper to give you great descriptions. You’ve got to learn from experience. Some items aren’t much use at all, and the game is packed with humour – you can even throw a cream pie in your own face.
But before you even set foot in the dungeon, NetHack asks you what kind of player you want to be. You can take your journey as a knight, a monk, a wizard or even a humble tourist, amongst many other player types. They all have their own strengths and weaknesses, and NetHack addicts love to try completing the game with the weaker types. You know, to show off to other players.
Spoilers don’t spoil the fun
In NetHack parlance, “spoilers” provide information on monsters, items, weapons and armour. It’s technically possible to complete the game without using them, but very few players ever achieve this, as the game is monumentally complex. Consequently it’s not regarded as bad form to use spoilers – but it’s still more fun to try to work things out yourself first, and only consult the spoilers when you really need them.
A great source is www.statslab.cam.ac.uk/~eva/nethack/spoilerlist.html which separates spoilers into categories. For things that happen randomly in the game, such as the effects from drinking from fountains, it gives you the odds of a certain thing happening.
Your first dungeon crawl
NetHack is available for almost every major OS and Linux distribution in the world, so you should be able to grab it with “apt-get install nethack” or “yum install nethack” or whatever is appropriate for your distro. Then run it in a terminal window by just typing “nethack”. The game will ask if it should pick a player type for you – but as a newcomer, it’s best if you choose one of the tougher characters first. So hit “n” and then hit “v” to choose the Valkyrie type, and “d” to be a dwarf.
Then NetHack will give you some plot blurb, explaining that your god seeks the Amulet of Yendor, so your goal is to retrieve it and present it to him. Hit space when you’re done reading the text (and any other time you see “–More–” on the screen). And here we go – you’re in the dungeon!
As described earlier, your character is represented by a @ sign. You can see the walls of a room around you, and the dot characters depict empty space in the room. First of all, get used to the movement keys: h, j, k and l. (Yes, it’s just like Vim, as covered in issue 3 of Linux Voice!) These move you left, down, up and right respectively. You can also move diagonally with y, u, b and n. So walk around the room until you get used to the controls.
NetHack is turn-based, so if you’re not moving or performing an action, the game stays still. This lets youplan your moves in advance. You will see a “d” or “f” character moving around the room as well: this is your pet dog or cat, which (normally) won’t harm you and can assist you in killing monsters. Pets can be annoying though – they occasionally eat foot rations and tasty corpses before you get to them.
Hit “i” to bring up an inventory of your currently carried items
What’s behind the door?
Now, let’s go out of the room. There will be gaps around the edge, and possibly “+” signs. That “+” is a closed door, so go up to it and hit “o” to open. You will be asked for a direction, so if the door is to the left of you, press “h”. (And if the door is stuck, try opening it a few times.) You’ll then end up in a corridor, marked by “#” symbols, so walk around it until you find another room.
On your travels you’ll see various items. Some, such as money (denoted by a “$” symbol) are picked up automatically; for other items, you have to press the comma key whilst standing on them. If there are multiple items, you’ll be given a menu, so press the appropriate keys shown in the menu and then Enter to choose what you want. At any time you can hit “i” to bring up your inventory list – see the screenshot.
What happens if you see a monster? At these early stages of the game, the monsters you’re likely to come across will be represented by “d”, “x” and “:” characters. To attack, simply walk into them. The game will tell you if your attacks are successful using the messages along the top – and also how the monster is responding. These early monsters are simple to kill, so you shouldn’t have any trouble defeating them, but keep an eye on your HP in the status line at the bottom.
“Early monsters are
simple to kill, but keep
an eye on your HP.”
If a monster leaves behind a corpse (“%”), you can hit comma to take it and then press “e” to eat it. (Whenever you’re prompted to choose an item, you can press its corresponding key from the inventory list, or “?” to bring up a mini list.) Warning! Some corpses are poisonous, and these are things you’ll learn on your travels.
If you’re exploring a corridor and appear to come to a dead end, you can hit “s” to search until you find a door. This can take ages, however, so you can speed things up a bit: type “10” and then “s” and you will perform 10 searches in a row. This takes up 10 moves in game time, however, so if you’re hungry you could get close to starvation!
Common items you’ll find in the top levels of the dungeon are “{” (fountains) and “!” (potions). For the former, you can stand on it and hit q to “quaff” from it – the effects can vary from useful to deadly. For potions, pick them up and then use “q” to drink them. If you find a shop, you can pick up items and then hit “p” to pay before leaving. Use “d” to drop something.
Souped-up versions of NetHack with fancy graphics are available, such as Falcon’s Eye
Stupid ways to die
A popular acronym amongst NetHack players is “YASD” – Yet Another Stupid Death. It describes a situation where the player buys the farm due to his/her own silliness or lack of concentration. We’ve had many of these, but our favourite goes as follows:
We were browsing a shop, inspecting items, when a snake suddenly jumped out from behind a potion. After killing the snake, a message popped up saying that we were getting hungry, so we opted to eat the snake’s corpse. Bad idea! This made us blind, so we couldn’t see other characters or items in the shop. We tried to get to the exit, but instead bumped into the shopkeeper and accidentally attacked him. This made him furious; he started firing magic missiles at us. We just about managed to get into the corridor outside the shop, but died from the onslaught.
If you come to any equally silly ends, let us know on our forums. And don’t worry – nobody will judge you. Dying like this is all part of growing up in the NetHack world.
Equip yourself
On your travels, and especially after you kill monsters, you’ll find weapons and armour. Again, use comma to pick these up, and then “w” (lowercase) to wield a weapon or “W” (uppercase) to wear a piece of armour. You can use “T” to remove armour and “t” to throw weapons – often handy if you’re in a very sticky situation.
Sometimes it’s useful to examine things from a distance before getting close to them. Hit “;” (semicolon) and “Pick an object” will appear at the top of the screen. Use the movement keys until your view lands on the thing you want to inspect, and then hit “:” (colon). A description will appear at the top.
As your goal is to go further down the dungeon until you find the Amulet of Yendor, keep an eye out for “<” and “>” signs. These are stairs up and down respectively, and you can use the same keys to climb them. Note! Make sure your pet is standing in an adjacent square if you want it to follow you into the next level. If you need a break, use “S” (capital s) to save, and type #quit to exit. Next time you run NetHack, your game will be resumed.
We won’t spoil what’s ahead, as many of the dungeon levels have amazing designs, characters and secrets. So we’ll leave you with three tips: if you come across an item that completely baffles you, try searching for it on the NetHack wiki at http://nethack.wikia.com. You’ll also find an excellent (albeit very long) guidebook at www.nethack.org/v343/Guidebook.html. Happy exploring!
IMHO Angband is a better game. The “cheat death” option is fantastic, and it just seems… easier to get into. Although both are pretty hard to complete.
If you are using the cheat death option in Angband, you are doing it wrong. Other than that, I agree. Angband is my favorite.
Nethack has “explore mode” as well by pressing the ‘X’ button. When you die it asks “do you die? [y/N]”
Really? Angband was fun, but I always found it very same-y. I got bored after a while. Its difficult to say which my favourite is … I think either nethack (or a variant; I haven’t played these in some years so not familiar with slash em/dungeon crawl etc.). Or Adom, which is utterly fantastic, much larger/deeper than nethack, but less ‘random’. Other games I’ve enjoyed over the years were Omega and Larn. But I gather there is a lot more out there now it seems! I was playing nethack last night for several hours using falcon’s eye … I think I prefer the original ascii. Yes, you can see the 2d map, but I find the falcon’s eye/isometric view far less clear, and I prefer to use my imagination! Once you get used to what the symbols mean, ascii is fine … in fact, I think it’s better to use your imagination.
Once you’ve played a few games of Nethack, don’t forget to take a look at the Elvie strip that accompanied this article in issue #05: http://peppertop.com/elvie/comic/elvie-005/
Ah, Nethack, Slashem and their stupid deaths.
I can still remember how with a paladin I died right in the first turn. I tried climbing on my pony, slipped and broke my neck.
Been there, died like that.
For those times when you’re not in front of the terminal, there are several versions for mobile: I have UnNetHack on my Android phone.
I have the NethackDS port for the Nintendo DS. Frankly I think it’s the best port I’ve ever seen.
How do Legend of Dredmor compare?
I probably only clocked about 10 hours on dredmore. But I massively prefer nethack etc. So much more depth, humour and everything. I think dredmore’s graphics are pretty crummy … somehow the ascii in nethack just works once you get used to it (maybe takes a few hours; the control system was the worst! before computers had number pads, the movement keys were hjkl for left,down,up,right, and yubn for diagonals. But amazing how quickly one can get used to them!)
The community moved the wiki to http://nethackwiki.com/.
Wikia doesn’t allow the old ad-ridden one to be deleted and now it is filling up with spam.
Also, no mentioning of the public servers? You can telnet or ssh to nethack.alt.org and play it online.
Eating a snake is not a stupid, but a newbie way to die. Knowing the effects of (all) corpses is the 101 of Nethack.
The fun of nethack comes from the infinite combinations and effects that items or monsters have with each other. Reading a scroll gives one effect, reading a blessed one has another, cursed gets you third, being confused adds another layer, etc.
I play Minecraft. It has a similar mix – simplicity of UI and gameplay, complexity of possibilities and interactions. It keeps me addicted and enthralled in a similar manner.
And don’t forget about the tournaments! Devnull (http://nethack.devnull.net/) has been going every November for fifteen years, and more recently, Junethack (http://nethackwiki.com/wiki/Junethack) rounds out the other half of the year.
The Devnull tournament recognizes a wide variety of in-game achievements, from things that a beginning player could achieve to amazing feats of prowess. A particularly grueling category is Most Unique Deaths! There is also recognition for the combined efforts of players with the Best of Show clan competition.
First played this game around 1989-90 in college. It has to be one of the best games ever written. This article makes me want to pick up playing it again after around 10 years.
Like Vim? You must mean “like vi”, since Vim did not exist when Nethack came into existance, and since vi is the original.
Oh BURN`
Sure, Vi was earlier. But as it says in the text, we covered Vim in issue 3 of Linux Voice, not Vi 🙂
You want a stupid way to die? I had a Wizard character fully kitted out. Max level, max stats. I was in the Wizard’s Tower (endgame-ish) and was pretty much destroying everything coming my way. In the Zoo, though, there I killed a Wraith and it left a corpse. Eating the corpse usually gives you a free experience level, but since I was at the level cap, that was useless to me. But I knew that it would still raise my max HP/MP, so I ate it. And died. Because I was already full, so I choked to death. THAT is a YASD.
Had a YASD the other day. My brand new Priest rezzed into a game with a spellbook on the ground next to him. Read it and immediately teleported into the middle of a pack of jackals. Dead in under 15 turns.
I remember playing Hack on an IBM PC/XT back in 1985, then Nethack when it was first released. I still play it today at nethack.alt.org (username K2). In the nearly three decades on/off that I’ve played this game, I’ve only ever beaten it three times, and all of them without using the E word 😉
One of the best aspects of this game was that you would run into ghosts of previous players (or their dogs), who would attack you. I still remember my friend Rich’s voice bellowing out across a vast computer lab in about 1987 or 8 – “WHO NAMED THEIR DOG ‘Smop’?!?!?!!?” –It was me. And it had just eaten him.
My most memorable death was I had killed a cockatrice and picked up its corpse (wearing gloves of course, otherwise you turn to stone). Unfortunately, I also had donned a pair of boots of fumbling. I went to descend to the next level of the dungeon only to trip and fall down the stairs and land on the cockatrice corpse, thereby turning me to stone.
My favourite YASD:
After several experiments I worked out that if you could successfully kill a cockatrice without it turning you to stone, and you were wearing gloves, you could pick up the corpse and wield it, turning enemies to stone with a single hit (essentially insta-kill). I merrily stormed through the level, stopping any enemy I came across with ease. I then got attacked by a straw golem, hit it with my cockatrice, it turned to stone and the stone golem killed me.
Mark Johnson, YASD is me laughing to death after reading your story! Thanks for posting! LOL
Great write-up! One of my all-time favorite games. I did a write-up of a lot of the roguelikes recently.
https://litrpgreads.com/blog/history-roguelikes