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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Yangban
Newbie


Joined: 13 Dec 2007
Posts: 4

PostPosted: Thu Dec 13, 2007 2:31 am   

Trigger Help
 
How do I set a trigger up so that it just makes a whole word a certain color instead of the whole line the word is on?
Also, How do i create a sound trigger? I have used #PL <filename> but it does not seem to be working. #BEEP does work but I want to be able to play a certain file.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Thu Dec 13, 2007 3:14 am   
 
#play needs the full file path. The command you are looking for to color a single word is #cw
Code:
#trigger {%qword%q} {#cw red;#play C:\windows\Media\tada.wav}


Edit: Actually that tada example will work without the path because the tada.wav is in the media folder.
You can also place the file within your cmud games folder and it will work without the path too.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Yangban
Newbie


Joined: 13 Dec 2007
Posts: 4

PostPosted: Sat Dec 15, 2007 10:00 pm   
 
I have the wav file in the cmud folder but it still doesn't play...
I just have #PLAY C:\Program Files\CMUD\test.wav and in the pattern line it is "tells you:"


I just want to play a sound file when i get a tell. It worked in zmud but can't get it to work in cmud....
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Sat Dec 15, 2007 10:09 pm   
 
If you already have it in the target folder, doing the following should suffice I think

#trigger {tells you:} {#play test.wav}

Thats how it worked in Zmud, anyway.

Prog
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sat Dec 15, 2007 10:51 pm   
 
Note that I said Games folder and not PROGRAM folder. In Zmud the program folder WAS the games folder by default. Thus the distinction.

The Cmud Games folder is usually found in My Documents.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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