|
Piatzo Newbie
Joined: 29 Nov 2002 Posts: 4 Location: USA
|
Posted: 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 |
|
|
|
Daniel Beginner
Joined: 13 Oct 2000 Posts: 20 Location: Germany
|
Posted: 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 |
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: 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 |
|
|
|
|
|