[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Autosplit trigger
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Autosplit trigger

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Tromiko   (2 posts)  [Biography] 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.

[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] 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
[Go to top] top

Posted by Tromiko   (2 posts)  [Biography] 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.
[Go to top] 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.


3,128 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]