FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   CnC Modding, Mapping and Editing (http://forums.filefront.com/cnc-modding-mapping-editing-273/)
-   -   Random Music Jawn Edit help (http://forums.filefront.com/cnc-modding-mapping-editing/230804-random-music-jawn-edit-help.html)

Gunrun December 16th, 2005 03:10 PM

Random Music Jawn Edit help
 
Does anyone know a way to edit the music ini so that it would play a random mp3 from a selection of them. For example; this code that dosent work.

MusicTrack Game_USA_11
Filename = menus.mp3 JCSSBuzz.mp3 menuz.mp3 whereat.mp3 frig2.mp3
Control = random
End

I want something that would do this but actualy work.

I want it so that like when your on the shellmap the music changes from that of the last time you were on the shellmap.

Rich19 December 18th, 2005 07:56 AM

Re: Random Music Jawn Edit help
 
Well you won't want to do it with an ini file unless youre making a mod to go with it, as having that will make you unable to play online due to game differences. What you need to do is use a set of timers on your map, 1 of them randon, the rest not. Have enough non random timers per music track. Then set all your timers off. Set the game to check if the random one has expired, check if one of the non random ones (all set to different values) has expired as well. If it has, play a music track. Do that for each track.

Gunrun December 18th, 2005 12:05 PM

Re: Random Music Jawn Edit help
 
Well I am making this for ZH Retarded. And can you teach me how to do the random thing with the default shellmap?

Lets say I have 4 songs I want randomated. Here are the names of each music file. Now please show me how to code this. Through worldbuilder and using the default shellmap.


MusicTrack retard1
Filename = JCSSBuzz.mp3
End

MusicTrack retard2
Filename = menuz.mp3
End

MusicTrack retard3
Filename = whereat.mp3
End

MusicTrack retard4
Filename = frig2.mp3
End


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.