Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
stoic912
Newbie


Joined: 14 Jan 2007
Posts: 2

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
stoic912
Newbie


Joined: 14 Jan 2007
Posts: 2

PostPosted: 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...
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net