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
➜ Autosplit trigger
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tromiko
(2 posts) Bio
|
Date
| Tue 23 Dec 2008 02:37 AM (UTC) |
Message
| I have been trying to figure out for age how to get this trigger to work. I kill a mob and get all the coins from the corpse, yet I cannot figure out how to make it autosplit the coins, if anyone helps me I would be very greatful. The message that sets off the trigger is as follows:
There were # coins.
I want it to send:
Split #
# is not the symbol for random number as well, I would like to know what the proper symbol is for that as well. Thank you person who helps me with this dilemma.
| Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #1 on Tue 23 Dec 2008 02:45 AM (UTC) |
Message
| Easy way:
Trigger:
There were * coins.
Send:
split %1
This isn't limited to just numbers though.
More resilient way:
Trigger:
^There were (\d+) coins\.$
Regular Expression: checked
Send:
split %1
See the help file under Contents / General / Regular Expressions for a lot more information on RegExs | Top |
|
Posted by
| Tromiko
(2 posts) Bio
|
Date
| Reply #2 on Tue 23 Dec 2008 02:46 AM (UTC) |
Message
| Thank you so much, I just started using Mushclient and I actually prefer it over all the other clients I've used, it is so fast, heh. | 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.
12,474 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top