Forging script problem

by Unknown

Back to Mechanic's Corner.

Unknown2008-12-30 22:47:04
This script came from somewhere else, but is having a slight hang up for me. When the forging is complete, it's supposed to take the piece from the forge, wp it, and then determine if it was good enough, but it's trying to Get null from forge and wp null, so obviously forging_number isn't getting set. When the piece is initially formed, it does probe forge to get the item # and this trigger should fire and capture it, but it's not. I'm not great with regex, but it looked like it was correct to me. Clues?

CODE
enabled="y"
group="Forging"
lines_to_match="2"
keep_evaluating="y"
match="^(?:.+)?forge(?:.+)? is holding\\:\\n\\"(.+)\\"\\s+.+$"
multi_line="y"
regexp="y"
send_to="12"
sequence="10"
>
SetVariable ("forging_number","%1")
Ilyarin2008-12-30 22:56:17
QUOTE (AllergictoSabres @ Dec 30 2008, 10:47 PM) <{POST_SNAPBACK}>
This script came from somewhere else, but is having a slight hang up for me. When the forging is complete, it's supposed to take the piece from the forge, wp it, and then determine if it was good enough, but it's trying to Get null from forge and wp null, so obviously forging_number isn't getting set. When the piece is initially formed, it does probe forge to get the item # and this trigger should fire and capture it, but it's not. I'm not great with regex, but it looked like it was correct to me. Clues?


CODE
enabled="y"
group="Forging"
lines_to_match="2"
keep_evaluating="y"
match="^(?:.+)?forge(?:.+)? is holding\\:\\n\\"(.+)\\"\\s+.+$"
multi_line="y"
regexp="y"
send_to="12"
sequence="10"
>
SetVariable ("forging_number","%1")


It's not right. It should be as above. The quotation marks got destroyed by the looks of it.

(P.S., is that my script? It looks familiar.)
Unknown2008-12-30 22:58:55
Oh, I thought since it was in xml it converted the "" to quote tags. And yep, it is! I didn't put this in the old thread you had because it was kinda old, so I figured I just start a new thread about it. I'll try that out, though, thanks.
Ilyarin2008-12-30 23:03:04
No problem. If you've any further problems feel free to just PM me directly.