|
jrlogan1 Newbie
Joined: 02 Feb 2003 Posts: 6
|
Posted: 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? |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: 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. |
|
|
|
jrlogan1 Newbie
Joined: 02 Feb 2003 Posts: 6
|
Posted: 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.
|
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|