Black-Shaddy
Active Member
- Reaction score
- 0
Heyho,
I need help for a reign of chaos map-project.
My plan is creating a system that change the playing music theme of 2 different player groups.
At start the first group (player 1,2,..) should listen a music theme 1, the other (player 8,9,..) an other one.
So, while playing, if one of 2 specific buildings is destroyed the music theme change to another one for a group.
When both buildings are destroyed change again to another music theme.
The same for the other group - at same time, - different possible.
In logical structure it seems:
Start map:
Playergroup 1 listen music theme undead1 and playergroup 2 listen music theme nightelf1
So while playing (all at the same time running)
IF loop 1: If building A1 or A2 destroyed, music for group 1 switch to undead2
IF loop 2: If building A1 and A2 destroyed, music for group 1 switch to undead3
IF loop 3: If building B1 or B2 destroyed, music for group 1 switch to nightelf2
IF loop 4: If building B1 and B2 destroyed, music for group 1 switch to nigthelf3
How i can realize that ? I think JASS code is need for that...
Hope u understand my Problem, i have trying so much, but no solution yet..
I have tested some experiments with this, but anything that i do results in error or nothing.
http://www.thehelper.net/threads/play-music-only-to-one-player.86659/
Greetz
I need help for a reign of chaos map-project.
My plan is creating a system that change the playing music theme of 2 different player groups.
At start the first group (player 1,2,..) should listen a music theme 1, the other (player 8,9,..) an other one.
So, while playing, if one of 2 specific buildings is destroyed the music theme change to another one for a group.
When both buildings are destroyed change again to another music theme.
The same for the other group - at same time, - different possible.
In logical structure it seems:
Start map:
Playergroup 1 listen music theme undead1 and playergroup 2 listen music theme nightelf1
So while playing (all at the same time running)
IF loop 1: If building A1 or A2 destroyed, music for group 1 switch to undead2
IF loop 2: If building A1 and A2 destroyed, music for group 1 switch to undead3
IF loop 3: If building B1 or B2 destroyed, music for group 1 switch to nightelf2
IF loop 4: If building B1 and B2 destroyed, music for group 1 switch to nigthelf3
How i can realize that ? I think JASS code is need for that...
Hope u understand my Problem, i have trying so much, but no solution yet..
I have tested some experiments with this, but anything that i do results in error or nothing.
http://www.thehelper.net/threads/play-music-only-to-one-player.86659/
Greetz