Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Meznuraie
Newbie


Joined: 04 Jan 2015
Posts: 6

PostPosted: 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!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net