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 ➜ General ➜ Similar keywords to trigger different reaction

Similar keywords to trigger different reaction

You need to log onto the forum to reply or create new threads.

  Refresh page


Posted by Winddancer   (35 posts)  Bio
Date Thu 12 Feb 2026 03:32 PM (UTC)
Message
Hi.
I tried to look up the explanation on how to correctly use the "sequence" entry in triggers but failed to find the documentation.

My current problem is the following.
I want to call a macro whenever I thrust a weapon at an opponent, so I have a trigger that reacts to "^You thrust your*" which will then execute the macro.

A recent addition into the game added a special bloody ritual, which unfortunately also starts the same way, but continues with a specific message "You thrust your hand with brutal force between the exposed organs..."

My idea was to add a second trigger, one with a "higher priority" that basically just does an emote but prevents the macro from being executed.
Would that be possible with simply assigning different sequence numbers, provided higher sequence number mean gets priority in execution? Or does that simply account for the order in which the triggers are processed?
Top

Posted by Fiendish   USA  (2,551 posts)  Bio   Global Moderator
Date Reply #1 on Sun 15 Feb 2026 09:19 AM (UTC)

Amended on Sun 15 Feb 2026 09:20 AM (UTC) by Fiendish

Message
Quote:
I want to call a macro whenever I

That's not what macro means in mushclient.

Quote:
provided higher sequence number mean gets priority in execution

Opposite.

Quote:
Or does that simply account for the order in which the triggers are processed?

That depends on whether you activate the "keep evaluating" option.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 22 Feb 2026 09:41 AM (UTC)
Message

… but failed to find the documentation.

https://www.gammon.com.au/scripts/doc.php?dialog=IDD_EDIT_TRIGGER

Scroll down to “sequence” part.


- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 22 Feb 2026 09:44 AM (UTC)

Amended on Sun 22 Feb 2026 09:45 AM (UTC) by Nick Gammon

Message

How incoming text is processed

Would that be possible with simply assigning different sequence numbers, provided higher sequence number mean gets priority in execution? Or does that simply account for the order in which the triggers are processed?

The lower sequence triggers are processed first. If “keep evaluating” is not checked then the first matching trigger stops further evaluation, otherwise other triggers will be evaluated as well.


- 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.


276 views.

You need to log onto the forum to reply or create new threads.

  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.