ID:155374
 
I'm a new codder, so I've troubles making a list of Musics.
Basically I want some information... how to make this list.
It's a naruto game, I want to put the Opening and Ending Musics into a List, so people could hear it.

I already made the Window for it, but I've no idea of how make the list or even the code for put the music into it.

@Thanks.
http://www.byond.com/docs/ref/

Check out the reference. Words to search for would be:
<font color=red>
sound
view
world
output
volume
list</font>

-Resonence
Well you can simply have a global music variable list that stores these.

var
list
Music = list('Midi1.mid','Midi2.mid','Midi3.mid') // List of musics.


That's really all I can offer from what I understand of your post.
In response to Lugia319
Thats the code I'm making, but the List still don't appear:
WindowReset(/**/)
set hidden=1
var/list/Tracks=list("Music","Music Two")
for(var/i=1;i<=9;i+=1)
var/ThisTrack=Tracks[i];var/MesTag="<a href='?src=\ref[src];action=PlayTrack;TrackNum=[i]'>"
usr<<output("[MesTag][ThisTrack]</a>","music.musicselect:1,[i]")

var/list/TrackList=list('Music.wav','Music Two.wav')


PS:
window's ID> music
grid's ID> musicselect

Still missing something?