Difference between revisions of "MSGTYPE"

From NetHackWiki
Jump to navigation Jump to search
m (first info)
 
(NAO has it; link my config. Maybe I'll get around to extracting the hightlights.)
Line 6: Line 6:
 
}}
 
}}
  
'''MSGTYPE''' is a [[patch]] for NetHack 3.4.3 which adds configuration [[option]]s allowing user to change how messages are displayed.
+
'''MSGTYPE''' is a [[patch]] for NetHack 3.4.3 which adds configuration [[option]]s allowing user to change how messages are displayed. [[Nethack.alt.org]] has it.
  
For example whether a message always waits for <tt>--more--</tt>, or if it's never shown, or if it's never shown more than once in row.
+
For example whether a message always waits for <tt>--MORE--</tt>, or if it's never shown, or if it's never shown more than once in row.
  
 
The format is
 
The format is
Line 15: Line 15:
  
 
*"hide" hides the message, so it's never shown.
 
*"hide" hides the message, so it's never shown.
*"stop" always prompts for --more-- after the message.
+
*"stop" always prompts for --MORE-- after the message.
 
*"norep" shows the message, but not again if no other message is shown in between.
 
*"norep" shows the message, but not again if no other message is shown in between.
  
Line 27: Line 27:
 
  MSGTYPE=stop "You find it hard to breathe."
 
  MSGTYPE=stop "You find it hard to breathe."
 
  MSGTYPE=stop "You are turning a little *"
 
  MSGTYPE=stop "You are turning a little *"
 +
 +
[[User:Tjr|Tjr]] has a much more [http://alt.org/nethack/userdata/t/tjr4/tjr4.nh343rc complicated sample config].
  
 
[[Category:Patches]]
 
[[Category:Patches]]

Revision as of 17:55, 12 January 2011

messagetype
Author Pasi Kallinen
Download link
NetHack PatchDB 397

MSGTYPE is a patch for NetHack 3.4.3 which adds configuration options allowing user to change how messages are displayed. Nethack.alt.org has it.

For example whether a message always waits for --MORE--, or if it's never shown, or if it's never shown more than once in row.

The format is

MSGTYPE=foo "string to match"

Where "foo" is one of "hide", "stop" or "norep", and the string to match is a message to be matched, with '*' and '?' wildcard expansion.

  • "hide" hides the message, so it's never shown.
  • "stop" always prompts for --MORE-- after the message.
  • "norep" shows the message, but not again if no other message is shown in between.
# displacing pets
MSGTYPE=hide "You displaced *"
# items on floor
MSGTYPE=norep "You see here a *"
MSGTYPE=norep "You see here an *"
# delayed instadeaths
MSGTYPE=stop "You are slowing down."
MSGTYPE=stop "You find it hard to breathe."
MSGTYPE=stop "You are turning a little *"

Tjr has a much more complicated sample config.