Go to Top

My .nethackrc file

Put this file in ~/.nethackrc.

# This is an example nethackrc file. You should edit this to suit the needs
# of your personal nethack build and add some reasonable default options
# for your users.

# If you compiled dgamelaunch with the `vi' editor enabled instead of ee,
# perhaps a helpful blurb such as this might help:

# This editor is vi-like. Type ESC a couple times, then ':q!' (without quotes)
# to exit if you get stuck. To save, hit ESC and then ZZ or type ':wq'
# (without quotes.) To insert text, hit 'i' to enter insert mode.

# Here are some examples of reasonable defaults:

OPTIONS=number_pad:1,boulder:0
#OPTIONS=number_pad:0,boulder:0
OPTIONS=pettype:cat,hilite_pet,showrace
OPTIONS=fruit:morsel of existential dread
OPTIONS=autopickup,pickup_types:$!/="?
OPTIONS=disclose:+iagcv
OPTIONS=!cmdassist,!help,!legacy,!news,suppress_alert:3.4.3
OPTIONS=autodig,prayconfirm,!lootabc
OPTIONS=msg_window:reverse,msghistory:1000
OPTIONS=lit_corridor,color,DECgraphics
OPTIONS=showexp,showscore,time
OPTIONS=runmode:teleport,!rest_on_space

OPTIONS=pickup_burden:unencumbered
OPTIONS=sortloot:full
OPTIONS=scores:10 top/3 around/own


# turn ghosts and shades into 'X' - great with telepathy for bones detection
OPTIONS=monsters:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@X'&;:~]

# I encourage people to use my menucolors! It's why I have a version and date.

# eidocolors 1.7.1, 22:02 17 May 06
# last minor: added {X} colors
# last revision: changed container-apply from 'white' to 'none'

OPTIONS=menucolors

#########
# B/U/C #
#########
#MENUCOLOR="^[a-zA-Z$] - "=white #may want to enable this if regularly playing priest.. (priests don't see the 'uncursed')
MENUCOLOR=" !C"=white
MENUCOLOR=" !B"=white
MENUCOLOR=" !UC"=white
MENUCOLOR=" uncursed"=white
MENUCOLOR=" ([-0-9]+:[-0-9]+)"=white #nethack doesn't display "uncursed" if charges are known
MENUCOLOR=" [+-][0-9]"=white

MENUCOLOR=" blessed"=cyan
MENUCOLOR=" cursed"=red


################
# WATER SPORTS #
################
MENUCOLOR=" holy water"=cyan&bold
MENUCOLOR=" blessed clear potion"=cyan&bold
MENUCOLOR=" blessed potions? called water"=cyan&bold
MENUCOLOR=" potions? of water named blessed"=cyan&bold
MENUCOLOR=" potions? called water named blessed"=cyan&bold
MENUCOLOR=" unholy water"=orange
MENUCOLOR=" cursed clear potion"=orange
MENUCOLOR=" cursed potions? called water"=orange
MENUCOLOR=" potions? called water named cursed"=orange

#################
# MISCELLANEOUS #
#################
MENUCOLOR=" (lit)"=bold

###########
# GOODIES #
###########
MENUCOLOR=" bag .* holding"=magenta
MENUCOLOR=" luckstone"=magenta
MENUCOLOR=" wand .* wishing"= magenta
MENUCOLOR=" magic marker"=magenta
MENUCOLOR=" magic lamp"=magenta
MENUCOLOR=" unicorn horn[^[]*$"=magenta #this doesn't color the #enhance unicorn horn skill
MENUCOLOR=" tinning kit"=magenta
MENUCOLOR=" lamp .* magic"=magenta
MENUCOLOR=" ring .* regeneration"=magenta
MENUCOLOR=" ring .* slow digestion"=magenta
MENUCOLOR=" amulet .* life saving"=magenta

#############
# ARTIFACTS #
#############
#unaligned
MENUCOLOR=" \(Dragonbane\|Fire Brand\|Frost Brand\|Ogresmasher\|Trollsbane\|Werebane\)"=lightgreen

#lawful normal, quest
MENUCOLOR=" \(Demonbane\|Excalibur\|Grayswandir\|Snickersnee\|Sunsword\)"=lightgreen
MENUCOLOR=" \(Orb of Detection\|Sceptre of Might\|Magic Mirror of Merlin\|Mitre of Holiness\|Tsurugi of Muramasa\)"=lightgreen

#neutral normal, quest
MENUCOLOR=" \(Cleaver\|Giantslayer\|Magicbane\|Mjollnir\|Vorpal Blade\)"=lightgreen
MENUCOLOR=" \(Heart of Ahriman\|Staff of Aesculapius\|Eyes of the Overworld\|Platinum Yendorian Express Card\|Orb of Fate\|Eye of the Aethiopica\)"=lightgreen

#chaotic normal, quest
MENUCOLOR=" \(Grimtooth\|Orcrist\|Sting\|Stormbringer\)"=lightgreen
MENUCOLOR=" \(Longbow of Diana\|Master Key of Thievery\)"=lightgreen

#invocation items
MENUCOLOR=" \(Bell of Opening\|silver bell\|Candelabrum of Invocation\|candelabrum\|Book of the Dead\|papyrus spellbook\)"=magenta&bold

#raison d'etre
MENUCOLOR=" Amulet of Yendor named"=magenta&bold&underline

