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
Piatzo
Newbie


Joined: 29 Nov 2002
Posts: 4
Location: USA

PostPosted: Fri Nov 29, 2002 7:38 am   

I need help with a trigger
 
I want it basically to play the wav file "boo.wav" when the Exact text "You may now quest again." comes up 5 times. how would i do it? or is it even possible

Thanks in advance

Piatzo luvs to strum his lyre
Reply with quote
Daniel
Beginner


Joined: 13 Oct 2000
Posts: 20
Location: Germany

PostPosted: Fri Nov 29, 2002 1:22 pm   
 
Hello Piatzo,

you can try this:

#var quest_counter 0
#trigger {You may now quest again.} {#add quest_counter 1;#if @quest_counter=5 {#play boo.wav;#var quest_counter 0}}

Not tested but should work, please check #play in the manual for adressing correctly with paths.

Daniel
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: Fri Nov 29, 2002 5:34 pm   
 
Since you mentioned exact text, don't forget to add a ^ to the trigger.

#trigger {^You may now quest again.} will keep it from triggering if someone tells you the line instead of receiving it from the mud.

Martin
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