Distant Lands

  Main Menu

· Home
· About DL
· Roleplaying
· Library
· Forums
· Art Gallery
· Photo Gallery
· Links
· Online Help

· Play Now!



Alias

The alias command is used to make a single command that does more
than one task or is easier to type.

The command by itself will list of your currently defined aliases.

> alias

To create a new alias use the following format:
alias <new alias name> <substitution>

> alias ggc get gold corpse

You can also use ; to define multiple commands in one alias.

> alias wakeup wake ; drink water ; eat bread ; stand

There are also a few variables you can use in your aliases:
$1 $2 $3 $4 $5 $6 $7 $8 $9 $*

The variables $1 - $9 represent words that are placed into
your alias.

> alias cput put $1 bag;put $2 bag;put $3 bag

> cput bannana apple grapes   This translates into put bananna bag,
                              put apple bag and put grapes bag.

The variable $* represent all of the words used after the alias.

> alias tn tell nezmar $*

> tn Distant Lands is a great mud!   This translates into tell Nezmar
                                     Distant Lands is a great mud!

You can also combine a number with the $* alias to add all of the words
used after a specific number of words. Note: This will remove the leading
space.

> alias actsay emote $1 and says, '$2*'

> actsay smiles Hello, it is nice to meet you.

This would translate into an emote such as the following:

Nezmar smiles and says, 'Hello, it is nice to meet you.'

To delete an alias, use the following format:
alias <old alias name>

> alias actsay

See Also:  !
Back to Distant Lands Help Help Master Keyword Index List
  Recent Posts

 
  W3C Validation
Valid XHTML 1.0 Strict Valid CSS!

Website layout and design by .
DHTML Menu By Milonic JavaScript