I'm trying to modify Nick Gammon's health bar plugin to include an XP gauge in the info bar. I'm having a problem with the variables in the multiline trigger, however.
This is the trigger:
<trigger
enabled="y"
group="Multi Line"
lines_to_match="3"
keep_evaluating="y"
match="You are level (.*?) and (.*?)\% of the way to the next level\.\nHealth\: (.*?)\/(.*?) Mana\: (.*?)\/(.*?)\nEndurance\: (.*?)\/(.*?)
Willpower\: (.*?)\/(.*?)\Z"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>world.setvariable "HealthMax", %4
world.setvariable "ManaMax", %6
world.setvariable "EnduranceMax", %8
world.setvariable "WillpowerMax", %10
world.setvariable "TNL", %2</send>
</trigger>
The problem is that Willpower variable is supposed to be the 10th (last) wildcard in that multiline trigger, but instead of setting the 10th wildcard, it sets the 1st wildcard and puts a 0 at the end.
For example, instead of the Willpower variable being an integer, it picks up something like "61 (Impregnable)0" (the string in the first wildcard).
Any ideas?
This is the trigger:
<trigger
enabled="y"
group="Multi Line"
lines_to_match="3"
keep_evaluating="y"
match="You are level (.*?) and (.*?)\% of the way to the next level\.\nHealth\: (.*?)\/(.*?) Mana\: (.*?)\/(.*?)\nEndurance\: (.*?)\/(.*?)
Willpower\: (.*?)\/(.*?)\Z"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>world.setvariable "HealthMax", %4
world.setvariable "ManaMax", %6
world.setvariable "EnduranceMax", %8
world.setvariable "WillpowerMax", %10
world.setvariable "TNL", %2</send>
</trigger>
The problem is that Willpower variable is supposed to be the 10th (last) wildcard in that multiline trigger, but instead of setting the 10th wildcard, it sets the 1st wildcard and puts a 0 at the end.
For example, instead of the Willpower variable being an integer, it picks up something like "61 (Impregnable)0" (the string in the first wildcard).
Any ideas?