Custom map symbols

From NetHackWiki
Jump to navigation Jump to search
For corresponding features in NetHack 3.4.3 and variants based on it, see Custom map symbols (3.4.3).

In NetHack, the configuration file can be used customize the map symbols using lines of the form SYMBOLS=symbol name:character starting in NetHack 3.6.0. You can set multiple custom map symbols per line, separated by commas, for example:

SYMBOLS=S_boulder:0, S_web:^

The symbol name is from the same list used by the symbols file:

  • S_stone
  • S_vwall
  • S_hwall
  • S_tlcorn
  • S_trcorn
  • S_blcorn
  • S_brcorn
  • S_crwall
  • S_tuwall
  • S_tdwall
  • S_tlwall
  • S_trwall
  • S_ndoor
  • S_vodoor
  • S_hodoor
  • S_vcdoor
  • S_hcdoor
  • S_bars
  • S_tree
  • S_room
  • S_darkroom
  • S_corr
  • S_litcorr
  • S_upstair
  • S_dnstair
  • S_upladder
  • S_dnladder
  • S_altar
  • S_grave
  • S_throne
  • S_sink
  • S_fountain
  • S_pool
  • S_ice
  • S_lava
  • S_vodbridge
  • S_hodbridge
  • S_vcdbridge
  • S_hcdbridge
  • S_air
  • S_cloud
  • S_poisoncloud
  • S_water
  • S_arrow_trap
  • S_dart_trap
  • S_falling_rock_trap
  • S_squeaky_board
  • S_bear_trap
  • S_land_mine
  • S_rolling_boulder_trap
  • S_sleeping_gas_trap
  • S_rust_trap
  • S_fire_trap
  • S_pit
  • S_spiked_pit
  • S_hole
  • S_trap_door
  • S_teleportation_trap
  • S_level_teleporter
  • S_magic_portal
  • S_web
  • S_statue_trap
  • S_magic_trap
  • S_anti_magic_trap
  • S_polymorph_trap
  • S_vibrating_square
  • S_vbeam
  • S_hbeam
  • S_lslant
  • S_rslant
  • S_digbeam
  • S_flashbeam
  • S_boomleft
  • S_boomright
  • S_goodpos
  • S_ss1
  • S_ss2
  • S_ss3
  • S_ss4
  • S_sw_tl
  • S_sw_tc
  • S_sw_tr
  • S_sw_ml
  • S_sw_mr
  • S_sw_bl
  • S_sw_bc
  • S_sw_br
  • S_explode1
  • S_explode2
  • S_explode3
  • S_explode4
  • S_explode5
  • S_explode6
  • S_explode7
  • S_explode8
  • S_explode9
  • S_strange_obj
  • S_weapon
  • S_armor or S_armour
  • S_ring
  • S_amulet
  • S_tool
  • S_food
  • S_potion
  • S_scroll
  • S_book
  • S_wand
  • S_coin
  • S_gem
  • S_rock
  • S_ball
  • S_chain
  • S_venom
  • S_ant
  • S_blob
  • S_cockatrice
  • S_dog
  • S_eye
  • S_feline
  • S_gremlin
  • S_humanoid
  • S_imp
  • S_jelly
  • S_kobold
  • S_leprechaun
  • S_mimic
  • S_nymph
  • S_orc
  • S_piercer
  • S_quadruped
  • S_rodent
  • S_spider
  • S_trapper
  • S_unicorn
  • S_vortex
  • S_worm
  • S_xan
  • S_light
  • S_zruty
  • S_angel
  • S_bat
  • S_centaur
  • S_dragon
  • S_elemental
  • S_fungus
  • S_gnome
  • S_giant
  • S_jabberwock
  • S_kop
  • S_lich
  • S_mummy
  • S_naga
  • S_ogre
  • S_pudding
  • S_quantmech
  • S_rustmonst
  • S_snake
  • S_troll
  • S_umber
  • S_vampire
  • S_wraith
  • S_xorn
  • S_yeti
  • S_zombie
  • S_human
  • S_ghost
  • S_golem
  • S_demon
  • S_eel
  • S_lizard
  • S_worm_tail
  • S_mimic_def
  • S_boulder
  • S_invisible
  • S_pet_override
  • S_hero_override

The character is likewise formatted as in the symset file. Some of the ways to format it:[1]

  • a single literal character
  • a single literal character inside single quotes
  • an escape code of the form \o000 for octal
  • an escape code of the form \x00 for hexadecimal
  • an escape code of the form \000 for decimal

(If you know the rules for character constants in the C programming language, you might notice these rules are slightly different.)

Example: any of these lines sets the boulder to display as 0.

  • SYMBOLS=S_boulder:0
  • SYMBOLS=S_boulder:'0'
  • SYMBOLS=S_boulder:\o060
  • SYMBOLS=S_boulder:\x30
  • SYMBOLS_S_boulder:\048

Non-ASCII characters will display according to the character set that the terminal or graphical system supports.

References