How do I find all objects @parented to a given object?
The easiest way to find all children of a given object is to use @search:
@search all parent=#1234
If you want to find all descendants of an object (including objects
which are @parented to the object\'s children, or its children\'s
children, etc.), then you can use:
@search all eval=member(lparent(##), #1234)
Of course, you can also use the lsearch() function similarly.
In future, PennMUSH may add a children(X) function as syntactic
sugar for lsearch(all, parent, X), but it will cost the same and
be subject to exactly the same restrictions as the lsearch().
2001-Apr-16 11:58am popiel
children() was added in 1.7.7p13
2003-Apr-29 8:23pm shawnw