| 11-12-2003, 09:08 PM | #1 |
OK I feel really stupid, but I've read about 50 posts about Music and Music Lists, and nothing I try seems to work. I saw someone say "to loop music you use the Set Music List to Music starting with song 0 function." Well. Here's my trigger: Event - Player types chat message containing "SetList" as an exact match Actions - Set Music List to Orc 3 starting with song 0 Now, I read in the action configuring window that "This sets the list of music to use when the current music ends. This does not stop the currently playing music." So I wasn't expecting anything immediately. But the music never changed from the generic human themes. Not only that, but putting in a "Stop Music" action did exactly that - stopped playing the music entirely. And "Play Music" actions after the "Stop Music" just went back to playing the damned human theme! I saw Lord Vexorian had a decent jass function that would run a random song, but I don't need random songs I just need looping music - preferably two or three songs but I could deal with just one. So here's the question: What the hell does the Set Music List action DO, and how can you use it? |
| 11-12-2003, 09:36 PM | #2 |
i have trigger like this you want make, event Spieler - Spieler 1(Rot) types a chat message containing "-music2" as Exakte Übereinstimmung action Stop music instantly Clear the music List play (your music) you need this trigger for every music you want 1 time |
| 11-12-2003, 11:33 PM | #3 |
But that trigger won't loop the music right? |
| 11-13-2003, 01:43 PM | #4 |
Sounds cannot be played in map initialization, but the Music list is totally different and you need to sete it at map initialization (a.k.a change your trigger's event) |
| 11-13-2003, 04:21 PM | #5 |
Yeah you musc add a wait .01 seconds before that trigger. |
| 11-13-2003, 05:44 PM | #6 |
OK, I can make single tracks loop... Do I have to write my own triggers to switch from one song to the next? And I can't for the life of me figure out what the "starting with song X" means in the Set Music List action... As far as I can tell the music list is just one song - no matter what I put in the "starting with song X" field, it always just picks the last song I set the music list to. |
| 11-13-2003, 06:11 PM | #7 |
To make a music list that holds more than one song you'll need JASS just use a custom script line instead of the one that sets the music list: Code:
Music
Events
Map initialization
Conditions
Actions
Custom script: call SetMapMusicRandomBJ( "Sound\\Music\\mp3Music\\OrcX1.mp3;Sound\\Music\\mp3Music\\PursuitTheme.mp3;Sound\\Music\\mp3Music\\SadMystery.mp3;Sound\\Music\\mp3Music\\Tension.mp3")See? , the songs' paths are separated by ; |
| 11-13-2003, 06:34 PM | #8 |
Oh is that what that function does! I thought it just picked a random song from those listed and played it... Does it mean that it will choose randomly from the list each time a song ends though? Blah. I may end up just using stupid triggers to run the music afer all. But thanks for all your help - I'll try out the custom script and see if it can be bent to my will... |
