Another InfoType for GetLineInfo

Posted by Ked on Sun 26 Oct 2003 05:51 PM — 4 posts, 10,863 views.

Russia #0
It would be awfully nice if GetLineInfo could provide a 12th infotype - a list of names of triggers that matched on the given line, or 0 if no triggers matched.
Australia Forum Administrator #1
You could make each trigger "remember" it fired (eg. by storing somewhere the line number of the current line).
Australia Forum Administrator #2
If you want to know which triggers fired, turn on "trace" mode (Game menu) and then you will see a display for each trigger and alias that matches, like this:

TRACE: Matched trigger trigger_a
TRACE: Matched trigger trigger_b
Russia #3
The second suggestion wouldn't really work - too spammy with all my plugins... But the first one should work fine, don't know why I never thought of it myself. Thanks