Hi guys! Recently I decided to get a G12. I already have a 60D, but wanted something smaller than I can carry wherever I go. Since I've been using Magic Lantern for quite some time now, the first thing that I'm doing when the camera arrives is install CHDK!

I really love what you're doing here, and the amount of people participating in it is great! So I thought I'd have a look at scripting, and found it quite easy (by following the guides and info on the wiki).
I've created my first simple intervalometer, mainly to get an idea of the syntax and functions. I don't know if it works since I haven't tested it yet, and as such I want those of you who are more familiar to check the script below for any errors, so that I can learn from them!
@title Intervalometer
@param a Number of shots
@default a 5
@param b Interval (seconds)
@default b 10
@param c Screen mode (1=on, 0=off)
@default c 1
@param d Turn off camera when done (1=on, 0=off)
@default d 0
if a<1 then let a=2
if b<2 then let b=2
if c=1 then click "display"
A = a
do
cls
print "Shots remaining:", a
if a=A then shoot else click "shoot_full"
a=a-1
sleep b*1000
until a=0
if c=1 then click "display"
print "Interval shooting ready"
playsound 4
if d=1 then shut_down
end