Feature Request: Determine which line of a trigger was caugh

Post Reply
User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Feature Request: Determine which line of a trigger was caugh

Post by tsuujin » Mon May 31, 2010 2:08 am

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

User avatar
Vadi
Posts: 4728
Joined: Sat Mar 14, 2009 3:13 pm

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

Post by Vadi » Mon May 31, 2010 2:25 am

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.)

Iocun
Posts: 174
Joined: Wed Dec 02, 2009 1:45 am

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

Post by Iocun » Mon May 31, 2010 10:26 pm

I agree very much as well.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

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

Post by Heiko » Thu Jun 03, 2010 12:34 pm

I put this on my todo list.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

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

Post by tsuujin » Thu Jun 03, 2010 4:59 pm

Heiko wrote:I put this on my todo list.
excellent

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests