How can I capture this:
You are wielding:
saber8701 : a dual-bladed saber of gold and silver in
your left hand.
(exactly as shown)
to match this:
weaponhand = matches[3]
if weaponhand == "left" then
weaponleft = matches[2]
elseif weaponhand == "right" then
weaponright = matches[2]
elseif weaponhand == "hands" then
weapon = matches[2]
end
Currently I have this as my trigger and it doesn't capture these double lines:
^.+?(\d+) : .+ in your (\w+) hand.$
deleteLineP()
weaponhand = matches[3]
if weaponhand == "left" then
weaponleft = matches[2]
elseif weaponhand == "right" then
weaponright = matches[2]
elseif weaponhand == "hands" then
weapon = matches[2]
end
with the firelength a 2
Any help would be great!
how can I....
Re: how can I....
Looks like an Iron Realms game to me which means you can just set the wrapping width to 0 which will remove the need to capture multiple lines.
Re: how can I....
I tried that it doesn't work
Re: how can I....
Try this pattern:
Code: Select all
^[A-Za-z]+(\d+) \: .+ in your (\w+) hand\.$
Re: how can I....
Pattern is fine, for sure. Gimme a few to wake up and I'll log onto my knight.
What game is this, anyway? You might actually have this data available via GMCP.
What game is this, anyway? You might actually have this data available via GMCP.
Re: how can I....
now available via GMCP it seems hmmmm
Re: how can I....
Meh. SIlly MKO bugs.
Try this pattern and let me know how you get on:
If you ever use a two-handed weapon, you'll want to change that to:
Try this pattern and let me know how you get on:
Code: Select all
^\s+?[A-Za-z]+(\d+) \: .+ in your (\w+) hand\.$
Code: Select all
^\s+?[A-Za-z]+(\d+) \: .+ in your (\w+?: )?hands?\.$