#############
# BAD STUFF #
#############
MENUCOLOR=" loadstone"=red&underline
MENUCOLOR=" cursed .* luckstone"=orange&underline

##############################
# WATCH OUT, BAG OF HOLDING! #
##############################
MENUCOLOR=" bag .* tricks"=blue&underline
MENUCOLOR=" wand .* cancellation"=blue&underline
MENUCOLOR=" wand .* vanish"=blue&underline

################
# SHINY THINGS #
################
MENUCOLOR=" gold piece"=yellow
MENUCOLOR=" valuable"=brown
MENUCOLOR=" gems? .* hard"=yellow

#soft gems
MENUCOLOR=" \([0-9]+\|an?\|gems? .*\) \(uncursed \|cursed \|blessed \)?\(dilithium\|opal\|garnet\|jasper\|agate\|jet\|obsidian\|jade\|citrine\|chrysoberyl\|amber\|amethyst\|fluorite\|turquoise\)\(e?s\)?\( stones?\| gems?\| crystals?\)?\( named .*\)?$"=brown

#hard gems
MENUCOLOR=" \([0-9]+\|an?\|gems?.*\) \(uncursed \|cursed \|blessed \)?\(diamond\|rub\(y\|ies\)\|jacinth\|sapphire\|black opal\|emerald\|topaz\|aquamarine\)\(e?s\)?\( stones?\| gems?\)?\( named .*\)?$"=yellow

#######################
# SPELL FAILURE RATES #
#######################
MENUCOLOR=" 0%"=white
MENUCOLOR=" [1-9]%"=cyan
MENUCOLOR=" [12][0-9]%"=cyan
MENUCOLOR=" [3-6][0-9]%"=yellow
MENUCOLOR=" 7[0-5]%"=yellow
MENUCOLOR=" 7[6-9]%"=orange
MENUCOLOR=" 8[0-9]%"=orange
MENUCOLOR=" 9[0-9]%"=red
MENUCOLOR=" 100%"=red

###################
# FORGOTTEN SPELL #  # thanks, Stevie
###################
MENUCOLOR="[a-zA-Z] - [a-zA-Z ]+ [0-9]\*   [a-z]+ +[0-9]+%"=magenta

############
# SHOPPING #
############
#This doesn't want to work for my term
#MENUCOLOR=" (unpaid, [0-9]+ zorkmids?)"=underline

############
# #ENHANCE #  # thanks itsblah
############
MENUCOLOR="^ +[a-z -]+ +\[\(Unskilled\|Basic\|Skilled\|Expert\|Master\|Grand Master\)\]$"=none           # normal
MENUCOLOR="^ *[a-z] - +[a-z -]+ +\[\(Unskilled\|Basic\|Skilled\|Expert\|Master\|Grand Master\)\]$"=white # ready to enhance
MENUCOLOR="^ +\* +[a-z -]+ +\[\(Unskilled\|Basic\|Skilled\|Expert\|Master\|Grand Master\)\]$"=white      # enhanceable if more skill slots
MENUCOLOR="^ +# +[a-z -]+ +\[\(Unskilled\|Basic\|Skilled\|Expert\|Master\|Grand Master\)\]$"=none        # enhanceable if more potential

################
# FORCE COLORS #
################
# Some of these are subject to change !

MENUCOLOR="{R}"=red
MENUCOLOR="{B}"=blue
MENUCOLOR="{C}"=cyan
MENUCOLOR="{G}"=green
MENUCOLOR="{Y}"=yellow
MENUCOLOR="{[MP]}"=magenta
MENUCOLOR="{O}"=orange
MENUCOLOR="{W}"=white
MENUCOLOR="{L}"=black
MENUCOLOR="{y}"=gray
MENUCOLOR="{g}"=lightgreen
MENUCOLOR="{b}"=lightblue
MENUCOLOR="{[mp]}"=lightmagenta
MENUCOLOR="{c}"=lightcyan
MENUCOLOR="{N}"=none
MENUCOLOR="{X}"=bold
MENUCOLOR="{x}"=dim
MENUCOLOR="{U}"=underline
MENUCOLOR="{I}"=inverse
MENUCOLOR="{K}"=blink

########################
# LOOT/APPLY CONTAINER #
########################
MENUCOLOR=" is empty. Do what?"=none
MENUCOLOR="Put something into .*"=none
MENUCOLOR="Take something out of .*"=none

MENUCOLOR="cancellation"=magenta&underline
MENUCOLOR="bag"=magenta&underline



MENUCOLOR="wand$"=magenta&underline
MENUCOLOR="wand named"=magenta&underline
MENUCOLOR="wand called"=lightmagenta&underline


OPTIONS=name:Stumbly

# This is an example nethackrc file. You should edit this to suit your needs

# This editor is vi-like. Type ESC a couple times, then ':q!' (without quotes)
# to exit if you get stuck. To save, hit ESC and then ZZ or type ':wq'
# (without quotes.) To insert text, hit 'i' to enter insert mode.
# You could also go to http://alt.org/nethack/ and choose either WebConf or RC Edit

# For more information on what you can set in your nethackrc file, refer to:
#   http://www.nethack.org/v343/Guidebook.html#_TOCentry_42
# Happy hacking
# For more information on what you can set in your nethackrc file, refer to:
#   http://www.nethack.org/v343/Guidebook.html#_TOCentry_42
# Happy hacking!

Notes

  1. pachanka posted this