reg ex in end early text

Locked
Sachmet
Posts: 1
Joined: Fri May 11, 2012 12:41 pm

reg ex in end early text

Post by Sachmet » Fri May 11, 2012 7:36 pm

Heya,

I use timer triggers to manage dots and dot-like spells. For example to have an eye on a rooted mob while fighting another.
Trigger Name: Greater Immobilize
Search Text: {S1} adheres to the ground.
Use Regular Expressions: On
Timer Name: {S1} - Greater Immobliize
End early text: Your Greater Immobilize spell has worn off of {S1}.

It works great. Rooting different mobs (with different names) will create several timer bars, each one showing the correct mob. And if a root breaks due to the {S1} in the early end message the correct bar is removed. Wohoo! But ... well not every root runs out. The timer becomes useless as soon as the mob was dotted to death and the early end message won't show up at all.
As far as I understood the regular expressions are needed as soon as I use variables like {S1} or {N1}. I used {S1} in the early end message and was convinced I could use a regular expression in that message too.

New End early text: (Your Greater Immobilize spell has worn off of {S1}.|You have slain {S1}!)

This did not work. I tried that expression as trigger to prove its correct syntax. Conclusion: regular expressions don't work with early end texts.
Have you got any idea how I could end a timer with several possible phrases?

Regards Sachmet

Gimagukk
Site Admin
Posts: 237
Joined: Wed Oct 26, 2011 9:29 pm

Re: reg ex in end early text

Post by Gimagukk » Sat May 12, 2012 4:21 pm

Early End Text does not currently support Regex. I will add that to my list of things to work on for next week's build.

Deloehne
Posts: 14
Joined: Wed Jul 18, 2012 6:40 pm

Re: reg ex in end early text

Post by Deloehne » Wed Jul 18, 2012 6:43 pm

I'd like to put in a vote for at least minimal regex support in the end early text. I think shaman, enchanters, necros, clerics and rangers all have a use for multiple end early triggers.

Thanks in advance.

Gimagukk
Site Admin
Posts: 237
Joined: Wed Oct 26, 2011 9:29 pm

Re: reg ex in end early text

Post by Gimagukk » Sun Jul 22, 2012 2:08 am

I added the ability to specify multiple Early End Text entries in 1.0.14.5 (just enter one early end trigger per line in the Early End Text box). Note that this still isn't RegEx support in the Early End Text, but it does still support the replacements tags ({S}, {S1}, {S2}, {N}, {C}, etc).

Deloehne
Posts: 14
Joined: Wed Jul 18, 2012 6:40 pm

Re: reg ex in end early text

Post by Deloehne » Sun Jul 22, 2012 1:25 pm

Thanks for the response. When I look at the end early text bar it is unclear to me how to add the second line. AN example of what I would like to add is an end early trigger to long term debuffs like '{s} has been slain by' along side 'you have slain {s}'

I've been using the various substitutes all along so I know that they work.

Gimagukk
Site Admin
Posts: 237
Joined: Wed Oct 26, 2011 9:29 pm

Re: reg ex in end early text

Post by Gimagukk » Sun Jul 22, 2012 3:20 pm

In the text box, enter ach possible "early end" text on a new line (ie, type in the first line, hit Enter, and then type in the second line). In your example, the text in the box would look like:

{s} has been slain by
you have slain {s}

Deloehne
Posts: 14
Joined: Wed Jul 18, 2012 6:40 pm

Re: reg ex in end early text

Post by Deloehne » Mon Jul 23, 2012 12:28 pm

The larger box appeared yesterday when the update downloaded. It's all clear now. Thanks for the help.

Locked