When I was 6 or 7 I subscribed to this gaming magazine from Poland, and on one of the cover CDs there was this game called Colobot. It's a RPG-like game where you play as a astronaut who has been sent by NASA or whoever to accompany a team of robots and find a planet that can be civilised. Now you can play the game 'normally' and control all the robots manually and everything, but you can also program the robots yourself, to do stuff that takes long. Or in my case, that you're too lazy to do yourself. I remember making this sentry script that shot down enemies. It predicted where they were moving and everything. The language is very similar to C.