Procedures

Procedures shown in RED are available only in the beta version.

Abs - Returns the absolute value of a number.

AnsiBold - Returns an ANSI string to turn on the high intensity bit.

AnsiReset - Returns an ANSI string that resets the color states -- black background, low intensity grey foreground.

BackBlack - Returns an ANSI string that sets the background color to black.

BackBlue - Returns an ANSI string that sets the background color to blue.

BackCyan - Returns an ANSI string that sets the background color to cyan.

BackGreen - Returns an ANSI string that sets the background color to Green.

BackMagenta - Returns an ANSI string that sets the background color to Magenta.

BackRed - Returns an ANSI string that sets the background color to Red.

BackYellow - Returns an ANSI string that sets the background color to brown (dark yellow).

BackWhite - Returns an ANSI string that sets the background color to grey.

CharColor - Returns the color of a specific character in a string. Can be used in actions to verify the line the action triggered on is indeed the one you want.

ChatConnects - Returns the number of chat connections you have.

ChatName - Returns your chat name.

Chr - Returns the ascii character equivalent of a number.

CommandToList - This one should really be a command. It is an exception and the only procedure that doesn't return a value. It executes a set of commands against every item in a list.

ConCat - Returns the concatentation of two strings.

Connected - Returns 1 if you are connected to a mud, 0 if not.

Day - Returns the current day of the month (1-31).

EventTime - Returns the number of seconds remaining before an event fires.

Exists - Returns 1 if the named variable exits, 0 if not.

FileExists - Returns 1 if the named file exists, 0 if not.

ForeBlack - Returns an ANSI string that sets the foreground color to black.

ForeBlue - Returns an ANSI string that sets the foreground color to blue.

ForeCyan - Returns an ANSI string that sets the foreground color to cyan.

ForeGreen - Returns an ANSI string that sets the foreground color to green.

ForeMagenta - Returns an ANSI string that sets the foreground color to magenta.

ForeRed - Returns an ANSI string that sets the foreground color to red.

ForeYellow - Returns an ANSI string that sets the foreground color to yellow.

ForeWhite - Returns an ANSI string that sets the foreground color to white.

GetArray - Returns an element from an array.

GetCount - Returns the number of items in a list.

GetItem - Returns an item from a list.

GetKey - Waits for the user to press a key and returns it.

Hour - Returns the current hour (0-23).

InList - Returns 1 if an item is found in a list, else 0.

IP - Returns your IP address.

IPP - Returns your IP address and port number.

IsEmpty - Returns 1 if a variable is empty, 0 if it has data in it.

KeyWaiting - Returns 1 if there is a key in the buffer waiting to be read. Can be used in conjunction with GetKey to prevent the program from halting and waiting for the key.

Left - Returns the left side portions of a string.

Len - Returns the number of characters in a string.

Lower - Returns a lower case version of a string.

LTrim - Returns a string with any spaces on the left side trimmed off.

Math - Returns the result of a math formula.

Mid - Returns a portion of a string.

Minute - Returns the current time minutes (0-59).

Month - Returns the current month of the year (1-12).

NumActions - Returns the number of actions you have defined.

NumAliases - Returns the number of aliases you have defined.

NumArrays - Returns the number of arrays you have defined.

NumBarItems - Returns the number of status bar items you have defined.

NumEvents - Returns the number of events you have defined.

NumGags - Returns the number of gags you have defined.

NumHighlights - Returns the number of highlights you have defined.

NumLists - Returns the number of lists you have defined.

NumMacros - Returns the number of macros you have defined.

NumSubstitutes - Returns the number of substitutes you have defined.

NumTabList - Returns the number of words in your tab completion list.

NumVariables - Returns the number of variables you have defined.

PadLeft - Pads the left side of a string with any character you want.

PadRight - Pads the right side of a string with any character you want.

PreTrans - Forces Mud Master to translate commands at the time of command creation rather than at runtime.

Random - Returns a random number.

Right - Returns the right side portion of a string.

RTrim - Returns a string with any spaces on the right side trimmed off.

Second - Returns the current time number of seconds (0-59).

StripAnsi - Returns a version of the string with all ansi codes removed.

StrStr - Finds an occurence of one string within another and returns the index of where the string starts.

TextColor - Similar to CharColor, this procedure returns the color of a string of text.

Time - Returns the number of seconds elpased since January 1, 1970.

TimeToDay - Returns the day of the month converted from a Time value (1-31).

TimeToDayOfWeek - Returns the day of the week converted from a Time value (0-6).

TimeToHour - Returns the hour converted from a Time value (0-23).

TimeToMinute - Returns the minutes converted from a Time value (0-59).

TimeToMonth - Returns the month converted from a Time value (1-12).

TimeToSecond - Returns the seconds converted from a Time value (0-59).

TimeToYear - Returns the year converted from a Time value.

Upper - Returns an upper case version of a string.

Val - Returns the value of a string.

Var - Looks up the text passed to it as if it were a variable name and returns the value of that variable.

Version - Returns the version of the software.

Word - Returns a specific word number from a string.

WordColor - Works similar to CharColor and TextColor. Returns the color of a specific word in a string.

WordCount - Returns the number of words in a string.

Year - Returns the current year.