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.
Entire forum
➜ MUSHclient
➜ General
➜ Can I assign a trigger to a group using a script?
Can I assign a trigger to a group using a script?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Amun
(9 posts) Bio
|
Date
| Fri 18 Dec 2020 06:10 PM (UTC) Amended on Fri 18 Dec 2020 06:15 PM (UTC) by Amun
|
Message
| I'm having trouble finding any information about doing that. I'm seeing how to enable a group or disable a group, but nothing about assigning a trigger I am creating using a script to a group upon creation, or afterwards.
I'm using LUA if that's relevant.
.... Nevermind! I found it.
https://www.gammon.com.au/scripts/doc.php?function=SetTriggerOption | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Fri 18 Dec 2020 08:30 PM (UTC) Amended on Fri 18 Dec 2020 09:11 PM (UTC) by Fiendish
|
Message
| If you're writing a plugin file, you can set group="whatever_you_want" in the xml portion of the trigger in the same way as you set the other trigger options like name, priority, etc. If you're not writing a plugin, it's one of the GUI interface options.
https://mushclient.com/copying shows an example of both.
You only need to use SetTriggerOption if you're dynamically creating triggers or groups on the fly. |
https://github.com/fiendish/aardwolfclientpackage | 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.
9,034 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top