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
➜ Multiple-trigger triggers
Multiple-trigger triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wolfwoman
(13 posts) Bio
|
Date
| Wed 29 Aug 2001 11:38 PM (UTC) Amended on Thu 30 Aug 2001 12:29 AM (UTC) by Wolfwoman
|
Message
| My problem is I can't seem to create a trigger to spam drinking and eating.
What I want is something like this: "You are hungry" or "You are thirsty" triggers: "Drink Barrel". To do this, I created two separate triggers. THIS works.
Taking it one step father, I want to KEEP drinking. So, I figured I'd create: "You drink water from a barrel" to trigger "drink barrel".
Logically, it works beause when you are to full to drink more, the "You drink water from a barrel" line doesn't come up anymore, and the trigger would STOP. I've had no problems with this on other clients.
But for some reason on MUSHclient, it only triggers "drink barrel" after "You drink water from a barrel" TWICE and then stops, even if it posts the "You drink..." line more than that. It stops dead after it triggers twice.
It looks like this:
(Trigger one begins)
You are hungry.<Drink barrel>
(trigger two begins)
You drink water from a barrel <Drink barrel>
You drink water from a barrel <Drink Barrel>
You drink water from a barrel<trigger stops instead of continuing>
How can I keep the trigger going until it doesn't see the trigger command again?
Thanks. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 30 Aug 2001 03:45 AM (UTC) |
Message
| That certainly *ought* to work. It would be interesting to see the actual log of that part of the session rather than the simulated log you posted.
I would have to guess that something slightly different is throwing off the trigger, and of course, once it stops it will stay stopped.
For example:
<300hp 50m 100mv> You drink water from a barrel
This now has the prompt in front of it, and thus won't match on 'You drink water from a barrel'.
I would try (if this seems to be the case) putting an asterisk (wildcard) in front of the trigger match, like this:
Match on: *You drink water from a barrel
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Wolfwoman
(13 posts) Bio
|
Date
| Reply #2 on Thu 30 Aug 2001 05:19 AM (UTC) |
Message
| Thank you very much! That did it. It makes sense, now that I think about it. :) | 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.
10,766 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top