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
jrlogan1
Newbie


Joined: 02 Feb 2003
Posts: 6

PostPosted: Sun Feb 02, 2003 1:59 pm   

Is this alias possible?
 
I would like to make an alias for getting things out and putting into containers while in a mud. In this example, let's use a pack as a container. Rather than typing 'get bread pack', I want to type 'out bread'. Same idea the other way, rather than typing 'put bread pack', type 'in bread'. I can't seem to figure out how do configure this alias using the zmud help files.
Is it possible?
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Sun Feb 02, 2003 3:01 pm   
 
#var container pack
#alias out {get "%1" @container}
#alias in {put "%1" @container}




zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
jrlogan1
Newbie


Joined: 02 Feb 2003
Posts: 6

PostPosted: Mon Feb 03, 2003 2:37 am   
 
I'm sure many of you will think this is a stupid question, but I have basically no coding experience and I am new to zmud. I can see how the above script makes sense, but where in zmud do I actually enter it to use it. If I click the alias tab, I have to enter an alias name, followed by whatever commands fit that name. This example has two aliasses (in and out) which doesn't seem to fit the way zmud is set up.
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Feb 03, 2003 2:45 am   
 
thats ok
just copy and paste the text into the command line.
start with the first # and end with the last }

for future reference, most everything you see here prepended with a # is a zmud command that can be entered in the command line, and all text following it would be its arguments (even across multiple lines if they are surrounded by curly brackets).

--------

moon.icebound.net:9000
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Feb 03, 2003 2:45 am   
 
You enter the above script at the command line. You can do it one line at a time or you can cut-and-paste all three lines at once.

LightBulb
Advanced Member
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