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 »

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: 5035
Joined: Sat Mar 14, 2009 3:13 pm

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

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

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 »

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 »

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 »

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

Post Reply