I had Scottacus help me add a sound effect to Tilt on Flash Gordon sound mod I worked on.
I kept having problems as it would start the sound effect on table start, as the tilt text shows on table start.
So he helped me...
Here is what his script looks like...
Sub UpdateTextBoxes()
NFadeT 13, l13, "BALL IN PLAY"
NFadeT 27, l27, "MATCH"
NFadeT 29, l29, "HIGH SCORE TO DATE"
NFadeT 11, l11, "SAME PLAYER SHOOTS AGAIN"
NFadeT 45, l45, "GAME OVER"
If Tilted = False then NFadeT 61, l61, "TILT"
End Sub
Sub NFadeT(nr, a, b)
Select Case controller.lamp(nr)
Case False:a.Text = ""
Case True:a.Text = b : If nr = 61 then StopFGSounds: PlaySound "0FG13": Tilted = True: tt = 0 : TiltedTimer.enabled =1
End Select
End Sub
Sub TiltedTimer_Timer
tt = tt + 1
if tt > 2 Then
Tilted = False
TiltedTimer.enabled = 0
tt = 0
End If
End Sub
Not sure if this will help you.