What System Variables exist and what do they hold? Print
Written by Ghoti   
Tuesday, 30 March 2010 14:30

$CurrentLogFile
Empty if the session is not logging but is the log file name while logging. This allows you to have script check forlogging. @isempty($CurrentLogFile) returns 0 while logging and 1 once the log is closed

$ReturnTripMsecs
Contains the milliseconds between when the last text was sent to the mud and the first bytes received from the mud after that. This is always displayed on the bottom status portion of the window to the left of Cmds:

$ANSICopy
This holds the Full ANSI color clipboard information. Filled when you press control while selecting text on the display.

$TimeSinceLastInput
Tells you amount of seconds since you last sent an input to the MUD.

$LoopCount
Used with the Loop command it has your current Loop number. Note that in the loop command you may supply your own variable to use instead of this system variable.

$ForeColor
Keeps track of the current text color. Could be used in an /if statement to validate a color of a trigger.

$ListItem
This is the variable to use when using list procedures. It holds the value of the current list item when cycling through the list.

$LoopCount
When using the /loop command this is the current value of the loop.

$CmdsProcessed
This is the number of commands and procedures Mud Master has processed since the session file was opened.

$LinesReceived
This is the number of lines received from the mud since the session was opened.

$BytesReceived
This is the number of bytes received from the mud since the session was opened.