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 ➜ Two line triggers

Two line triggers

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


Posted by Centurionz   (2 posts)  Bio
Date Wed 21 Jan 2015 04:10 AM (UTC)
Message
Hello, I am a relatively new user of mushclient.

The following lines of a dice game are from the MUD:

You roll the dice once.
Your current score: 3

You roll the dice twice.
Your current score: 8


The second dice roll occurs on a different game tick than the first. I want to set the trigger to react based on the SECOND "current score" and ignore the first "current score".

I thought about doing this by setting the trigger to read from *twice. Your current score:* but mushclient doesn't seem to be able to read this line.

Any advice for an inexperienced mushclient user?
Top

Posted by Nick Gammon   Australia  (23,171 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 21 Jan 2015 04:59 AM (UTC)
Message
Quote:

but mushclient doesn't seem to be able to read this line.


Oh?

Post your trigger please.

Also post example output.

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

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

Posted by Centurionz   (2 posts)  Bio
Date Reply #2 on Wed 21 Jan 2015 05:11 AM (UTC)
Message
Nick Gammon said:

Quote:

but mushclient doesn't seem to be able to read this line.


Oh?

Post your trigger please.

Also post example output.

(copying)

Hi

Im using the mushclient trigger.

This is the line I want to trigger:
*twice. Your current score: 8*
This is the output I want to use:
say bet 50 gold


Another issue I just found is that if I have:

Your current score: 1*
Your current score: 11*
They both will read and having a score of 10, 11 or 12 will trigger the 1* command which I don't want. I've looked around and saw that I should use ^ for end of sentences but it doesn't seem to work



Thanks for your response
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.


13,100 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.