'implement method'

def func(self):

    caller = self.caller
    args = self.args
    if args:
        if ('start' in self.switches):
            new_script = create.create_script(args)
            if new_script:
                caller.msg(('Global    script    %s    was    started    successfully.' % args))
            else:
                caller.msg(('Global    script    %s    could    not    start    correctly.    See    logs.' % args))
            return
        scripts = ScriptDB.objects.get_all_scripts(key=args)
        if (not scripts):
            objects = ObjectDB.objects.object_search(args)
            if objects:
                scripts = []
                for obj in objects:
                    scripts.extend(ScriptDB.objects.get_all_scripts_on_obj(obj))
    else:
        scripts = ScriptDB.objects.get_all_scripts()
        if (not scripts):
            caller.msg('No    scripts    are    running.')
            return
    if (not scripts):
        string = ("No    scripts    found    with    a    key    '%s',    or    on    an    object    named    '%s'." % (args, args))
        caller.msg(string)
        return
    if (self.switches and (self.switches[0] in ('stop', 'del', 'delete', 'kill'))):
        if (len(scripts) == 1):
            if ('kill' in self.switches):
                string = ("Killing    script    '%s'" % scripts[0].key)
                scripts[0].stop(kill=True)
            else:
                string = ("Stopping    script    '%s'." % scripts[0].key)
                scripts[0].stop()
            ScriptDB.objects.validate()
        else:
            string = 'Multiple    script    matches.    Please    refine    your    search:\n'
            string += format_script_list(scripts)
    elif (self.switches and (self.switches[0] in ('validate', 'valid', 'val'))):
        (nr_started, nr_stopped) = ScriptDB.objects.validate(scripts=scripts)
        string = ('Validated    %s    scripts.    ' % ScriptDB.objects.all().count())
        string += ('Started    %s    and    stopped    %s    scripts.' % (nr_started, nr_stopped))
    else:
        string = format_script_list(scripts)
    caller.msg(string)
