|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: Sat Aug 16, 2003 8:14 pm |
Thank you so much for the quick and working response.
|
|
|
|
|
|