Timer Trigger - Match previous line(s) request #383
Replies: 3 comments 3 replies
-
|
The problem is that 5 seconds worth of previous lines could be thousands of lines. It's not really practical. The current previous line match doesn't have many uses but the handful of cases it is useful it doesn't have any negative impact on your triggers. Unless you start basing your timers on your cast messages and use the end early matches for resists and worn off messages I don't think there's a good alternative right now. You may need to wait for the environment variables people are asking for. Then you could add a trigger for your cast message that sets something like MY_CAST=true and then have the trigger that looks for 'feels faster' message have an additional check that MY_CAST has to equal true in addition to the match pattern. Then you could add a timeout on the variable. Maybe it only lasts 5 seconds. Maybe the trigger that sees the 'feels faster' message also unsets the variable at the same time. I don't know when I'll have this but that's the idea. |
Beta Was this translation helpful? Give feedback.
-
|
So, I've gone through the discussions and requests I got on discord and I got a plan generated. It's going to be a bit more complicated to handle all these cases. Here's what I'm working with just FYI. |
Beta Was this translation helpful? Give feedback.
-
|
I see this in the pull requests but have no idea to use that version. Would love to use this to differentiate my mezzes. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Currently, from what I can tell, the Trigger Properties of a trigger have a way to not only inspect a given line for a pattern match, but it can also consider the immediately previous line in the logs when determining whether a line matches or not. This is great in concept, but is restrictive in practice.
For my use case, I have a bunch of triggers setup to display countdown timers for my buffs/debuffs. I regularly run into two problems that could be solved with a little more robust previous line matching.
In both the above cases, you could theoretically fix the issues by examining the previous line to see if it's something like "You begin casting Haste" or "You begin casting Root" or "You begin casting Immobilize". The problem is the matching logic only trigger if the target line and previous line patterns are immediately adjacent in the log files. This is nearly impossible to happen in a spell-casting scenario, where there will be many seconds between the "You begin casting Root" and the "{s1} adheres to the ground" log entries.
It would be nice if there was a way to have a Match Previous Line option, but based on time range instead of just the immediately previous line. That way, triggers could be setup such that the trigger can match on "{s1} adheres to the ground" but only activate the trigger if there was a "You being casting Root" message within the last 5 seconds. I know there could still be edge-case scenarios where this still false-fires (I begin casting root, it fizzles or is resisted, but someone else also rooted withing 5 seconds so the mob adheres to the ground anyway). Additional NOT checks could be added but let's keep it simple since having the ability to match on a previous line within a time range would go a long way to weeding out false positives
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions