You mean for custom/imported music? Can't say I have much of an idea how to do it at the moment with existing music. Play '0' or play '1' isn't exactly helpful to anyone, not sure why blizz did it that way.
oops, i just remembered i was going to tell you how to do it with custom text before, wasn't I......
Here's something I copied into my archive a long time ago:
In Sound Editor, Import External Music will import individual mp3
songs. In order to create a music list of them, you have to use
Custom Text.
1. In Trigger Editor, create a new trigger with no events or
conditions, and a single action:
Music - Play Music
2. Select Edit|Convert to Custom Text, ignoring the warning
dialog. In the custom text, you will see a function that looks
like:
function Trig_Create_Music_List_Actions takes nothing returns
nothing
call PlayMusicBJ(" .....
3. Alter that function to indicate the mp3 files that you have
imported. You must not use their variable names, but their file
names, and you must include the path shown below.
function Trig_Create_Music_List_Actions takes nothing returns
nothing
call PlayMusicBJ(
"war3mapImported\\Handel.mp3;war3mapImported\\Bach.mp3;war3mapI
m
ported\\Mozart.mp3" )
endfunction
the line that begins with "call" should all be on one line
until the closing parenthesis. In the above examples, I am
creating a play list of three imported mp3 files: Handel.mp3,
Bach.mp3, and Mozart.mp3. You must include the
"war3mapImported\\" path for each file.
4. When this trigger is run, it will begin to play the new music
list, starting with a random song, and then cycle through them
repeatedly.
If you make any action to play the default 'music' preset, then
you must call this trigger again to return to your custom play
list.
If you are uncomfortable with custom text, don't worry too much,
since you can always delete the trigger and start over. The
conversion to custom text will only affect the selected trigger.
Keep in mind that imported songs are quite large, and that the
total size of all the imported files will be added to the storage
size of the saved game. Battle.net limits maps to 4MB.
Something that I have found very valuable to do over the past year was, whenever I saw a post being made that contained useful information, I always saved it to disk in the expectation that I would use it someday in the future. This is something that I would advise everyone to follow, because you never know when something is going to come in handy.
That piece of information I posted above came from a post I saved back in October last year. To this day, I am still yet to see this particular information being replicated in any other shape or form (I am known to be blind, however).
edit: I have over 600 pieces of information regarding war3 editing saved in my database.
if you were trying to make something like a jukebox, do not do it. Warcraft iii maps are not meant to have a self-contained jukebox (it's difficult enough to import music for non-jukebox purposes) and have a [low] size limit, you can probably fit in 1 mp3... 2 if you're lucky, and when that is exceeded, you will start getting problems testing your map. If you want a jukebox, you're best off playing it from an external source (i.e. winamp).
I modeled a map after a real existing game, and wanted to put mp3 music in to add to the atmosphere, but decided not to, since with each song added the map size doubled. you can always try doing it with .mids since they're small... but unfortunately also obsolete.
hahaha...I went to post my map, quite proud of it, all keyed up...
then realised the damn thing was 16 MB!!!!!
kinda too big, huh?
That's probably bcoz I had 4 imported mp3s...
So I downloaded a program to chop up Mp3s so I can have only as much as I need, which will be rather better....
go make an account on yahoo briefcase, and upload your map there. Then give us the login/pass details for accessing the account (just don't put anything private in there hehe).
That's an idea, too bad u didn't tell me sooner, I just hacked my mp3 files up (got backups, don't worry).
16 MB is really too big tho! It had problems testing, and running occasionaly...
It's down to about 2 or 3ish now I think...
nearly ready for testing....
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!