Register forum user name Search FAQ

Gammon Forum

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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ trigers with identical patterns

trigers with identical patterns

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


Posted by Cloud   Czech Republic  (12 posts)  Bio
Date Sat 26 Jan 2002 05:12 PM (UTC)
Message
Why not let users to define more triggers with the same pattern, when they have keep evaluating on?

For example I use two prompt triggers - one active always to watch my current hp etc, the second one activated only sometimes from script to serve as triger to function that captures multi-line object identify and puts it into database (as a sign where the object id ends). I solved it by adding (.*) to the beginning of one of them, but I see no reason for this not to be allowed directly without such tricks.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 26 Jan 2002 09:15 PM (UTC)
Message
I suppose I did that because it didn't seem logical to check for the same thing twice, and you might get confused if you had two triggers matching on the same thing, and changed the first one you saw to give a different result, but nothing happened.

You could achieve what you want with one trigger by calling a script, and in the script decide whether to do A or B depending on whether some flag is set.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cloud   Czech Republic  (12 posts)  Bio
Date Reply #2 on Mon 28 Jan 2002 12:30 AM (UTC)
Message
I had in my mind for example to change the error dialog into warning with possibility to accept the risk of confusing these two triggers later - it "doen't seem logical" to me to disallow something that can be easily circumvented anyway.

I must admit though that is is not any major idea and I'll quit bugging about it after this post, after all this is the only thing I found little annoying in Mushclient and there is workaround for it, it just makes few regexp triggers more unreadable then necessary.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 28 Jan 2002 09:46 PM (UTC)
Message
The error test was an early one, before you could do "keep evaluating", scripting, and regular expressions, so it was logical at the time.

Now, you are right, it makes less sense. I have added your idea as suggestion #445.

- Nick Gammon

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


16,155 views.

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

Go to topic:           Search the forum


[Go to top] top

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