I'm having trouble getting the DeleteLines() function to work in my plugin I am writing. Here is my trigger:
Originally I had the trigger omit the line from the output and replace it with my own, but I want to actually remove more than one line from the output once the trigger activates. I assume DeleteLines() is the best way to do this? The delete_output() is just a script function that calls DeleteLines(2).
Here's what happens when the trigger activates:
What I'm trying to accomplish is delete the 1st line after the prompt (Hoffer 51%...) and the two lines below my ColourNote(). I know the ordering of the lines is kind of messed up, but I can't get the DeleteLines() function to actually delete anything from the ouput, no matter what number I throw into the function. What am I doing wrong?
<trigger
enabled="y"
keep_evaluating="y"
match="^(.+) (\d+)\% is tanking (.+)"
omit_from_output="n"
regexp="y"
repeat="n"
send_to="12"
sequence="100"
>
<send>
delete_output(2)
ColourNote("cyan","black","%1 is tanking %3 and is at %2\% health")</send>
</trigger>
Originally I had the trigger omit the line from the output and replace it with my own, but I want to actually remove more than one line from the output once the trigger activates. I assume DeleteLines() is the best way to do this? The delete_output() is just a script function that calls DeleteLines(2).
Here's what happens when the trigger activates:
You fail to hit the Air Queen with your first attack.
The Air Queen is burned on the head with your flames causing slight damage.
The Air Queen is burned on the head with your flames causing slight damage.
The Air Queen is burned on the wing with your flames causing insignificant damage.
You are impacted on the leg by the Air Queen's whirlwind causing modest damage.
You are impacted on the head by the Air Queen's whirlwind causing middling damage.
You dodge out of the way of the Air Queen's third attack.
The Air Queen is in terrible condition[25-35%].
<1995hp 926sp 3309st>
Hoffer 51% is tanking the Air Queen
Hoffer is tanking the Air Queen and is at 51% health
The Air Queen is in terrible condition[25-35%].
<1995hp 926sp 3309st>
What I'm trying to accomplish is delete the 1st line after the prompt (Hoffer 51%...) and the two lines below my ColourNote(). I know the ordering of the lines is kind of messed up, but I can't get the DeleteLines() function to actually delete anything from the ouput, no matter what number I throw into the function. What am I doing wrong?