'Hook called when the script is created.'

def at_script_creation(self):

    self.key = 'event_handler'
    self.desc = 'Global    event    handler'
    self.persistent = True
    self.db.callbacks = {}
    self.db.to_valid = []
    self.db.locked = []
    self.db.tasks = {}
