...here's an updated version that I threw together.
It allows the player to scroll through the playlist by pressing the
F1,
F2 and
F3 keys. If the
END key is pressed, the audio stops. By default, all selections will loop.
;Artificial Intelligence Script:::::::::::::::::::::::::::::::::::::::::::::::::;
;by 3Dmajid AL
;edit by PWND
;modified by Seth Black
;Header
desc = Scroll Music Selections
;By default, this script will allow player to use F1, F2, and F3 keys to cycle through audio files.
;Once started, the audio files will loop indefinitely, until player presses the END key.
;After pressing the END key, F1, F2, and F3 keys will continue to function as normal.
;By default, the HUD image will appear onscreen, fading once player has made a selection.
;This script should be assigned as MAIN SCRIPT for a zone.
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\[HUD IMAGE HERE],hudname=Radio,hudhide=0,hudmake=display,state=1
;Press F1 Key To Play Music Style 1
:state=1,scancodekeypressed=59:state=2,stopsound
:state=2:loopsound=audiobank\[AUDIO FILE 1 HERE],hudfadeout=Radio,state=5
;Press F2 Key To Play Music Style 2
:state=1,scancodekeypressed=60:state=3,stopsound
:state=3:loopsound=audiobank\[AUDIO FILE 2 HERE],hudfadeout=Radio,state=5
;Press F3 Key To Play Music Style 3
:state=1,scancodekeypressed=61:state=4,stopsound
:state=4:loopsound=audiobank\[AUDIO FILE 3 HERE],hudfadeout=Radio,state=5
:state=5:state=1
;Press END Key to Stop All Music
:scancodekeypressed=207:stopsound
;End of Script:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Widow 13 - ©2008 Harsh Games, Inc