Make a location of the towns, and when the player brings the unit you want it will constantly set a switch, and when you leave that town you enter in another location, clear previous switches and set new ones; also remember the music trigger must have the switches as conditions. I give you an example:
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 1", At least, 1);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Set Switch("Switch1", set);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 1", Exactly, 0);
Actions:
Set Switch("Switch1", clear);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 2", At least, 1);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Set Switch("Switch2", set);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 2", Exactly, 0);
Actions:
Set Switch("Switch2", clear);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 3, At least, 1);
Switch("Switch1", not set);
Switch("Switch2", not set);
Switch("Switch3", not set);
Actions:
Set Switch("Switch3", set);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player #"){
Conditions:
Bring("Current Player", "Any unit", "TOWN 3", Exactly, 0);
Actions:
Set Switch("Switch3", clear);
Preserve Trigger();
}
//-----------------------------------------------------------------//
And to play the wavs, here is the trigger:
Trigger("Player #"){
Conditions:
Switch("Switch#", set);
Actions:
Play WAV("Your WAV");
Wait(X);
Here there are many ways to loop the sound, you can use Wait, a Death counter, Countdown timer, etc. It's your choice. Preserve Trigger();
}
//-----------------------------------------------------------------//
That's it! I hope this helps. Good luck, if you need more help just reply and I will answer
None.