[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]  Triggering based on Note from last trigger
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Triggering based on Note from last trigger

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


Posted by Tspivey   Canada  (53 posts)  [Biography] bio
Date Sun 11 Jan 2009 11:41 PM (UTC)
Message
I'm running up against a problem. I have one trigger that modifies a line,
and I want to match all of the other triggers off of that one.
So the first trigger would fire, omit the line, and Note() another line. I want
another trigger to match on the line that the first one Note()-ed. Is this possible?
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] bio
Date Reply #1 on Mon 12 Jan 2009 12:30 AM (UTC)
Message
Nope. But if you're scripting anyway to do the note, why not just call the other triggers functions?
[Go to top] top

Posted by Shadowfyr   USA  (1,783 posts)  [Biography] bio
Date Reply #2 on Mon 12 Jan 2009 03:11 PM (UTC)
Message
Well, actually, there is a way, but it has limitations. He could use "Simulate" instead of Note, but that means inserting colors and things like that as Ansi sequences, or MXP codes (if enabled), since it will be handles the resulting line as though it was being sent via the mud, not just displayed as a note.

If the triggers he has are not functions, but just simple, "do this in reaction to that", such that they also hit lines he isn't changing, then there are not going to be any other "functions" to call anyway, so using the simulation function would be a lot better.

http://www.gammon.com.au/scripts/function.php?searchfor=simulate
[Go to top] top

Posted by Onoitsu2   USA  (248 posts)  [Biography] bio
Date Reply #3 on Tue 13 Jan 2009 05:49 AM (UTC)
Message
As for the similation method, I prefer using this for reasons of omitting output from the server, and then altering it to an easier to trigger upon form, or just simply easier to read form.

-Onoitsu2
[Go to top] top

Posted by Shadowfyr   USA  (1,783 posts)  [Biography] bio
Date Reply #4 on Tue 13 Jan 2009 08:44 PM (UTC)
Message
Precisely, and since its not clear what he is doing, having no examples, its hard to say if it would be easier to modify the line, then match via simulate, or to mod the line, then call other things at the same time, which might require complex matching, better handled by the trigger system. ;)
[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.


6,606 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]