Create event-script