Difference between revisions of "Environment variable"

From NetHackWiki
Jump to navigation Jump to search
m (special room, not shop.)
(add the SHOPTYPE symbols)
Line 6: Line 6:
 
*ROGUEOPTS - Set the ghost name in the [[Rogue level]]. For example, setting ROGUEOPTS's value to <tt>name=Foo</tt> would name the ghost to 'Foo'
 
*ROGUEOPTS - Set the ghost name in the [[Rogue level]]. For example, setting ROGUEOPTS's value to <tt>name=Foo</tt> would name the ghost to 'Foo'
 
*SHOPTYPE - For [[wizard mode]] debugging, forces a creation of a [[special room]]. For example, setting this to <tt>z</tt> will make a [[Treasure zoo]] on every level.
 
*SHOPTYPE - For [[wizard mode]] debugging, forces a creation of a [[special room]]. For example, setting this to <tt>z</tt> will make a [[Treasure zoo]] on every level.
 +
 +
{|class="prettytable"
 +
!Letter
 +
!Room
 +
|-
 +
|z or Z
 +
|David's Treasure Zoo
 +
|-
 +
|m or M
 +
|Graveyard
 +
|-
 +
|b or B
 +
|Beehive
 +
|-
 +
|t or T or \
 +
|Throne room
 +
|-
 +
|s or S
 +
|Barracks
 +
|-
 +
|a or A
 +
|Anthole
 +
|-
 +
|c or C
 +
|Cockatrice nest
 +
|-
 +
|l or L
 +
|Leprechaun hall
 +
|-
 +
|_
 +
|Temple
 +
|-
 +
|<nowiki>}</nowiki>
 +
|Swamp
 +
|-
 +
|g or G
 +
|General store
 +
|-
 +
|Object symbol
 +
|Shop that sells those objects
 +
|}
 +
 
*SPLEVTYPE - For [[wizard mode]] debugging, forces NetHack to use certain layouts for the [[special level]]s that have multiple layouts. For example: <tt>bigrm-2,minetn-5</tt> would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
 
*SPLEVTYPE - For [[wizard mode]] debugging, forces NetHack to use certain layouts for the [[special level]]s that have multiple layouts. For example: <tt>bigrm-2,minetn-5</tt> would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
 
*NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.
 
*NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.

Revision as of 22:50, 10 January 2008

NetHack checks the following environment variables:

  • NETHACKOPTIONS - You can define configuration options here.
  • HACKOPTIONS - The same as NETHACKOPTIONS, but used only if NETHACKOPTIONS was not defined.
  • WIZKIT - Allow wizard mode games to start with extra items.
  • ROGUEOPTS - Set the ghost name in the Rogue level. For example, setting ROGUEOPTS's value to name=Foo would name the ghost to 'Foo'
  • SHOPTYPE - For wizard mode debugging, forces a creation of a special room. For example, setting this to z will make a Treasure zoo on every level.
Letter Room
z or Z David's Treasure Zoo
m or M Graveyard
b or B Beehive
t or T or \ Throne room
s or S Barracks
a or A Anthole
c or C Cockatrice nest
l or L Leprechaun hall
_ Temple
} Swamp
g or G General store
Object symbol Shop that sells those objects
  • SPLEVTYPE - For wizard mode debugging, forces NetHack to use certain layouts for the special levels that have multiple layouts. For example: bigrm-2,minetn-5 would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
  • NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.
  • HOME - Your home directory.
  • MAIL - On window ports that support reading mail, this should point to your mail box file.
  • MAILREADER - On window ports that support reading mail, NetHack will spawn this mailreader to read your mail.
  • TERM - Terminal type.


This page is a stub. Should you wish to do so, you can contribute by expanding this page.