TinTin++ Mud Client Manual
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
Line
space
Syntax: #line {option} {argument}
space
The line command provides various line based operations.
space
#line {log} {<filename>} {[text]}
space
#line log logs the given text to the given filename. If no text argument is given, the next to be displayed line will be logged to the given file. If any TinTin++ color codes are used in the text argument they'll be translated to ANSI color codes. The logging format will be either HTML, RAW, or PLAIN depending on the #config {LOG} setting.
space
#line {logverbatim} {<filename>} {[text]}
space
#line logverbatim works exactly like #line log, except that color codes, variables, and functions in the text argument won't be substituted.
space
#line {gag}
space
When called the next to be displayed line will be gagged. As actions trigger before the line they trigger on is displayed, using #line gag within an action will cause the triggering line not to be displayed.
space
#line {ignore} {argument}
space
The argument is executed without any triggers being checked. Useful if you want to use #showme without triggering any actions to avoid trigger loops.
space
#line {quiet} {argument}
space
The argument is executed with suppression of system messages.
space
#line strip {argument}
space
The argument is executed after being stripped of all VT100 and ANSI color codes.
space
#line substitute {options} {argument}
space
Multiple options can be given by separating them with command separators. Valid options are:
space
  • Variables: Substitute all variables
  • Functions: Substitute all functions
  • Colors: Substitute all tintin color codes
  • Escapes: Substitute all escaped characters
  • Secure: Escape all braces, variables, functions, and command separators
space
#line verbose {argument}
space
The argument is executed verbose.
space
space
Example:
#var ignore_list {{Bubba}{1}{Pamela}{1}};

#act {%1 tells you '%2'}
{
	#if {&ignore_list[%1]}
	{
		#line gag
	}
	{
		#line logverbatim tells.log
	}
}
space
The above example will log all tells to the tells.log file, unless the sender is on the ignore list, in which case the tell is gagged.
space