You should also look up triggeraction if you don't know that, you'll need it if you want to script the system with maximum efficiency =D (or you can use a for loop, which is less reliable)
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."