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
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Mon Jan 19, 2004 7:39 am   

Alias help
 
I'm trying to make an alias that makes riding horses in the mud i play easier. Often, there are multiple horses in a room, and are therefore designated 1.horse, 2.horse, 3.horse, etc. I have an alias atm:

#AL rh {ride %1~.horse}

so when i type in "rh 2" it rides the second horse.

What i want to do is be able to type in "rh2" and have it ride 2.horse, instead of having to have the space in between. Is there any way to do this?
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Mon Jan 19, 2004 10:07 am   
 
As far as I know, you have to have a seperate alias to do that. But this should do what you want. It's simpler than making seperate aliases, but slightly more complex than a single alias.

#ALIAS rh {ridehorse %1}
#TRIGGER {ridehorse (%N)} {ride %1~.horse}
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Mon Jan 19, 2004 10:51 am   
 
You could do what you want, with #ONINPUT:

#ONINPUT {rh(%d)$} {ride %1.horse}
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Mon Jan 19, 2004 8:16 pm   
 
Ah... I have never used the #ONINPUT command before. I'll have to check it out, too. :)
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