Home mm2k6 Help Files Commands Miscellaneous Commands - File Commands
24 | 01 | 2018
Miscellaneous Commands - File Commands
Article Index
Miscellaneous Commands
Speedwalk
File Commands
All Pages

File Commands

Dir

Format: /dir {file mask} {result list}

Dir fills a list with all the files matching the file mask.

  • {file mask} - Path and wildcard characters of files to find.
  • {result list} - The name of a list to fill with the results. If the list doesn't already exist it will be created.

/dir {*.*{DirList}
Fills a list named DirList with all the files in the Mud Master directory.

FileDelete

Format: /filedelete {filename}

Deletes a file.

{filename} - Full path and filename of a file to delete.

EditCurrent

Format: /editcurrentsession  {Filename}
/editcurrentsession

With no argument the current sesion default script file is opened in notepad.
With a file name that file is opened in notepad.
Example:

/editc

This opens the current default start up script in notepad.

Spam

format: /spam {filename with path}

Reads a text file and displays it without processing script or sending the text to the MUD. ANSI colour commands are supported.  Useful in displaying help or hint text especially in combination with the /window command to display in a separate window.

Textin

Format: /textin {filename}

Sends the contents of a textfile to the mud.

{filename} The name of the file to send.

Textout

Format: /textout {filename}{text}{append indicator}

Sends text to a textfile.

  • {filename} The name of the file to write to.
  • {text} The text to output to the file.
  • {append indicator} Optional argument. If present text will be apppended to the end of the file. Otherwise text will replace anything in the file if it exists.

Viewlog

Format: /viewlog {filename}{[ProcessScript]}

Display the contents of a log file created with the RawMudLog feature. If the second argument exists then the current script will be processed as the log is read in. This may slow down the input significantly.

Write

Format: /write {filename}

Write all currently loaded script to the file specified.

WriteGroup

Format: /writegroup {filename} {group}

Writes all your commands, aliases, actions etc... belonging to a certain group
to a command file.

  • {filename} The name of the file to write your commands to.
  • {group} The group identifying the commands to save

Intersection

Format: /itersection {X1} {Y1} {Radius1} {X2} {Y2} {Radius1} {Variable Name}

Calculates the two points where the two circles intersect.
Result is in the form of (x,y) (x,y)

{X1} X coordinate of the center of the first circle
{Y1} Y coordinate of the center of the first circle
{X2} X coordinate of the center of the second circle
{Y2} Y coordinate of the center of the second circle
{Radius1} distance from the center of the center of the first circle
{Radius2} distance from the center of the center of the second circle
{Variable Name} Variable where the result string is placed.

Math

Format: /math {variable for result} {math expression}

The math command lets you perform mathematical equations and place the result
in a variable. Math does integer math only (no floating point).

  • {variable for result} The name of the variable to place the result in. If the variable doesn't exist it will be created.
  • {math expression} Mathematical expression to be evaluated.

Operator  Description
--------  -----------
()        Precedence
*         Multiplication
/         Division
%         Modulus
+         Addition
-         Subtraction

Anything enclosed in the parens will be evaulated first. Then all the
multiplication, division and modulus operators are evaulated left to right.
Then addition and subtraction are evaluated left to right.

/math {result} {3 + 5 * 4}
Would place the number 23 in a variable called "result."

/math {result} {(3 + 5) * 4}
Would place the number 32 in a variable called "result."

/math {result} {$Result + 1}
Adds 1 to variable "result."

/math {result} {5 % 3}
The modulus operator returns the remainder of a division as an integer. This
would place the number 2 in the variable "result." 5 divided by 3 leaves a
remainder of 2.

Presubstitute

Format: /presubstitute

When on, substitutes are processed before the actions are checked. When off
actions are processed on the original text

Help

Format: /help topic

Commands           Procedures          UserGuide

To view a help topic type "/help topic name".  To see all the commands available type "/help commands" or /help /. To view a list of all procedures enter /help @

If this is the first time you are using Mud Master you will probably want to take a look at the session command first.  That is the command that connects you to a mud.  "/help session"

/help

/help {Command Name}

/help {@Procedure Name}

By itself with no arguments, this will display the starting help file. /help /  to list command help files. /help @ to list all procedures.

Using a / in front of a command name /help /commandname  will allow you to abbreviate the command. If the help is not found try spelling it out completely.

Version

Format: /version

Displays the version of the client you are using.