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 w/ w/o target
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Atheis
(3 posts) Bio
|
| Date
| Mon 08 Mar 2010 06:57 PM (UTC) |
| Message
| is it possible to have an alias than can be used with and without a target?
mm * = cast 'magic missile' %1
when you use that alias you always need to type the target afterwards. what if youre already fighting and just want to type 'mm' without the target? | | Top |
|
| Posted by
| Twisol
USA (2,257 posts) Bio
|
| Date
| Reply #1 on Mon 08 Mar 2010 07:11 PM (UTC) Amended on Mon 08 Mar 2010 07:12 PM (UTC) by Twisol
|
| Message
| Try this on for size:
<aliases>
<alias
name="foobar"
match="^\s*mm(?:\s+(.+))?\s*$"
enabled="y"
regexp="y"
ignore_case="y"
sequence="100"
>
<send>cast 'magic missile' %1</send>
</alias>
</aliases>
mm test
-> cast 'magic missile' test
mm
-> cast 'magic missile' |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | | Top |
|
| Posted by
| Atheis
(3 posts) Bio
|
| Date
| Reply #2 on Mon 08 Mar 2010 07:27 PM (UTC) |
| Message
| | so is that what you type in the send box? what do you type in 'alias', 'send', etc... sry im new to muding | | Top |
|
| Posted by
| Twisol
USA (2,257 posts) Bio
|
| Date
| Reply #3 on Mon 08 Mar 2010 07:40 PM (UTC) Amended on Mon 08 Mar 2010 07:42 PM (UTC) by Twisol
|
| Message
| Just copy the whole thing in the code box - from <aliases> to </aliases>, inclusive - and go to the Aliases dialog (the one with the list). Then click Paste at the bottom and it'll import the alias.
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
|
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Mon 08 Mar 2010 08:55 PM (UTC) |
| Message
| |
- 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.
18,344 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top