'Creates the object.'

def func(self):

    caller = self.caller
    if (not self.args):
        string = 'Usage:    @create[/drop]    <newname>[;alias;alias...]    [:typeclass.path]'
        caller.msg(string)
        return
    for objdef in self.lhs_objs:
        string = ''
        name = objdef['name']
        aliases = objdef['aliases']
        typeclass = objdef['option']
        lockstring = self.new_obj_lockstring.format(id=caller.id)
        obj = create.create_object(typeclass, name, caller, home=caller, aliases=aliases, locks=lockstring, report_to=caller)
        if (not obj):
            continue
        if aliases:
            string = 'You    create    a    new    %s:    %s    (aliases:    %s).'
            string = (string % (obj.typename, obj.name, ',    '.join(aliases)))
        else:
            string = 'You    create    a    new    %s:    %s.'
            string = (string % (obj.typename, obj.name))
        if (not obj.db.desc):
            obj.db.desc = 'You    see    nothing    special.'
        if ('drop' in self.switches):
            if caller.location:
                obj.home = caller.location
                obj.move_to(caller.location, quiet=True)
    if string:
        caller.msg(string)
