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


Joined: 13 Feb 2013
Posts: 3

PostPosted: Wed Feb 13, 2013 1:34 pm   

New to CMUD want to have music!
 
Hey everyone! I started mudding a couple years ago and have been having so much fun with it. I just bought CMUD from my friends recommendations and saw that I can trigger music files which makes mudding 3x as fun now! The only problem is that the mud I play on does not use MXP or MSP (w/e it's called - doesn't send sound packets to the client) so I wanted to create a trigger so that when I enter a new area a certain music file plays. The problem is that each room displays the area, so every room after entering the area would in effect keep triggering the music over and over again (There is nothing else to really trigger off of). I could resolve this issue if I can somehow create a trigger that basically doesn't allow any more of the same music file to play until the current music file is finished - THAT would solve my problem almost completely. The other issue though, is if I enter a new area - then I want the music to stop and play the new music. Under triggers, I found an advanced option that said "duration" but I couldn't get it to work at all. Anyways, if anyone has any ideas for me at all I would greatly appreciate it! Thanks in advance!
Reply with quote
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Wed Feb 13, 2013 2:52 pm   
 
Create a variable, that will remember the area you are in, call it for example currentArea.
The triiger will have the pattern like:
Code:
^You are in area (*).

and value
Code:
#if (%1 != @currentArea) {
  currentArea = %1
  //stop previous and play new music
}
Reply with quote
Bibbyboy
Newbie


Joined: 13 Feb 2013
Posts: 3

PostPosted: Wed Feb 13, 2013 3:31 pm   
 
Dude you are awesome! This is exactly what I need. Thanks a bunch
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