What kind of scripts are there

Cutscenes :
Cutscenes are user created scripts which are started with the Cutscene () command. While a cutscene is running all controlls and the mouseicon are disabled and invisible.

Functions and mainscript :
Functions are different from cutscenes in two ways. They do not interrupt the game and they can run in loops. With those you can process stuff the during the whole game. The mainscript works just like a function but starts automaticly and cannot be stopped.

Roomobjects, characters and items :
Every one of those has its own script that handles what happens with it when the player interacts with it.

Rooms :
Every room has its own script. It handles what happens when you enter and exit a room and can contain two looping scriptparts. (loop1 and loop2)

Walkmapcoordinates :
Every point on a walkmap of a room can have its own script. This one will be executed when a character walks over this point.