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
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Dec 16, 2002 5:10 am   

%1 etc.
 
the alias i have now looks sorta like this:


#alias find {
#temp {(%d) %1} {#echo %1}
}

see, i need the first %1 to be the argument i pass the alias, and the second %1 to be saved portion of the matching pattern from the temp trigger.
so far i can only get %1 to be the argument to the alias.
any advice
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Dec 16, 2002 11:34 am   
 
#alias find {#exec {%concat("#temp {(%d) ",%1,"} {#echo %","1")}}
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Dec 16, 2002 4:14 pm   
 
aha, clever
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Dec 16, 2002 4:47 pm   
 
Double %'s for the #TEMP. zMUD strips one % each time it interprets the statement, so the first % is for #AL and the second will be for #TEMP.
#alias find {#temp {(%%d) %1} {#echo %%1}}

LightBulb
Senior Member
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