Contents (MPI)
From Tapestries MUCK
(Difference between revisions)
m (MPI contents moved to Contents (MPI)) |
Revision as of 13:13, 30 March 2007
contents
{contents:obj} {contents:obj,type}
Returns a list of the contents of the given object. If a second argument is passed to it, it restricts the listing to only those objects that are of the given type. Either the object must be nearby the trigger object, or else the owner of the trigger object must control the object. Otherwise this will error out with a Permission Denied error. The valid object type values are Room, Thing, Exit, Player, Program, and Bad.
HINT: If you need to get a list of two types of objects from the room, just concatenate the lists from two calls to this function, with each object type you want. ie:
{mklist:{contents:here,player},{contents:here,thing}}
or
{contents:here,player}{nl}{contents:here,thing}