Make things simple and use the move command
//Door that moves 3 tiles to the left.
if(created) {
move -3,0,1,; //Format is move dx,dy,time,params
playsound stonemove.wav;
sleep 1;
move 3,0,1,;
}
You should be able to play around with that and make another door based on that script. Also, I believe there's a paramater that allows the door to move automatically in the other direction once the first movement is complete, so a sleep command wouldn't be needed. -Yin