Multiple-trigger triggers

Posted by Wolfwoman on Wed 29 Aug 2001 11:38 PM — 3 posts, 13,856 views.

#0
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.
Amended on Thu 30 Aug 2001 12:29 AM by Wolfwoman
Australia Forum Administrator #1
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
#2
Thank you very much! That did it. It makes sense, now that I think about it. :)