Two line triggers

Posted by Centurionz on Wed 21 Jan 2015 04:10 AM — 3 posts, 14,160 views.

#0
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?
Australia Forum Administrator #1
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.
#2
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