|
Htang Beginner
Joined: 20 Mar 2001 Posts: 24 Location: United Kingdom
|
Posted: 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 |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: 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. |
|
|
|
|
|
|
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
|
|