Skip to content

Instantly share code, notes, and snippets.

@huytd
Last active September 10, 2022 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huytd/e1aca7c16a1440c26c7ca3f318fc7115 to your computer and use it in GitHub Desktop.
Save huytd/e1aca7c16a1440c26c7ca3f318fc7115 to your computer and use it in GitHub Desktop.
# This is an example nethackrc file for NetHack 3.7.x. You should edit
# this file to meet your play style needs.
# Available editors: rnano or virus via the terminal, or see our web-based RC Editor
# at https://www.hardfought.org/nethack/rcedit
# Examples of common defaults:
OPTIONS=windowtype:tty
OPTIONS=showexp,!autopickup,standout
OPTIONS=autodig,fruit:burger,boulder:0,silent
OPTIONS=lit_corridor,!cmdassist,autoquiver,autodescribe
# statushitlites is a popular option for 3.6.x - some common settings:
OPTIONS=statushilites
OPTIONS=hilite_status: hitpoints-max/green&normal
OPTIONS=hilite_status: hitpoints/100%/green&normal
OPTIONS=hilite_status: hitpoints/<100%/lightgreen&normal
OPTIONS=hilite_status: hitpoints/<76%/yellow&normal
OPTIONS=hilite_status: hitpoints/<51%/orange&normal
OPTIONS=hilite_status: hitpoints/<26%/red&normal
OPTIONS=hilite_status: hitpoints/<11%/black&normal
OPTIONS=hilite_status: experience-level/changed/white/cyan
OPTIONS=hilite_status: hunger/changed/white/orange
# Curses UI is available on this build. Example settings (uncomment OPTIONS=windowtype:curses to enable)
# All Curses UI settings are commented out
##################
# Curses Settings
##################
# default values in parentheses
# Enable curses windowport (false)
#OPTIONS=windowtype:curses
# To use new NH4-style status window (true)
# set !classic_status
# Not yet implemented in 3.6.1
#OPTIONS=classic_status
# Window borders (3)
# 1 - always draw borders
# 2 - never draw borders
# 3 - draw borders if terminal is big enough
#OPTIONS=windowborders:3
# Set terminal window for same dimensions
# Adjust these variables to your liking
#OPTIONS=term_cols:120
#OPTIONS=term_rows:32
# Attributes for pet highlighting (???)
# [i]talics (or is it inverse?)
# [u]nderline
# [b]old
# possibly others
#OPTIONS=petattr:u
# use colour in non-map areas (true)
OPTIONS=guicolor
# Display inventory window permanently on right of screen (false)
OPTIONS=perm_invent
# Window alignment (msg:top, status:bottom)
# note: align_status:left/right displays a more verbose window, arranged vertically
# this is only partially implemented in 3.6.1 and is buggy
# it will be fixed soon
#OPTIONS=align_message:top
#OPTIONS=align_status:bottom
# Settings not specific to curses that you will want to use.
OPTIONS=hitpointbar
OPTIONS=color,menucolors,statushilites
# End of Curses settings
##################
BIND=':run
BIND=@:pickup
MSGTYPE=hide "You swap places with .*"
MSGTYPE=hide "The .* picks up a.*"
MSGTYPE=hide "The .* drops a.*"
MSGTYPE=hide "There is a.* here."
MSGTYPE=norep "You see here .*"
MSGTYPE=norep "You hear a.*"
MSGTYPE=stop "The .* (grabs|swings itself around) you!"
MSGTYPE=stop "You don't feel very well."
MSGTYPE=stop "You are turning a little green."
MSGTYPE=stop "Your limbs are getting oozy."
MSGTYPE=stop "Your skin begins to peel away."
MSGTYPE=stop "You are turning into a green slime."
MSGTYPE=stop "You are slowing down."
MSGTYPE=stop "Your limbs are stiffening."
MSGTYPE=stop "It constricts your throat!"
MSGTYPE=stop "You find it hard to breathe."
MSGTYPE=stop "You're gasping for air."
MSGTYPE=stop "Your blood is having trouble reaching your brain."
MSGTYPE=stop "You can no longer breathe."
MSGTYPE=stop "You're turning blue."
MSGTYPE=stop "Your consciousness is fading."
MSGTYPE=stop "You feel deathly sick."
MSGTYPE=stop "You feel (much|even) worse."
# For more information on what you can set in your nethackrc file, refer to:
# https://nethackwiki.com/wiki/Options
# Happy hacking!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment