Alias (Control command)
alias [<alias name> [<alias value>]]
Alias (or a macro as it may be sometimes called) is a short
version of a command to allow you perform actions around the MUD with
the least possible typing. For example, instead of typing "look table",
you would normally type just "l table": "l" is an alias for "look".
While many aliases may be just as simple as that, they are often
used with the "do" command to allow you to travel quickly from place
to place or even perform some small quest quickly.
The following syntaxes are valid with the alias command:
- alias - View current aliases.
- alias <alias> <command> - Set the verb alias to execute command.
- alias <alias> - Check the value of <alias>.
- unalias <alias> - Remove <alias> from the alias list.
- alias -clear - Clears all aliases.
- alias -global - Shows standard (un-overridable) aliases.
- alias -print - Shows a copy-paste friendly list of aliases.
Note: This list is not screen reader friendly.
In your alias text, you are allowed to use the following substitution
$# - Where # is the number of the word after the verb to substitute.
$* - Will be substituted with everything after the verb.
With an alias like: "alias sm smile $1 and $2",
typing "sm bob nod", would result in a command "smile bob and nod".
Note that it is not necessary to use the "$*" substitution at the
end, as that will be done automatically. So, "alias k kill $*" is
actually the same as just "alias k kill".
Prefixing the alias' verb with a $ allows you to set up a verb that
does not require a space after it. i.e. "alias $' say $*" will allow you
to do says as:
'Hey! This is most Stufly!
Look at the default aliases for examples.
Be careful not to alias a word which is already a command. For
example, "alias kill kiss lloyd" would make it easier to kiss Lloyd, but
would make it impossible to kill any monsters!
The total number of aliases you can have is: 1000