multi line trigger problem

Posted by Bon on Wed 21 Sep 2005 10:48 PM — 5 posts, 22,418 views.

#0
ok so basicly i have been trying to get this multi line trigger to work for liek 3 hours now and i cant get it to work right i dont know what im doing wrong i want to make this

You slide in your probe into A loot bag and feel out the inside.
Bonn: Attempts to probe A loot bag (picks +1, 444.0+14=458.0, 0.0 Target)
*progress*
... Clearly revealing its inner workings. 'pry' is your best option.
and basicly i want all the numbers and "A loot bag" and pry all to be wild cards and when i do that and make my respons pick %2 %11 it dosnt work and i duno what im doing wrong so if any one can help i would apreciate it
#1
You slide in your probe into A loot bag and feel out the inside.
Bonn: Attempts to probe A loot bag (picks +1, 444.0+14=458.0, 0.0 Target)
*progress*
... Clearly revealing its inner workings. 'pry' is your best option.
Is your exact output? Meaning all those lines pop up at the same exact time?

There is no waiting period or lag between the lines?
Amended on Thu 22 Sep 2005 08:21 AM by David Berthiaume
#2
yes that is what it shows me and all at the same time they show up like i put on diff lines but they all pop up at the same time
#3
It'd be easier to have individual triggers for each line. You can do it as a multi-line trigger, but if you set it up to set variable's instead of trying to do it all in one trigger. then on the last line you can just script the pick @variable1 @variable2

Just a suggestion. But anyays, that's the way I would do it. Making it all one big multiline is not exactly easy to line up all the wildcards.

You wouldn't even need to match on the progress line then.
Russia #4


This should work.


<triggers>
  <trigger
   enabled="y"
   lines_to_match="4"
   match="^You slide in your probe into (.*?) and feel out the inside\.\n[A-Z][a-z]+\: Attempts to probe (.*?) \(picks [+-](\d+), (\d+\.\d+)\+(\d+)=(\d+\.\d+), (\d+\.\d+) Target\)\n\*progress\*\n\.\.\. Clearly revealing its inner workings. '(.*?)' is your best option\.\Z"
   multi_line="y"
   regexp="y"
   sequence="100"
  >
  <send>pick %1 %8</send>
  </trigger>
</triggers>