This script wil loop a sound, its from the script barn site:
Code:
ON ENTER {
0 me setspotstatelocal
soundname global
loop global
;to change the name of the sound that is played, change the
;sound name on the next line. Change won't take effect until
;you leave and re-enter the room.
"fazein" soundname =
1 loop =
100 me setalarm
{85 dimroom 75 dimroom 65 dimroom 50 dimroom}
4 getspotstate 1 == if
}
ON ALARM {
soundname global
loop global
{soundname sound
} loop 1 == if
350 me setalarm
}
ON SELECT {
loop global
soundname global
{1 me setspotstatelocal
0 loop =
"Looping Wav " soundname & " Stopped" & localmsg
exit
} me getspotstate itoa "0" == if
{0 me setspotstatelocal
1 loop =
"Looping Wav " soundname & " Started" & localmsg
exit
} me getspotstate itoa "1" == if
}
}
for more scripts from the scriptbarn check this link:
http://scriptbarn.palacetools.net/
Hope this helps you out.