ldmud-3.3.719/
ldmud-3.3.719/doc/
ldmud-3.3.719/doc/efun.de/
ldmud-3.3.719/doc/efun/
ldmud-3.3.719/doc/man/
ldmud-3.3.719/doc/other/
ldmud-3.3.719/mud/
ldmud-3.3.719/mud/heaven7/
ldmud-3.3.719/mud/lp-245/
ldmud-3.3.719/mud/lp-245/banish/
ldmud-3.3.719/mud/lp-245/doc/
ldmud-3.3.719/mud/lp-245/doc/examples/
ldmud-3.3.719/mud/lp-245/doc/sefun/
ldmud-3.3.719/mud/lp-245/log/
ldmud-3.3.719/mud/lp-245/obj/Go/
ldmud-3.3.719/mud/lp-245/players/lars/
ldmud-3.3.719/mud/lp-245/room/death/
ldmud-3.3.719/mud/lp-245/room/maze1/
ldmud-3.3.719/mud/lp-245/room/sub/
ldmud-3.3.719/mud/lp-245/secure/
ldmud-3.3.719/mud/sticklib/
ldmud-3.3.719/mud/sticklib/src/
ldmud-3.3.719/mudlib/deprecated/
ldmud-3.3.719/mudlib/uni-crasher/
ldmud-3.3.719/pkg/
ldmud-3.3.719/pkg/debugger/
ldmud-3.3.719/pkg/diff/
ldmud-3.3.719/pkg/misc/
ldmud-3.3.719/src/
ldmud-3.3.719/src/autoconf/
ldmud-3.3.719/src/ptmalloc/
ldmud-3.3.719/src/util/
ldmud-3.3.719/src/util/erq/
ldmud-3.3.719/src/util/indent/hosts/next/
ldmud-3.3.719/src/util/xerq/
ldmud-3.3.719/src/util/xerq/lpc/
ldmud-3.3.719/src/util/xerq/lpc/www/
ldmud-3.3.719/test/generic/
ldmud-3.3.719/test/inc/
ldmud-3.3.719/test/t-0000398/
ldmud-3.3.719/test/t-0000548/
ldmud-3.3.719/test/t-030925/
ldmud-3.3.719/test/t-040413/
ldmud-3.3.719/test/t-041124/
ldmud-3.3.719/test/t-language/
SYNOPSIS
        object* clones ()
        object* clones (int what)
        object* clones (string|object obj [, int what])

DESCRIPTION
        The efuns returns an array with all clones of a certain blueprint.
        The array is subject to the usual runtime limits.

        If <obj> is given, all clones of the blueprint of <obj> (which
        may be <obj> itself) are returned, otherwise all clones of the
        current object resp. of the current object's blueprint. If <obj>
        is given as string, it must name an existing object.

        <what> selects how to treat clones made from earlier versions
        of the blueprint:
          == 0: (default) return the clones of the current blueprint only.
          == 1: return the clones of the previous blueprints only.
          == 2: return all clones of the blueprint.

        Note: this efun is computationally expensive.

        If the driver is compiled with DYNAMIC_COSTS, the cost of this
        efun is proportional to the number of objects in the game.

EXAMPLE
        object o, p;
        o = clone_object("/std/thing"); /* or "std/thing" in COMPAT_MODE */
        destruct(find_object("/std/thing"));
        p = clone_object("/std/thing");

        clones("/std/thing")    --> returns ({ p })
        clones("/std/thing", 0) --> returns ({ p })
        clones("/std/thing", 1) --> returns ({ o })
        clones("/std/thing", 2) --> returns ({ o, p })

HISTORY
        Introduced in LDMud 3.2.8.
        LDMud 3.2.9 added the dynamic cost.

SEE ALSO
        blueprint(E), clone_object(E), clonep(E)