|
abc123 Newbie
Joined: 26 Sep 2003 Posts: 5
|
Posted: Sat Apr 24, 2004 5:44 am
Alias help please? |
I have a slight problem and not sure how to fix it. I have an alias called look and it is defined as:
#alias look {~look %1}
And I use it such as look 2 tree
Then a class folder called tree is created.
Anyone know how to get around this problem so that Zmud doesn't create a class folder? |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Sat Apr 24, 2004 6:15 am |
Although redundant, that alias is properly written, it should work like you want. Are you sure that's all there is to it? Sounds like a problem you might get when using an alias to create other aliases, or if you typoed when creating the alias.
Jesse |
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Sat Apr 24, 2004 6:44 am |
#alias look {~look %-1}
It wasn't properly coded if he wanted to use LOOK with multiple words. |
|
|
|
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Sat Apr 24, 2004 7:40 am |
Well in this instance, if this his full alias (which i doubt because this alias really does nothing since you get that same effect without that alias typing look <whatever> on the command line) it was properly coded since zmud will append any of the remaining text to the end.
Jesse |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Apr 24, 2004 3:52 pm |
This alias will NOT create class folders. Classes are only created when the alias performs zMUD #COMMANDS. Even then, they are only created when the command includes a class field, which is a frequent occurence when you don't control the fields with delimiters.
If you had chosen to share the real alias with us, we could have already told you exactly what the problem is and given you a precise correction. |
|
|
|
abc123 Newbie
Joined: 26 Sep 2003 Posts: 5
|
Posted: Sat Apr 24, 2004 11:46 pm |
quote: Originally posted by user0101
#alias look {~look %-1}
It wasn't properly coded if he wanted to use LOOK with multiple words.
Thank you. It worked but why do I have to make the parameter %-1? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Apr 25, 2004 12:57 am |
*yawn* Try reading the helpfile for #ALIAS for beginers
and also feel free to take a look at
#HELP %param
#HELP %numparams |
|
|
|
|
|