MUME Help
ALIAS, MACROS
Usage:
alias
|
list aliases |
alias <word>
|
delete alias |
alias <word> <expansion>
|
define alias |
alias please remove all of them
|
(sic!) delete all aliases |
You cannot define alias
, or any of its
abbreviations except a
as an alias.
The character &
(ampersand)
acts as a placeholder for arguments to your alias. The
rest of the line (after your alias) is inserted where
&
is found in the definition.
If <expansion> does not contain any &
, any
following words will be added to the end of the command. This does not happen
for multi-command aliases (see below).
Backslash (\
) acts as an
escape character. Use it to
suppress special handling of other characters (such as
ampersand or semicolon). If your alias expansion should contain a backslash,
you have to double it.
Note that your client may treat backslash specially, so you may have to escape it somehow.
Multi-command aliases
An alias can expand into several commands by separating them with semicolons (;
).
An empty command in the expansion will not cancel any delayed action.
Note that your client may treat semicolon specially, so you may have to escape it somehow.
Keyword aliases
If <word> starts with%
(percent) it is a
"keyword alias" which will be expanded whenever a keyword lookup is
done to find a character,
object, or door.
Some words cannot be used as keyword aliases: words that the look command
treats specially (at
, around
, north
,
east
, …) and some prepositions like in
,
from
, and with
.
To inhibit keyword alias expansion, you prepend the word in a command with
%
.
Examples
>
|
|
>
|
drink water |
>
|
|
>
|
kill 2.orc |
>
|
|
>
|
ride behind gandalf |
>
|
|
>
|
|
>
|
alias %target *orc* |
>
|
backstab *orc* |
>
|
backstab 2.*orc* |
>
|
|
>
|
wield longsword |
>
|
wield sword |
>
|
|
>
|
move east, up, south, west, and south |
See help account
for how the
account import
command can import aliases
from other characters in your
account.
See also: | LABELS |
Generated on Thu Sep 5 18:09:40 2024