ID:149271
 
Alright, I have just incorporated sound into my first game. It's all spiffy-like, with various options, battle music (it even plays the song you were just listening to after the battle! :P). Now, I want to know how to do a random playlist of all the songs, one after the other. usr << sound(etc, etc) won't work, as it will play the songs right after each other, and sleep won't work either, as all the songs are a different length, and it's uh... random. Some help for the anti-newbie coder? :P
Well you could do this.

start
var/list/songs = list()
songs.Add('bah.mid','poo.wav','boo.mid')
var/listening = pick(songs)
src << sound(listening)
goto start