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
Nardak
Beginner


Joined: 23 Oct 2000
Posts: 29
Location: Sweden

PostPosted: Mon Jan 13, 2003 8:53 am   

Alias.
 
Hi, I want to make an alias that do something like this:

'e a b c' would send 'eat a b c loudly'
I've tried this:
alias: e
value: eat %1 loudly

This would give this:
'e a b c' would send 'eat a loudly b c'

See what I mean? it only sends the first word before 'loudly'.




Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Mon Jan 13, 2003 9:55 am   
 
%1, %2 etc represent the words entered after the alias name, if you want the entire ttext, you need to use %-1 which means 'all the parameters starting at the first one' (%-2 is all params starting at the 2nd one, etc.) - See the help to #ALIAS for more information.

So what you need is:
alias: e
value: eat %-1 loudly

Lady C.
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