|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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? |
|
|
|
musishun00 Wanderer
Joined: 16 Dec 2003 Posts: 77 Location: USA
|
Posted: 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} |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Mon Jan 19, 2004 10:51 am |
You could do what you want, with #ONINPUT:
#ONINPUT {rh(%d)$} {ride %1.horse} |
|
|
|
musishun00 Wanderer
Joined: 16 Dec 2003 Posts: 77 Location: USA
|
Posted: Mon Jan 19, 2004 8:16 pm |
Ah... I have never used the #ONINPUT command before. I'll have to check it out, too. :)
|
|
|
|
|
|