Page 1 of 1

Feature Request: Determine which line of a trigger was caugh

Posted: Mon May 31, 2010 2:08 am
by tsuujin
When you create a trigger, you're given multiple inputs for line patterns. They're numbered from 0 to 49. I absolutly love this grouping method, but I'd like a bit more functionality out of it.

Specifically, I'd like to be able to tell WHICH of the patterns triggered, without needing to do a match against the line variable.

It could be stored in the matches table, using a string rather than a number so there is less confusion. As in: matches["pattern"] returns 3

Re: Feature Request: Determine which line of a trigger was caugh

Posted: Mon May 31, 2010 2:25 am
by Vadi
Yeah, I agree - talked with heiko before over this as well. For the default or triggers, knowing which pattern matched can be real useful at times for grouping purposes (don't want to create many triggers that share the same logic and split it over functions and etc.)

Re: Feature Request: Determine which line of a trigger was caugh

Posted: Mon May 31, 2010 10:26 pm
by Iocun
I agree very much as well.

Re: Feature Request: Determine which line of a trigger was caugh

Posted: Thu Jun 03, 2010 12:34 pm
by Heiko
I put this on my todo list.

Re: Feature Request: Determine which line of a trigger was caugh

Posted: Thu Jun 03, 2010 4:59 pm
by tsuujin
Heiko wrote:I put this on my todo list.
excellent