FormatObjectList

FormatObjectList (string pre-list, object parent, string pre-final, string post-list, boolean use inventory verbs)

Returns a string containing a formatted list of objects.

Used by ShowRoomDescription and the “inventory” command to display lists of visible and carried objects.

FormatObjectList will display children of listed objects within brackets, if the parent object can be seen through.

For example, this:

FormatObjectList("You can see", player.parent, "and", "in this room.", false)

may return output like this:

You can see a sofa, a lamp, a box (containing a diary and a pen) and a kitten in this room.

All object names will be hyperlinked to show a menu of displayverbs. The final parameter lets you specify whether to use the inventoryverbs instead.