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
quirk
Novice


Joined: 16 Aug 2003
Posts: 31
Location: USA

PostPosted: Sat Aug 16, 2003 7:45 pm   

Help with alias variable
 
I would like to make a variable where i type
sav 18
output to mud would be
zedit save 18
redit save 18
medit save 18
oedit save 18

or whatever other number i needed to use
Any help would be appriciated thanks
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Aug 16, 2003 8:05 pm   
 
Aliases work with
%# for a particular parameter number.
%-# for a everything after and including that parameter number
(and there is something about them getting appended at the end - not in front of zMud to give tested examples)


#ALIAS sav {zedit save %1;redit save %1;medit save %1;oedit save %1}

As an aside, you use aliases parameters like:
#ALIAS say {speak %1;say %-2}
In:
say english This is in english
Out:
speak english
say This is in english
Reply with quote
quirk
Novice


Joined: 16 Aug 2003
Posts: 31
Location: USA

PostPosted: Sat Aug 16, 2003 8:14 pm   
 
Thank you so much for the quick and working response.
Smile
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