TinTin++ Mud Client Manual
Alias
space
Syntax: #alias {name} {commands} {priority}
space
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. The priority part is optional and determines the priority of the alias, it defaults to 5.
space
If %0 is used it will contain all arguments, if the commands part only exists of a single word, variables are automatically attached to the end.
space
Example: #alias {k} {kill %1;kick}
space
Typing 'k orc' would result in attacking the orc followed by a kick.
space
You can create more complex aliases by using variables in the name section of the alias, which will override the default variable handling.
space
Example: #alias {k %1 with %2} {wield %2;attack %1;slash %1 with %2;whirl %2;strike %1 with %2}
space
Using the above alias you would type something like: k blue smurf with battle axe
space
To have an alias that matches all user input, use %* as the name.
space
Example: #alias {%*} {#showme You wrote: %0}
space
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.
space
Notice: You can remove aliases with the #unalias command.
space
To remove an alias with %* as the name, use #unalias {%%*} or #unalias {\%*}. Alternatively you can wrap the alias inside a class, and then kill that class when you no longer need the alias.
space
See also: Cursor, History, Keypad, Macro, Speedwalk and Tab.
space