Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ruger
Newbie


Joined: 30 Jun 2002
Posts: 4

PostPosted: 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.
Reply with quote
seamer
Magician


Joined: 26 Feb 2001
Posts: 358
Location: Australia

PostPosted: 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...
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net