I am starting from scratch (other than reading FAQ and searching forum for keywords).
I regularly use basic triggers that match regular expressions and fire off a series of commands or change color of outputs or omit output/muffle, etc.
This is new to me. Right now I have a trigger that starts on a regular expression match. It consists of three commands, A,B,C whereupon I need to check MUD output for different match. If no match then command D, A, B, C and re-check. No match after C, same, D, A, B, C, recheck. I would like to do this loop until I get match after C (will never be more than 12-15 loops before match). If match, stop loop, and send single command E. I would like to keep trigger enabled so that it will start afresh with next regular expression match (original).
Unfortunately I do not know if I will need a waitforregexp pause after C, because I have yet to learn the basic way to send the trigger to Lua script.
After 'shape ghoul' command is sent, I am looking to match on "death's door" regular expression. If no match, then on to '=kill ghoul' command, and back to start of loop ('drop manual 7'). If match, I would like to end loop and send 'kill ghoul'
I apologize for basic nature of my problem. Once I get a good working example on my machine, I feel I will be able to play around with it to figure out more (about possibilites of triggers calling scripts).
I regularly use basic triggers that match regular expressions and fire off a series of commands or change color of outputs or omit output/muffle, etc.
This is new to me. Right now I have a trigger that starts on a regular expression match. It consists of three commands, A,B,C whereupon I need to check MUD output for different match. If no match then command D, A, B, C and re-check. No match after C, same, D, A, B, C, recheck. I would like to do this loop until I get match after C (will never be more than 12-15 loops before match). If match, stop loop, and send single command E. I would like to keep trigger enabled so that it will start afresh with next regular expression match (original).
Unfortunately I do not know if I will need a waitforregexp pause after C, because I have yet to learn the basic way to send the trigger to Lua script.
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="(whisp of smoke)+"
regexp="y"
sequence="100"
>
<send>drop manual 7
take manual
shape ghoul
=kill ghoul
</send>
</trigger>
</triggers>
After 'shape ghoul' command is sent, I am looking to match on "death's door" regular expression. If no match, then on to '=kill ghoul' command, and back to start of loop ('drop manual 7'). If match, I would like to end loop and send 'kill ghoul'
I apologize for basic nature of my problem. Once I get a good working example on my machine, I feel I will be able to play around with it to figure out more (about possibilites of triggers calling scripts).