Autosplit trigger

Posted by Tromiko on Tue 23 Dec 2008 02:37 AM — 3 posts, 16,236 views.

#0
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.

USA #1
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
#2
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.