yTin Online Help  

  Home (english) | Home (chinese) | Downloads | Sample scripts | Online help | Utilities | FAQs | Discussions/Messages | Mud&links | My Progs | Mirrors |

format:      #alias [{word}] [{command(s)}]
                  #alias [word] [command]

the [] signify optional arguments.

Define a word that actually means a longer string.   Useful for commands
repeated often, or commands that are very lengthy.   You can have multiple
commands aliased to a single word, if you enclose the alias in {}.

If the command(s) include variables %0-9, these are substituted as part
of the parsing.   %0 is set to all text after the word was input, %1 is set
to the first word following the aliased word, and %2 is the second, and so on.

If the #alias command is typed without any arguments, all aliases defined will
be listed.

If the #alias command is typed with only 1 argument, occurrences matching the
input string are shown.   The * character is valid in this word to act as a
'wildcard'.   See help wildcard.

#alias gb get bread bag
typing gb at the prompt would be sent as 'get bread bag'.
#alias ws {wake;stand}
since ws aliases a multiple command, you must use the braces.
#alias heal cast 'heal' %1
typing 'heal valgar' at the prompt would be sent as 'cast 'heal' valgar' since
it will put the word valgar into %1
list all aliases
#alias he*
list all aliases that start with the letters 'he'

See also: #unalias, #al2variable, #var2alias, #message alias