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.
Entire forum
➜ MUSHclient
➜ General
➜ get two words to match in trigger
get two words to match in trigger
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Fibo
(2 posts) Bio
|
Date
| Sat 15 Aug 2009 08:00 PM (UTC) |
Message
| I'm using Mush client and want to make a trigger so that when I get 'You lost your concentration while trying to cast *'
it will send 'c %1'. But sometimes there are two words to the spell, how do I get it to not confuse 'cure blind' with 'cure light' for example. If you could literally type what I need to put in the trigger box, and in the send box that would be great. Thanks | Top |
|
Posted by
| Fibo
(2 posts) Bio
|
Date
| Reply #1 on Sat 15 Aug 2009 08:20 PM (UTC) |
Message
| Oh another question at the end of * is a period, how do I omit this when it executes %1 I don't want anything copied after the spellname. because it has been telling me I don't know spell 'true seeing.' <---that period is messing it up. sorry I suck. | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #2 on Sat 15 Aug 2009 08:44 PM (UTC) |
Message
|
<triggers>
<trigger
enabled="y"
match="^You lost your concentration while trying to cast (.*?)\.$"
regexp="y"
sequence="100"
>
<send>c %1</send>
</trigger>
</triggers>
see http://www.mushclient.com/pasting for more specific instructions on what to do with the above. :)
(highlight, copy to clipboard, open triggers dialog, click paste button.)
As for getting confused... aren't the messages different? "You lost your concentration while trying to cast cure blind." vs ""You lost your concentration while trying to cast cure light."?
The above sends exactly what the mud sends back. If you can't just type:
c cure blind
to the mud without problems (i.e. aardwolf needs
c 'cure blind'
)
then put the ' marks around the %1 above before pasting.
| 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.
13,910 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top