Trigger firing to chat

Posted by B2007 on Tue 18 Apr 2023 12:03 AM — 16 posts, 35,350 views.

#0
i recently came back to playing and tried using a trigger for some reason it keeps firing intoo chat and not finishing the action.


<triggers>
  <trigger
   enabled="y"
   lines_to_match="3"
   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\) \*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>

You ooc '.. Clearly revealing its inner workings. '(.*?)' is your best option.Z"'




[EDIT] Added code tags. NG
Amended on Tue 18 Apr 2023 03:46 AM by Nick Gammon
Australia Forum Administrator #1
Interesting.

So I can test it, can you please post the three lines of text that are supposed to activate this trigger?
#2
Slimke: Attempts to probe a cedar wood tattered chest (picks +1, 66.0+21=87.0, 0.0 Target) *progress*
... Clearly revealing its inner workings. 'skip' is your best option.
Australia Forum Administrator #3
That doesn't start with "You slide in your probe into (.*?) and feel out the inside" so I don't see how it could possibly match.
#4
Im not really sure its been years since ive played this mud but i had a previous post years ago where I had a line wrap issue in the code, but you corrected it and it worked. I've copied and pasted the same code and now get the end result of it finishing in the chat. :/
#5
I apologize I missed a part.


You slide in your probe into a cedar wood tattered chest and feel out the inside.
Slimke: Attempts to probe a cedar wood tattered chest (picks +1, 66.0+21=87.0, 0.0 Target) *progress*
  ... Clearly revealing its inner workings. 'skip' is your best option.
Amended on Tue 18 Apr 2023 05:52 AM by Nick Gammon
Australia Forum Administrator #6
It worked for me:


You slide in your probe into a cedar wood tattered chest and feel out the inside.
Slimke: Attempts to probe a cedar wood tattered chest (picks +1, 66.0+21=87.0, 0.0 Target) *progress*
  ... Clearly revealing its inner workings. 'skip' is your best option.


pick a cedar wood tattered chest skip



I suspect some other plugin is interfering with this trigger.
#7
I tried it on a fresh profile, still having the same issue. its like its reading the last period as the command to shoot in chat at this point in the trigger \.\.\. Clearly revealing its inner workings. '(.*?)' is your best option\.\Z"
Australia Forum Administrator #8
Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
Australia Forum Administrator #9
Also please copy/paste exactly what surrounds that text that triggers the trigger. Perhaps it is something to do with the context in which it appears.
#10
... Clearly revealing its inner workings. '*' is your best option.


this is what i have set to trigger it
Australia Forum Administrator #11
What I mean is, what surrounds the text from the MUD?


... PREVIOUS LINES HERE ...
... PREVIOUS LINES HERE ...
... PREVIOUS LINES HERE ...
You slide in your probe into a cedar wood tattered chest and feel out the inside.
Slimke: Attempts to probe a cedar wood tattered chest (picks +1, 66.0+21=87.0, 0.0 Target) *progress*
  ... Clearly revealing its inner workings. 'skip' is your best option.
... FOLLOWING LINES HERE ...
... FOLLOWING LINES HERE ...
... FOLLOWING LINES HERE ...


If it isn't working for you, but is working for me, the context must be important.

Also, please respond to my question about what version of MUSHclient you have.
#12

5994hp 2813m 2758mv> You hold an ironwood set of lockpicks in your hands.
5994hp 2813m 2758mv> You slide in your probe into a bone chest and feel out the inside.
Slimke: Attempts to probe a bone chest (picks +1, 66.0+9=75.0, 0.0 Target) *progress*
  ... Clearly revealing its inner workings. 'twist' is your best option.
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> You ooc '.. Clearly revealing its inner workings. '(.*?)' is your best option.Z"'
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> Huh?
5994hp 2813m 2758mv> 


using version 5.06
Amended on Thu 20 Apr 2023 09:16 PM by Nick Gammon
Australia Forum Administrator #13
This can't be exactly what you are seeing. The line which should trigger starts:


5994hp 2813m 2758mv> You slide in your probe into a bone chest and feel out the inside.


However your trigger match text starts:


match="^You slide in your probe into (.*?) and feel out the inside


The "^" means "start of line" and your line starts "5994hp 2813m 2758mv>" - so when I test it, the trigger does not fire. Nor does anything else happen.
#14
... Clearly revealing its inner workings. '*' is your best option.

This is what starts the trigger, I had a issue previously last time with it doing the same thing, I had to do something to fix it I can't remember what it was it's been so long ago. I've had other players on the server try to help with it but we haven't had any success on it.
Amended on Fri 21 Apr 2023 01:00 AM by B2007
Australia Forum Administrator #15
I suggest you make three one-line triggers, save the stuff you want, and take action when the third line arrives.