I would like to replace the Starcraft 2 music with Brood War music, such that terran players will only hear Brood War terran music, zerg players will only hear Brood War zerg music, and protoss players will only here Brood War protoss music. Currently, the trigger can play a soundtrack for all players regardless of species. I failed to find a function that return's the player's species.
I believe you must use data for this. I don't know off the top of my head but I think under race you can modify the music there. Maybe not. I suppose you could check what race each player is and use conditions to define the music for that player.
Perfect for my purposes! I found Game Music - Zerg, et al, and in Sounds: Sound Assets I replaced the default music with the imported files. Thank you!
Otherwise, if you need to find out the race of a player for your triggers you can use the "Race of Player" function that returns the race of the specified player.
I don't need to do that anymore, but out of curiosity, is that an included function? I was not able to find it when I tried to define a variable. Do I have to include a certain .mod file?
I don't need to do that anymore, but out of curiosity, is that an included function? I was not able to find it when I tried to define a variable. Do I have to include a certain .mod file?
I don't think so. It should be included by default.
Have you set the variable type to "Race"? You have to use the "- Game Link" type and the "Race" Link Type for the variable. Then you should be able to set the variable by calling the "Race of Player" function.
I would like to replace the Starcraft 2 music with Brood War music, such that terran players will only hear Brood War terran music, zerg players will only hear Brood War zerg music, and protoss players will only here Brood War protoss music. Currently, the trigger can play a soundtrack for all players regardless of species. I failed to find a function that return's the player's species.
@FDFederation: Go
I believe you must use data for this. I don't know off the top of my head but I think under race you can modify the music there. Maybe not. I suppose you could check what race each player is and use conditions to define the music for that player.
@JacktheArcher: Go
Perfect for my purposes! I found Game Music - Zerg, et al, and in Sounds: Sound Assets I replaced the default music with the imported files. Thank you!
@FDFederation: Go
Awesome glad I could help.
Otherwise, if you need to find out the race of a player for your triggers you can use the "Race of Player" function that returns the race of the specified player.
@Bommes: Go
I don't need to do that anymore, but out of curiosity, is that an included function? I was not able to find it when I tried to define a variable. Do I have to include a certain .mod file?
I don't think so. It should be included by default.
Have you set the variable type to "Race"? You have to use the "- Game Link" type and the "Race" Link Type for the variable. Then you should be able to set the variable by calling the "Race of Player" function.
@Bommes: Go
Oh, I see it now. Thank you!