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
➜ Set triggers into the same name or the same group?
Set triggers into the same name or the same group?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| porridge cat
(16 posts) Bio
|
Date
| Sat 05 May 2007 09:33 PM (UTC) |
Message
| I want to set triggers into the same name, however you can't do that.
If I set triggers into the same group, it still required setting trigger-name first! And the trigger-name are too many to think of a good name...
I just want to set all triggers into the same group. Is there an argument used to set group in AddTriggerEx?
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 05 May 2007 10:14 PM (UTC) |
Message
| No, but if you are using Lua you can easily set individual arguments like this:
require "addxml"
addxml.trigger {
match = "swordfish",
regexp = true,
send = "hi there",
enabled = true,
group = "my_group",
}
Triggers don't need names, so you could add lots of triggers like this into "my_group".
If you are not using Lua, you can still do the same thing by calling ImportXML directly, see this page:
http://www.gammon.com.au/scripts/doc.php?function=ImportXML
|
- 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.
9,534 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top