Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Contents (MPI)

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
[[Category:MPI functions]][[Category:MPI Database Related Functions]]
+
[[Category:functions (MPI)]][[Category:Database Related Functions (MPI)]]
=contents=
=contents=
<mpi>{contents:obj}
<mpi>{contents:obj}

Latest revision as of 01:37, 31 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}
Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox