So I decided to also get help on this script, so far, it all works. The only thing that I now can't figure out, and by the way, I downloaded the Syntax List (Unofficial), very helpful.
So the problem I am having here, is that when the player has the chance to break the door and spawn in the activateifused/destroy, but I want to make it play a sound while doing so, I have tried using sound=<directory> and using sound=$1. So far when using sound$1 and changing the path in the dynamic settings of a door (note: this is the door from segment placement) it still will not play the desired sound that is in the directory of sound$1. If a directory for sound=audiobank\custom\break.wav will not work at all.
;Artificial Intelligence Script
;Header
desc = Use Door (Attempt to Open/Break - Random Chance)
;Triggers
:state=0:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60,plrdistwithin=60,state=5
:state=5,plrdistwithin=60:fpgcrawtext=Press <Enter> to Attempt to Open.
:state=5,plrdistwithin=60,plrusingaction=1:state=6,activate=2
:state=6,random=5:state=7
:state=6,random=5:state=9
:state=6,random=5:state=10
:state=6,random=5:state=11
:state=6,random=5:state=12
:state=6,random=5:state=13
:state=6,random=5:state=14
:state=6,random=5:state=15
:state=7,activated=2:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=9,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
:state=10,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
:state=11,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
:state=12,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
:state=13,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
:state=14,plrdistwithin=60,plrusingaction=1:state=5,sound=audiobank\ww2\scenery\doors\lock.wav
----------break/sound$1/directory will not work for it here----- *everything above works
:state=15:state=16,activateifused=1
:state=16:state=17,sound=$1,destroy
;End of Script
Concept, an Original Idea. A Creation. Takes Effort & Pride.