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


Joined: 26 Sep 2003
Posts: 5

PostPosted: 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?
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: 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
Reply with quote
user0101
Apprentice


Joined: 01 Aug 2003
Posts: 100
Location: USA

PostPosted: 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.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

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


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
abc123
Newbie


Joined: 26 Sep 2003
Posts: 5

PostPosted: 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?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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
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