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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Triggers once more!

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Triggers once more!

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Morten   (5 posts)  [Biography] bio
Date Mon 03 Sep 2001 05:58 PM (UTC)  quote  ]
Message
Greetings,

I wonder if it is possible to make a trigger which
add something in front of the line which it trigger on.

Like:

Fathom gives you a brand new set of climbing gear.

will look like:

<= ATTEMPT => Fathom gives you a brand new set of climbing gear.

Thanks in Advance.

Morten.
[Go to top] top

Posted by Nick Gammon   Australia  (18,801 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 04 Sep 2001 04:50 AM (UTC)  quote  ]
Message
You can do this:



Trigger: Fathom gives you *
Send: <= ATTEMPT => %0
Omit from output: checked
Send to: Output


The trigger itself can be whatever you want (eg. "* gives you *").

The %0 in the "send" line is "the whole matching text" which you then put "<= ATTEMPT =>" in front of.

By omitting it from output the original line is dropped.

By sending to output the new line (with <= ATTEMPT => in front of it) is put in the output window instead.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


1,323 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]