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
➜ General
➜ Some triggers stop others from working
Some triggers stop others from working
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Boxknife
(19 posts) Bio
|
Date
| Fri 09 Jul 2010 06:19 PM (UTC) |
Message
| Some triggers stop others from working. I'm not exactly sure which triggers do or why because I've got so many (I'll delete all the triggers but one not working, and it'll start working). What could be a possible reason? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 09 Jul 2010 09:53 PM (UTC) |
Message
| They are supposed to do that. This lets you set up scenarios like this:
Trigger 1:
Match: Nick waves at you
Send: emote grin at Nick
Trigger 2:
Match: * waves at you
Send: emote smile at %1
In that case the first trigger stops the second one from firing, which is what you want. You should also give the first one a lower "sequence" (eg. 90 for the first, and 100 for the second) to guarantee it gets tested first.
However if you want triggers to allow others to fire too, check the "keep evaluating" flag (for both triggers, unless you are sure one of them will fire first because of its sequence number).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #2 on Fri 09 Jul 2010 10:15 PM (UTC) |
Message
| I typically make sure "Keep evaluating" is always checked unless I have a good reason not to. You have far fewer real cases where you want to block other triggers from matching. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sat 10 Jul 2010 01:11 AM (UTC) |
Message
| As an efficiency note, leaving it unchecked is faster. Especially if you have something (eg. a prompt) that occurs very often. Making your prompt trigger have a low sequence number, and not "keep evaluating" stops the program potentially having to do hundreds of matches, which you already know won't match, as it is a prompt. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #4 on Sat 10 Jul 2010 01:43 AM (UTC) |
Message
| In my experience, prompt triggers are actually among the most common, or at least the most duplicated. It's unfortunate that there's no way to selectively 'keep evaluating', heheh. Leaving "keep evaluating" unchecked on a prompt trigger is something I'd never recommend, having dealt with related issues other Achaean players have. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Boxknife
(19 posts) Bio
|
Date
| Reply #5 on Sat 10 Jul 2010 02:36 AM (UTC) |
Message
| Ooh, gotcha. Thanks guys. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sat 10 Jul 2010 03:54 AM (UTC) |
Message
|
Twisol said:
It's unfortunate that there's no way to selectively 'keep evaluating', heheh.
A trigger can set or clear the "keep_evaluating" flag for itself, if done in send to script. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #7 on Sat 10 Jul 2010 03:59 AM (UTC) |
Message
| Hmm. You could kludge together some kind of selective keep-evaluating with that and setting up specific sequences, I suppose. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | 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.
18,451 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top