<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fobjs</id>
	<title>Manual:DIL Manual/objs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fobjs"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/objs&amp;action=history"/>
	<updated>2026-11-22T22:57:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/objs&amp;diff=2856&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/objs&amp;diff=2856&amp;oldid=prev"/>
		<updated>2026-11-14T23:09:01Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= objs =&lt;br /&gt;
'''Field''' (unitptr, read-only; on a zoneptr).&lt;br /&gt;
&lt;br /&gt;
 z.objs : unitptr&lt;br /&gt;
&lt;br /&gt;
A copy, in the game, of the zone's object whose symbolic name sorts first. Only that one object is looked at: if no copy of it is loaded, the field fails, even when copies of the zone's other objects exist.&lt;br /&gt;
&lt;br /&gt;
It is not the start of a list of the zone's objects: [[Manual:DIL Manual/next|next]] on the object gives the next unit in the same place. To find copies of a particular object, use &amp;lt;code&amp;gt;findsymbolic(&amp;quot;name@zone&amp;quot;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It fails on a null zoneptr, on a zone without objects, and when the first object has no copy in the game. A failed value isn't assigned: after &amp;lt;code&amp;gt;u := z.objs;&amp;lt;/code&amp;gt; in those cases, &amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt; still holds what it held before, so set it to null first.&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* No zone in the game uses it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin log_first_obj(z : zoneptr);&lt;br /&gt;
var&lt;br /&gt;
   u : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (z == null)&lt;br /&gt;
      return;&lt;br /&gt;
   u := null;&lt;br /&gt;
   u := z.objs;&lt;br /&gt;
   if (u != null)&lt;br /&gt;
      log(z.name + &amp;quot;: &amp;quot; + u.symname);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Logs the copy of a zone's first object, if one is loaded.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/npcs|npcs]]&lt;br /&gt;
* [[Manual:DIL Manual/rooms|rooms]]&lt;br /&gt;
* [[Manual:DIL Manual/objcount|objcount]]&lt;br /&gt;
* [[Manual:DIL Manual/findsymbolic()|findsymbolic()]]&lt;br /&gt;
* [[Manual:DIL Manual/loadcount|loadcount]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>