456820 is quite right, that tute by snYpir is a good place to start. You should also read Johan Gustafsson's Scripting Tutorial. These and many others you can find in the Editors Depot - click the link at the top of this page.
Abuu's Basic Editing Tutorial is a good way of starting to script without even noticing. The Tutorial Mission has working examples of very simple scripts.
Oh, and
Welcome to the forum!