I wrote a music script that works fine except for the fact that it makes me have to play the song's in the order that i scripted them. Please help
This is the script
[;Artificial intelligence script
;Header
desc = player uses code to play a song
;Triggers
;7
:state=0,plrdistwithin=50:state=1
:state=1,scancodekeypressed=6:state=2,music=audiobank\music\Eminem\loseyourself.wav
:state=2:musicvolume=100,state=0
;8
:state=0,plrdistwithin=50:state=3
:state=3,scancodekeypressed=7:state=4,music=audiobank\music\eminem\airplanes.wav
:state=4:musicvolume=100,state=0
;9
:state=0,plrdistwithin=50:state=5
:state=5,scancodekeypressed=8:state=6,music=audiobank\music\eminem\When_im_gone.wav
:state=6:musicvolume=100,state=0
]
Can anyone see whats wrong with it?
TGC = AWESOME!!