|
ruger Newbie
Joined: 30 Jun 2002 Posts: 4
|
Posted: Sun Jun 30, 2002 4:34 am
alias in general |
i was wondering how to even use the alias in the mud i use triggers all the time but i don't understand alias and some people say they are better.
|
|
|
|
seamer Magician
Joined: 26 Feb 2001 Posts: 358 Location: Australia
|
Posted: Sun Jun 30, 2002 5:38 am |
alias's just make automation of tasks easier. for example, changing sets of equipment for different purposes...easier to make an alias once that does "wear hat;wear boots;put hat container;put boots container" than manually typing it over each time. if you type something, you can alias it, basically. another good example is directions (#alias {gotohell} {recall;.2s134nsd2wnw} than typing the directions every time.
alias creation is simple
#alias {commandname} {commands to perform;seperated with a ; like so}
Why oh WHY did I have pass door on... |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jun 30, 2002 5:45 am |
An alias is a one-word madeup command. It can be used to do multiple tasks with a single command, as seamer suggests. It can also be used just to make a command easier to type. For instance, you could use #AL mm {cast magic missile} and then whenever you wanted to cast magic missile you'd only have to type mm.
It's very similar to a trigger, except that it's used for your input instead of the mud's output.
LightBulb
Senior Member |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jun 30, 2002 11:43 pm |
They can also be used as subroutines (ie, like a visual basic SUB). They are the PERFECT solution if you wanted to include looping support in your user-defined function (which you cannot do because all the loops are command statements, which cannot be used in a user-defined function).
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|