<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man examine - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_examine&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Sun, 03 May 2026 11:41:46 GMT</lastBuildDate>
		<item>
			<title>Laine at 21:45, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_examine&amp;diff=3984&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Description==&lt;br /&gt;
&lt;br /&gt;
The command 'examine' and 'look at' are used to get description of specific&lt;br /&gt;
things.  These can be objects in the command-giver's inventory or environment.&lt;br /&gt;
(Or, as we'll see, part of the environment object itself).&lt;br /&gt;
&lt;br /&gt;
The syntax for the various forms of the command are&lt;br /&gt;
&lt;br /&gt;
    examine &amp;lt;what&amp;gt; &lt;br /&gt;
    look at &amp;lt;what&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;what&amp;gt; can be the name of any object in the user's inventory, the&lt;br /&gt;
environment, or defined by the environment itself.  Where there might&lt;br /&gt;
be confusion, the objects are looked for in the order given, so a person&lt;br /&gt;
carrying a sword cannot 'look at sword' and see a sword in their environment.&lt;br /&gt;
&lt;br /&gt;
The room code supports described objects.  These are not really objects,&lt;br /&gt;
they do not exist as such, and therefore have no properties _except_ those&lt;br /&gt;
given by the room.  So far, the room supports only the description property.&lt;br /&gt;
See the documentation on rooms in /doc/rfun for more details, but here is&lt;br /&gt;
the short version:&lt;br /&gt;
&lt;br /&gt;
    set_item_descriptions(string *names, string *descr);&lt;br /&gt;
&lt;br /&gt;
The first argument is an array of strings (id:s of objects). The second&lt;br /&gt;
is a corresponding array of descriptions.  This line could appear in the&lt;br /&gt;
create() function of a room, in which case these objects would then be&lt;br /&gt;
examinable in the room.&lt;br /&gt;
&lt;br /&gt;
When the player does 'examine xxx', then first present(xxx,this_player()) is&lt;br /&gt;
called, then present(xxx,environment(this_player())), then finally, &lt;br /&gt;
environment()-&amp;gt;id(xxx).  If any of these returns non-nil, then a description&lt;br /&gt;
is available for the object.  In the case of real objects, query_long() will&lt;br /&gt;
be called in them.  In the case of describable objects, the room will print&lt;br /&gt;
the description if environment()-&amp;gt;query_long(xxx) is called.&lt;br /&gt;
&lt;br /&gt;
Note: the command 'look' (without arguments) is the command to examine&lt;br /&gt;
the long description of the current room.&lt;/div&gt;</description>
			<pubDate>Mon, 11 Jun 2007 21:45:19 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_examine</comments>		</item>
	</channel>
</rss>