I'm having problems matching my patterns again, I managed to get them working before, but this time my prompt is (slightly) more complex, and I'm failing pretty hard.
Here is my prompt:
Where the hp, m, mv, stuff withing (...)[...], time can all change.
(The parenthesis around chamber of rest NEVER change, and neither do brackets around SWD)
Here is my regular expression:
Any suggestions?
Here is my prompt:
<1803/1803hp, 570/570m, 406/406mv, (Chamber of Rest)[SWD]> 8:00pm. Where the hp, m, mv, stuff withing (...)[...], time can all change.
(The parenthesis around chamber of rest NEVER change, and neither do brackets around SWD)
Here is my regular expression:
<triggers>
<trigger
enabled="y"
expand_variables="y"
inverse="y"
keep_evaluating="y"
match="^\<(.*?)\/(.*?)hp\, (.*?)\/(.*?)m\, (.*?)\/(.*?)mv\, (.*?)\> (?<hour>\d+)\:(?<minute>\d+)(am|pm)\. (.*?)$"
match_inverse="y"
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>if %<hour> ~= old_hour or
%<minute> ~= old_minute then
old_hour = %<hour>
old_minute = %<minute>
DoAfterNote (34, "TICK IN 7 SECONDS!") -- 7 seconds warning
end -- if</send>
</trigger>
</triggers>
Any suggestions?