Music Map question

Kuberr24

Well-Known Member
Reaction score
28
What I want:

when the game starts, the normal music themes plays depending on what race you have. At a certian point in the game, I want that music to stop and I only want the song "PursuitTheme" to be looped


What I tried:

JASS:
call PlayThematicMusic("Sound\\Music\\mp3Music\\PursuitTheme.mp3")
call ClearMapMusic()
call SetMapMusic("Sound\\Music\\mp3Music\\PursuitTheme.mp3",false,0)



What happens when I play the game:

so the normal music themes begin, then PursuitTheme is played ONCE, then the normal music starts again BUT ONLY FOR 1 (random) SONG, then PursuitTheme starts looping (like intended)


Question: What did I do wrong, and why is there 1 non-pursuit song inbetween the PursuitThemes :( ??
 

ZugZugZealot

New Member
Reaction score
33
This is all I had to do to get a song to play and loop...
JASS:
//...
    call ClearMapMusic()
    call PlayMusic( "war3mapImported\\03 - Subtitle da Konoyaroo.mp3" )
//...



For your case, you should be able to do this. It plays the theme, but I don't know if it would loop because I didn't feel like waiting for the song to end. But given the results with the one above, I would imagine it would loop.
JASS:
//...
    call ClearMapMusic(  )
    call PlayMusic( "Sound\\Music\\mp3Music\\PursuitTheme.mp3" )
//...


For things like these I like to suggest you get it working in GUI first, then convert to custom text, then JASS optimize it.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top