Once you've found the Maps folder, you should see a file called Documentation.txt. It has the full scoop on how to script. There are also other reference documents for variables and values. Or you can download my formatted version from the Blue Parrot
here.
For examples of how scripts work, open any of the scenario text files and have a look. They are in the maps directory, with names the same as the scenario name, but followed with a .txt extension rather than .{}.
It's a full programming language, so it's not for the faint of heart, but if you're into programming, it is very powerful. Good luck.