Void main()

Explaination
void main(void) is the procedure that runs directly when the sprite the script is attached to is drawn. If the script isn't attachet to a sprite the procedure will run when the script is called with the spawn; command.

Example
If you attach the script bellow to a sprite it will say "Hello" after 2 seconds.

void main(void)

{

wait(2000);

say("Hello", &current_sprite);

}