I know there are lots of helpfiles about this, but none have been able to answer my question yet.
I'm sure it's only a horrible design that has led me to my problem, but occasionaly I run myself into a never ending loop that goes like this:
You come out of your trance.
trance
You enter a peaceful trance, collecting mana from the cosmos.
You come out of your trance.
trance
You enter a peaceful trance, collecting mana from the cosmos.
The problem is, that trance is sent to output from my trigger whenever I come out of my trance, the loop occurs if I am already trancing and then the trigger hits, which happens less than once a day, but still it happens and nothing stops it. This occurs because if I am alraedy trancing, and I send trance, it says taht I come out of my trance... Well you see why it is a never ending loop... Anyways... trance is only an output, but it echos... I ahve tried using the above three lines (cosmos is not it's own line) and I have also tried without using trance, triggering just off the first two lines. Neither works...
Here's the trigger I've been trying...
<triggers>
<trigger
enabled="y"
group="Multi Line"
ignore_case="y"
lines_to_match="3"
keep_evaluating="y"
match="You come out of your trance\.\ntrance\nYou collapse into a deep sleep\.\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>sleep
wake
look
look
trance</send>
</trigger>
</triggers>
I have tried this trigger inserting a carrot at the beginning of the trigger, as in some of the examples, and have also tried putting the extra escape sequence before the \Z, as in some of the other problems people have ran into, and of course I have tried donig both of these at the same time. Nothign I have yet tried will make this trigger hit when the above three lines show up on my screen, and I think it has something to do with trance being an input that is echoed. Anyways, hope someone can help!! Thanks!!
I'm sure it's only a horrible design that has led me to my problem, but occasionaly I run myself into a never ending loop that goes like this:
You come out of your trance.
trance
You enter a peaceful trance, collecting mana from the cosmos.
You come out of your trance.
trance
You enter a peaceful trance, collecting mana from the cosmos.
The problem is, that trance is sent to output from my trigger whenever I come out of my trance, the loop occurs if I am already trancing and then the trigger hits, which happens less than once a day, but still it happens and nothing stops it. This occurs because if I am alraedy trancing, and I send trance, it says taht I come out of my trance... Well you see why it is a never ending loop... Anyways... trance is only an output, but it echos... I ahve tried using the above three lines (cosmos is not it's own line) and I have also tried without using trance, triggering just off the first two lines. Neither works...
Here's the trigger I've been trying...
<triggers>
<trigger
enabled="y"
group="Multi Line"
ignore_case="y"
lines_to_match="3"
keep_evaluating="y"
match="You come out of your trance\.\ntrance\nYou collapse into a deep sleep\.\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>sleep
wake
look
look
trance</send>
</trigger>
</triggers>
I have tried this trigger inserting a carrot at the beginning of the trigger, as in some of the examples, and have also tried putting the extra escape sequence before the \Z, as in some of the other problems people have ran into, and of course I have tried donig both of these at the same time. Nothign I have yet tried will make this trigger hit when the above three lines show up on my screen, and I think it has something to do with trance being an input that is echoed. Anyways, hope someone can help!! Thanks!!