Here's my pattern:
^Hp\: (\d+)\((\d+)\) Gp\: (\d+)\((\d+)\) Xp\: (\d+)\((\d+)\)
I know this works because I'm able to use all the variables; however, if I try to "gag" the line using deleteline() I get an error in the debugging process.
Code: Select all
Trigger name=Health Management(^Hp\: (\d+)\((\d+)\) Gp\: (\d+)\((\d+)\) Xp\: (\d+)\((\d+)\) )
matched.
capture group #0 = <Hp: 9575(9575) Gp: 1855(1855) Xp: 129500(123000000) >
capture group #1 = <9575>
capture group #2 = <9575>
capture group #3 = <1855>
capture group #4 = <1855>
capture group #5 = <129500>
capture group #6 = <123000000>
LUA: ERROR running script Health Management (Trigger6) ERROR:Lua error:[string "function Trigger6().
.."]:2: attempt to call global 'deleteline' (a nil value)new line arrived:Hp: 9575(9575) Gp:
1855(1855) Xp: 129500(123000000)