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
Htang
Beginner


Joined: 20 Mar 2001
Posts: 24
Location: United Kingdom

PostPosted: Sun Jul 06, 2003 11:09 pm   

Line colour trigger
 
Ok, on the MUD i play, when i execute a certain command the game gives me random codes. I have a trigger for all the codes i have seen, which changes their colour. What i am aiming to do is have a #PLAY command execute when i get a line which is not already highlighted.
To this end i have tried using this trigger.
#TRIGGER {*} {#PLAY whatever.wav} with the line colour option set to match my default colours, i.e. black background and grey text. The only problem is that even when i do not get a different code the sound still plays.
There is no other text that appears whilst this command is running so i am not sure why the sound is playing.
Anyone have any ideas?
Thanks in advance
Gareth
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Jul 07, 2003 5:22 am   
 
"*" is a wildcard and will trigger on everything.

say your code trigger is this:
[bd]jfksmc[/bd] or $%^***^@
you could make the trigger with the same wildcard like this:
#trigger {(*} {#var checkcode %ismember("%1",@codelist);#if !@codecheck=0 {#play something.wav}}

or add it in or program it any way you want.
ofcoars you would have to have a list of all your code, but you said you did so this should be easy.
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