ALIAS
Command: #alias {name} {commands} {priority}
The #alias command can be used to shorten up long or oftenly used
commands. The %1-99 variables are substituted from the arguments when
using an alias and represent the 1st till 99th word which can be used
in the commands part of the alias. If %0 is used it will contain all
arguments. The priority part is optional and determines the priority
of the alias, it defaults to 5.
If no % variable is used in the commands section any argument will be
appended to the end as if %0 was used. This feature might be removed
in the future, and shouldn't be used.
Example: #alias {k} {kill %1;kick}
Typing 'k orc' would result in attacking the orc followed by a kick.
You can create multi-word aliases by using variables in the name
section.
Example: #alias {k %1 with %2} {draw %2;attack %1;slash %1 with %2;
kick at %2;strike %1 with %2}
Using the above alias you could type k blue smurf with battle axe
To have an alias that matches all user input, use %* as the name.
Example: #alias {%*} {#show You wrote: %0}
Aliases are ordered alphabetically and only one alias can trigger at
a time. To change the order you can assign a priority, which defaults
to 5, with a lower number indicating a higher priority. The priority
can be a floating point number.
To remove an alias with %* as the name, use #unalias {%%*} or #unalias
{\%*}. Alternatively you can wrap the alias inside a class, and kill
that class when you no longer need the alias.
For more information on pattern matching see the section on PCRE.
Comment: You can remove an alias with the #unalias command.
Related: cursor, history, keypad, macro, speedwalk and tab.
|