 |
stoic912 Newbie
Joined: 14 Jan 2007 Posts: 2
|
Posted: Sun Jan 14, 2007 10:00 pm
Multiple trigger lines |
When I was making my triggers, I realized that I was making 8 or 9 triggers that all did the same thing, but the pattern lines were all different. Is there any way I could just... Make one big trigger out of them all?
Thank you. |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jan 14, 2007 11:05 pm |
Yep. Just use a stringlist pattern:
#trigger {{@stringlist}} {}
@stringlist -- name of the variable containing a string list of all the patterns you want included, or the stringlist of patterns itself (no need for the variable, but it helps if the lines are really long or the list is really large).
A word of caution, however. Depending on the size and complexity of your stringlist, you might notice a bit of a slowdown as ZMud tries to work through all possible matches. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
stoic912 Newbie
Joined: 14 Jan 2007 Posts: 2
|
Posted: Sun Jan 14, 2007 11:23 pm |
So do you think it would be faster to do seperate triggers, and just throw them into a class folder?
I'm kind of liking that idea better, anyways... |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jan 14, 2007 11:42 pm |
If you don't want to do it that way, just make an alias and have them all run it. Makes editing easier.
|
|
|
|
 |
|
|
|