ALIAS
Keywords:
ALIAS, UNALIAS
Syntax: alias
alias <word>
alias <word> <substitution>
unalias <word>
The alias command allows limited shortening of command names. At this time,
aliases cannot call other aliases, and cannot generate more than one
command. Alias by itself lists your current aliases, Alias <word> lists the
alias with that name (if such exist), and alias with both a word and
argument produces a new alias. You cannot alias either alias or unalias to
a new command. Another nice feature of aliases is the ability to use
substitutions, very handy in creating personalized socials and whatnot. The
way to use substitutions is to include numbers (up to 3) with a % in front.
Examples:
alias gc get all corpse
-This alias allows you to 'get all corpse' by simply typing in gc.
alias ff cast 'fireball'
-This alias lets you cast fireball with ff, and 'ff orc' will cast 'fireball' orc
alias grin pmote %1 grins at @ slyly.
-This alias is an example of a custom social. Typing 'grin Celrion' will do
'pmote Celrion grins at @ slyly. '
Two notes about aliases: Using simple aliases such as the first two
examples, you do not need to include any arguments. Simply typing in 'gc'
is just fine. Using power aliasing with the %1, %2 and %3, you NEED to
include arguments or the results you'd wind up with could be rather
interesting (such as mis-pmotes, miscasts, etc). Also, keep in mind that
when using simple aliases, any arguments given are simply added to the end of the line (so typing 'gc look' would do 'get all corpse look') whereas with Power aliases only the number of arguments needed are taken (typing 'grin Celrion cast invis' is essentially the same as typing 'grin Celrion')