variables and if statment
If you don't know how to use variables or if statements how can you help someone? Not to be rude but that's the basis of scripting, without if conditions or anything else to control the flow of the result there's nothing to be made.
I believe you people should start by understanding programming a little bit more before adventuring yourselves into the matter itself and bombarding the forums with noob questions. It's your choice, but I believe that it would be better for YOURSELVES to do as I said.
Back on topic, I recommend Your Computer tutorials. I believe you'll learn enough to at least copy other people's scripts without much trouble:
http://www.frictionalgames.com/forum/thread-10798.html
Good luck.
Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.