Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Stuck on a trigger

Stuck on a trigger

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


Posted by B2007   (14 posts)  Bio
Date Fri 10 Apr 2015 12:32 PM (UTC)

Amended on Fri 10 Apr 2015 07:49 PM (UTC) by Nick Gammon

Message
Saw this on a earlier post by bonn and its exactly what im trying to do i copied and pasted into my triggers and its not firing. :/ ive tried to alter a little bit but just set it back how i found it still new to this



<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>
Top

Posted by B2007   (14 posts)  Bio
Date Reply #1 on Fri 10 Apr 2015 01:29 PM (UTC)

Amended on Fri 10 Apr 2015 07:48 PM (UTC) by Nick Gammon

Message
being based off


You slide in your probe into a cedar wood tattered case and feel out the inside.
Slimke: Attempts to probe a cedar wood tattered case (picks +20, 84.0+18=102.0, 0.0 Target) *progress*
  ... Clearly revealing its inner workings. 'skip' is your best option.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 10 Apr 2015 08:13 PM (UTC)

Amended on Fri 10 Apr 2015 08:15 PM (UTC) by Nick Gammon

Message
Here's your problem:


 Target\)\n\*progress


There is no newline after "Target)".

The client has wrapped the line at column 80, but that is a soft wrap. In the regexp the line break just appears as a space (it indents that line by one space, so the space is actually visible).

This matches:


<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>


Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by B2007   (14 posts)  Bio
Date Reply #3 on Fri 10 Apr 2015 10:29 PM (UTC)

Amended on Fri 10 Apr 2015 10:47 PM (UTC) by B2007

Message
ok that fixed it firing but now its not inserting the two wilds
its pulling them just not putting them into the command its just putting through pick



You slide in your probe into a cedar wood tattered case and feel out the inside.
Slimke: Attempts to probe a cedar wood tattered case (picks +20, 84.0+3=87.0, 0.0 Target) *progress*
... Clearly revealing its inner workings. 'twist' is your best option.
pick a cedar wood tattered case twist

figure it out the word cedar wood tattered case needs to be in "" to define it as the object in the statment. how would those be added.
Top

Posted by B2007   (14 posts)  Bio
Date Reply #4 on Fri 10 Apr 2015 10:51 PM (UTC)
Message
I got it....feel silly that last one was simple. Thank you very much for you r help :)
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.


14,473 views.

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

Go to topic:           Search the forum


[Go to top] top

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