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


Joined: 07 Jun 2002
Posts: 5
Location: USA

PostPosted: Mon Jun 10, 2002 1:21 am   

Alias problem
 
Is there a way to make an alias with the first part as the constant, and the rest as variable. For example to talk on a channel I want to be able to alias it 'c message' instead of 'clan message'. I'm setting this up so we can us Zchat instead of public channels to talk. Any help would be greatly appreciated as usual. Thanks.

-Balin
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Mon Jun 10, 2002 1:50 am   
 
Yup. The alias system works kind of l;ike the trigger, where the first word will be %1, the second will be %2, etc. Also you can use %-1 to indicate the first word and everything that comes after, of %-2 to indicate the second word and everything that comes after it. So your alias would look like this:

#ALIAS {c} {clan %-1}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jun 10, 2002 9:09 am   
 
Even better, an alias will, by default, append anything that follows it to the end of its action. So all you need is
#AL c {clan}

LightBulb
Vague questions get vague answers
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