Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Alias question
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Frederic
Canada (1 post) Bio
|
| Date
| Sat 24 Nov 2001 03:08 AM (UTC) |
| Message
| Hi.
I want to switch the aliases I have on a MUD to the alias list in MUSHclient.
The problem that comes to mind is I tried one and it didnt work too well.
alias: ba *
send: cast 'ballistic attack' %1
If I do ba (target) to start a battle, it works fine.
But during a battle, just using ba, the MUD returns a "Cast spell on who?" message.
I have a bunch of aliases similar to that one, and I don't really feel like making 2 aliases for 1 spell.
Just wondering what you could suggest for that.
Appreciate the help,
Frederic | | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 24 Nov 2001 09:57 PM (UTC) Amended on Sat 24 Nov 2001 09:58 PM (UTC) by Nick Gammon
|
| Message
| It says that because your alias has a space in it. Thus is is looking for:
ba(space)(something)
You can work around that by using a regular expression, like this:
Alias: ^(ba|ba (.*))$
Send: cast 'ballistic attack' %2
Regular expression: checked
This says to look for "ba" only, or "ba" followed by a space, followed by other things. Thus it covers both cases. You have to change %1 to %2 because of the way the regular expression works. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,304 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top