@ Coffee Grunt
It your thing doesn't work, But I know why.
:state=0,activated=1:timerstart,
state=1
:state=1,timergreater=8000:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
Look at the bold in the first line, simply it skips to the door opening part
before the eight seconds is over. So simply just make a small change of state numbers and you'll come up with this:
;Artificial Intelligence Script
;Header
desc = Remote Controlled Door (Open and Close) Delayed
;Triggers
:state=0,activated=1:timerstart,state=1
:state=1,timergreater=8000:state=2,setframe=0,sound=$0
:state=2:incframe=0
:state=2,frameatend=0:state=3,coloff
:state=3,activated=0:state=4,sound=$1,colon
:state=4:decframe=0
:state=4,frameatstart=0:state=0,setframe=0
;End of Script
Thanks for your help.