![](templates/Classic/images/spacer.gif) |
Meznuraie Newbie
Joined: 04 Jan 2015 Posts: 6
|
Posted: Sun Jan 04, 2015 12:19 pm
Help writing triggers |
Hi, I've recently gotten back into a MUD I played 10 years ago, and I'm having difficulties with triggers.
I've made it so I have a trigger that activates when another player "circles" around a mob, and causes me to "circle".
I've made it wait 1 second before sending "circle" if I'm "off balance."
I've made it send "circle" if it says "You have stopped circling."
I've also made it send "circle" if it gets "You have failed to circle"
Unfortunately, for some reason it starts looping.
It sends "circle", and gets back "You start circling" and then it sends "circle" again, which causes it to send "you stop circling".
It keeps doing this until the MUD mutes me for a few seconds for spamming.
I'm trying to figure out how to make it so it will see "you start circling", and then not send "circle" until it gets the other player circling message, the failed message or the off balance message.
Any ideas?
Thanks! |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4717 Location: Pensacola, FL, USA
|
Posted: Wed Jan 07, 2015 5:27 pm |
you want to add a state to your trigger
find it in the settings editor
then click the small down arrow on the new button and choose trigger state
it would trigger off a pattern like: {pattern1|pattern2|pattern3} |
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|