Set triggers into the same name or the same group?

Posted by porridge cat on Sat 05 May 2007 09:33 PM — 2 posts, 12,517 views.

#0
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?

Australia Forum Administrator #1
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