So I have a mission where the Music is turned off in the Mission Specs menu, and I'm trying to get the music going... in a way. Basically I'm trying to prevent the battle music from playing until the battle actually starts between an Arcadia and an enemy Icelus (Neutral IFF from mission start, and a wing launches from it 2 seconds into the mission, "No Arrival Music" for said wing is ticked). Then once the battle frenzy starts, I need the song to go as per normal (as though I had set the music in Mission Specs).
The moment the player starts, this happens:
$Formula: ( when
( has-time-elapsed 1 )
( play-sound-from-file
"FS2_Amb_SW01.wav"
20
)
)
+Name: Arrival music
+Repeat Count: 1
+Interval: 1
+Team: 0
Once the Arcadia's fired off a shot, the Icelus fires. This happens moments before the Icelus shoots:
$Formula: ( when
( is-event-true-delay
"Crunk initiates attack"
3
)
( close-sound-from-file ( true ) )
)
+Name: Music change 1
+Repeat Count: 1
+Interval: 1
+Team: 0
$Formula: ( when
( is-event-true-delay
"Music change 1"
1
)
( play-sound-from-file
"FS2_Btl_A01.wav"
100
)
)
+Name: Music change 2
+Repeat Count: 1
+Interval: 1
+Team: 0
When the Icelus and its escorting fighters are byebye, this happens:
$Formula: ( when
( is-destroyed-delay
4
"Metal Crunk"
"MC Defense A"
"MC Defense B"
"MC Defense C"
"MC Defense D"
"MC Defense E"
)
( close-sound-from-file ( true ) )
)
+Name: Music change 3
+Repeat Count: 1
+Interval: 1
+Team: 0
$Formula: ( when
( is-event-true-delay
"Music change 3"
1
)
( play-sound-from-file
"FS2_Amb_SW01.wav"
1000
)
)
+Name: Music change 4
+Repeat Count: 1
+Interval: 1
+Team: 0
I'm trying to change the "Music change 2" event so that it doesn't loop a single track - rather it plays the Genesis (or some other)
soundtrack like in a normal situation (plays all three battle tracks). If anyone can help me out with this, I can omit the 3rd and 4th events completely (unless I intend to re-loop "FS2_Amb_SW01.wav" after the battle, and then make the mission play the entire Genesis soundtrack again for a second battle in the same mission).
How do I go around doing this? Or is it easier to just use a new music TBL (mine's still stock)?
P.S. don't ask why I came up with a name whose meaning doesn't fit the Icelus at all. The mission's akin to a rough sketch in progress, so it's hackjob names until it's done...

EDIT: Title spelling error