Okay, I have multi-line prompt and I want to capture some info from each line, the prompt looks something like so:
I am trying to pull Force stats, hp, and movement. I have written a few triggers to test this which work, separately. They look like so:
and:
They both work fine separately, but I can't seem to get them to combine right I've tried this:
I have also tried many versions of the above with different combos of * and \n...to no avail. If someone could show me what I'm doing wrong it would be much appreciated.
Thanks,
KeB
Force 2000/2000 Align 530 Mail 0/9 Room#<109>
Hp:1000/1000 Move:1000/1000 Gold:9,744,232 <>
I am trying to pull Force stats, hp, and movement. I have written a few triggers to test this which work, separately. They look like so:
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="^Force (\d+)\/(\d+)"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable("curr_force", "%1" )
SetVariable("max_force", "%2" )</send>
</trigger>
</triggers>
and:
<triggers>
<trigger
enabled="y"
lines_to_match="2"
match="^Hp\:(\d+)\/(\d+) Move\:(\d+)\/(\d+)"
name="hp"
regexp="y"
send_to="3"
sequence="100"
>
<send>Hit Points %1/%2 ...Move %3/%4</send>
</trigger>
</triggers>
They both work fine separately, but I can't seem to get them to combine right I've tried this:
<triggers>
<trigger
enabled="y"
lines_to_match="2"
match="^Force (\d+)\/(\d+)*Hp\:(\d+)\/(\d+) Move\:(\d+)\/(\d+)"
multi_line="y"
regexp="y"
send_to="3"
sequence="100"
>
<send>Fp %1/%2 Hit Points %3/%4 ...Move %5/%6</send>
</trigger>
</triggers>
I have also tried many versions of the above with different combos of * and \n...to no avail. If someone could show me what I'm doing wrong it would be much appreciated.
Thanks,
KeB