[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Trigger firing to chat

Trigger firing to chat

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  

Posted by B2007   (14 posts)  [Biography] bio
Date Tue 18 Apr 2023 12:03 AM (UTC)

Amended on Tue 18 Apr 2023 03:46 AM (UTC) by Nick Gammon

Message
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
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 18 Apr 2023 03:48 AM (UTC)
Message
Interesting.

So I can test it, can you please post the three lines of text that are supposed to activate this trigger?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #2 on Tue 18 Apr 2023 04:16 AM (UTC)
Message
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.
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 18 Apr 2023 04:30 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #4 on Tue 18 Apr 2023 04:40 AM (UTC)
Message
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. :/
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #5 on Tue 18 Apr 2023 04:41 AM (UTC)

Amended on Tue 18 Apr 2023 05:52 AM (UTC) by Nick Gammon

Message
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.
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Tue 18 Apr 2023 05:55 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #7 on Tue 18 Apr 2023 07:00 AM (UTC)
Message
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"
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Tue 18 Apr 2023 08:45 PM (UTC)
Message
Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Tue 18 Apr 2023 08:48 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #10 on Tue 18 Apr 2023 11:30 PM (UTC)
Message
... Clearly revealing its inner workings. '*' is your best option.


this is what i have set to trigger it
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Wed 19 Apr 2023 12:11 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #12 on Wed 19 Apr 2023 01:04 PM (UTC)

Amended on Thu 20 Apr 2023 09:16 PM (UTC) by Nick Gammon

Message

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
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #13 on Thu 20 Apr 2023 09:18 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by B2007   (14 posts)  [Biography] bio
Date Reply #14 on Fri 21 Apr 2023 12:03 AM (UTC)

Amended on Fri 21 Apr 2023 01:00 AM (UTC) by B2007

Message
... 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.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,850 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]