Quote: "i have attached the churchil speach could someone place it directly into thier audiobank and test the script,"
After reading this thread, I took some time to take a look and test. I made an alteration since I am running in v1.17.
Your original:
;Artificial Intelligence Script
;Header
desc = Churchill Speech
;Triggers
:state=0:state=1
:state=1:fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtextr=255,fpgcrawtextb=255,fpgcrawtextg=255,state=2
:state=2:etimerstart,state=3
:state=3,plrdistwithin=50,inview=1:fpgcrawtextsize=15,fpgcrawtext=Press ENTER to listen to radio
:state=3,plrdistwithin=50,scancodekeypressed=28,inview=1:sound=audiobank\churchilspeach.wav,state=4
:state=4:fpgcrawtextoff
;End of Script
First off, I altered your original script by removing the "inview".
Second, you have an "etimerstart" in state=2 but had no "etimergreater". Although that should not make a difference, I added an "etimergreater=200" to the state=3 line.
Third, by using the wave file, no sound played with either the "sound" or "plrsound" action. I converted to ogg and tested both the "sound" and "plrsound" and it worked.
Here is my altered version with the changes/alterations:
;Artificial Intelligence Script
;Header
desc = Churchill Speech
;Triggers
:state=0:state=1
:state=1:fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtextr=255,fpgcrawtextb=255,fpgcrawtextg=255,state=2
:state=2:etimerstart,state=3
:state=3,plrdistwithin=50,etimergreater=200:fpgcrawtextsize=15,fpgcrawtext=Press ENTER to listen to radio
:state=3,plrdistwithin=50,scancodekeypressed=28:sound=audiobank\churchilspeach.ogg,state=4
:state=4:fpgcrawtextoff
;End of Script
I attached the script to a dynamic radio. As I approached I saw the "Press ENTER to listen to radio", and when I pressed ENTER, the sound played. It worked for both "sound" and "plrsound".
I had discovered a while back that some sound files we had used in developments that were wave no longer played when they had before. I converted mine to ogg and they played. So when dealing with scripts that play sound such as this one from the OP, if your wave(s) don't play, then try converting to ogg and see if that works. If not, then it will be a script syntax.
As a courtesy, I've attached the sound file in ogg format for the OP.
Twitter: @NFoxMedia