This is possible in 2.50.x, however, it will require manually setting the times of each sound, in frames, manually.
ffc script soundamb {
void run (int sfx1, int sfx2, int time1, int time2){
time1 = 0; time2 = 0;
while (!Screen->State[ST_SECRET]) Waitframe();
while (true){
if ( sfx1 ) {
if ( !time1 ) {
time1 = this->InitD[2]+1;
Game->PlaySound(sfx1);
}
if ( time1 > 0 ) time1--;
}
if ( sfx2 ) {
if ( !time2 ){
time2 = this->InitD[3]+1;
Game->PlaySound(sfx2);
}
if ( time2 > 0 ) time2--;
}
Waitframe();
}
}
}
Try that.
Remove the first while loop to bypass needing screen secrets. If you need more sounds, copy and paste the codeblocks, changing the args as needed.
Edited by ZoriaRPG, 11 April 2017 - 06:45 AM.