nethack.org (2760B)
1 #+TITLE: nethackrc 2 #+PROPERTY: header-args :tangle "xdg-config/nethack/nethackrc" :mkdirp t 3 4 * Visual 5 6 These are my settings for the interface. 7 8 ** Curses 9 10 #+begin_src shell 11 OPTIONS=windowtype:curses 12 #+end_src 13 14 ** Show more info 15 16 Show a hitpoint bar behind name. 17 Show the inventory permamently. 18 Show the turn count. 19 20 #+begin_src shell 21 OPTIONS=hitpointbar 22 OPTIONS=perm_invent 23 OPTIONS=time 24 #+end_src 25 26 ** Symbols/Names 27 28 Highlight pets and piles 29 30 #+begin_src shell 31 OPTIONS=hilite_pet 32 OPTIONS=hilite_pile 33 #+end_src 34 35 Use =0= to show boulders 36 37 #+begin_src shell 38 OPTIONS=boulder:0 39 #+end_src 40 41 Change fruit name to =Juul pod= 42 43 #+begin_src shell 44 OPTIONS=fruit:juul pod 45 #+end_src 46 47 * Gameplay 48 49 Pick up cash, rings, and wands. These items are light, and I always 50 pick them up anyway. 51 52 #+begin_src shell 53 OPTIONS=pickup_types:=/$ 54 #+end_src 55 56 ** Bones 57 58 Disable bones. I find it usually just gets in the way. 59 60 #+begin_src shell 61 OPTIONS=!bones 62 #+end_src 63 64 * Shell script 65 66 A shell script so that I can play multiple characters. All are female 67 for egg-laying. This launches nethack in [[https://st.suckless.org][st]] if the environment 68 variable =$DISPLAY= is set, screen if =$STY= is set, otherwise it 69 starts nethack in the controlling terminal. 70 71 | kni | [[https://en.wikipedia.org/wiki/Bradamante][Bradamante]], lawful human knight | 72 | sam | [[https://en.wikipedia.org/wiki/The_Bride_(Kill_Bill)][Beatrix]], lawful human samurai | 73 | ran | [[https://wow.gamepedia.com/Alleria_Windrunner][Alleria]], chaotic elven ranger | 74 | mon | [[https://en.wikipedia.org/wiki/Ng_Mui][Ng Mui]], human monk (choose alignment) | 75 76 #+begin_src shell :tangle "bin/nh" :shebang "#!/bin/sh" 77 launch() { 78 # First argument is the nethack character, 79 # Second argument is the title for st or screen 80 if [ -n "$DISPLAY" ]; then 81 st -g 140x50 -t "$2" -e nethack -u "$1" 82 elif [ -n "STY" ]; then 83 screen -t "$2" nethack -u "$1" 84 else 85 nethack -u "$1" 86 fi 87 } 88 89 case $1 in 90 nil) 91 launch "$USER" 'Nethack' 92 ;; 93 kni) 94 launch Bradamante-kni-hum-law-fem 'Nethack (Knight)' 95 ;; 96 sam) 97 launch Beatrix-sam-hum-law-fem 'Nethack (Samurai)' 98 ;; 99 ran) 100 launch Alleria-ran-elf-cha-fem 'Nethack (Ranger)' 101 ;; 102 rog) 103 launch Anna-rog-hum-fem 'Nethack (Rogue)' 104 ;; 105 wiz) 106 launch Sabrina-wiz-hum-cha-fem 'Nethack (Wizard)' 107 ;; 108 mon) 109 launch Ng_Mui-mon-hum-fem 'Nethack (Monk)' 110 ;; 111 ,*) 112 printf "Usage: nh [character] 113 where CHARACTER is one of the following: 114 115 nil: nothing preselected 116 kni: lawful human knight 117 sam: lawful human samurai 118 ran: chaotic elven ranger 119 rog: chaotic human rogue 120 wiz: chaotic human wizard 121 mon: unaligned human monk\n" 122 esac 123 #+end_src