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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Cronos
Beginner


Joined: 06 Sep 2004
Posts: 29

PostPosted: Sun Jan 06, 2008 4:25 am   

Trigger to Do X if message Y appears
 
#TRIGGER {^{You heal yourself.|You fail to heal yourself.}} {#WA 4000; heal}

I can't get this to work. I'm trying to create a trigger which if either the first two is encountered, I try to heal again in 4 seconds. Any ideas?
Reply with quote
Cronos
Beginner


Joined: 06 Sep 2004
Posts: 29

PostPosted: Sun Jan 06, 2008 6:14 am   
 
I think I figured it out, it was the ^ that was throwing it off.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jan 06, 2008 6:17 am   
 
First of all, you don't want the #wait in your trigger. You should have it as:

Code:
#TRIGGER {^You {fail to heal|heal} yourself.} {#ALARM +4 {heal}}


That works for me, so it should work for you. Also, make sure your trigger phrases are correct.

Charneus

Just saw your new post. Wanted to point out that the ^ anchors it, meaning that the line starts with "You." If you have a prompt in front of it, then it won't work. If there are spaces in front of it, then it won't work. It has to start a fresh line with "You." Just some info.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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