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
➜ Help with an alias..
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tsinghahla
Sweden (14 posts) Bio
|
Date
| Tue 07 Jun 2005 08:22 PM (UTC) |
Message
|
In the client I used to have, I could simply make an alias and add text after it, let me do an example to explain better..
I had an alias "vili" which did "vodun illusion"
And I could simply do "vili boo", and the alias would execute as "vodun illusion boo".
How would I go about doing it in MUSH?
Do I need to make a script for this, or is there an easier way to do it?
I've tried to do the same thing, but it won't work as I want it to, as the alias will only do "Vodun Illusion" and nothing more after that. | Top |
|
Posted by
| Larkin
(278 posts) Bio
|
Date
| Reply #1 on Tue 07 Jun 2005 08:35 PM (UTC) |
Message
| You would make an alias with a wildcard match after it. You can use * for the general alias syntax, or use something more specific, if you prefer regular expressions.
Alias: vili *
Send to world: vodun illusion %0
(I think it's %0, but might be %1...)
Alternative (regular expression) alias: ^vili (?P<illusion>.+)$
Send to world: vodun illusion %<illusion> | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #2 on Tue 07 Jun 2005 09:16 PM (UTC) |
Message
| It is %1, %0 is the whole matched line.
%1 for the first wildcard, %2 for the second, etc.
And yeah, you'll simply need to add the wildcard. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | 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.
14,242 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top