<?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%2Froomcount</id>
	<title>Manual:DIL Manual/roomcount - 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%2Froomcount"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/roomcount&amp;action=history"/>
	<updated>2026-11-23T21:51:20Z</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/roomcount&amp;diff=2858&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/roomcount&amp;diff=2858&amp;oldid=prev"/>
		<updated>2026-11-14T23:09:07Z</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;= roomcount =&lt;br /&gt;
'''Field''' (integer, read-only; on a zoneptr).&lt;br /&gt;
&lt;br /&gt;
 z.roomcount : integer&lt;br /&gt;
&lt;br /&gt;
The number of rooms the zone defines: the rooms read from its &amp;lt;code&amp;gt;.data&amp;lt;/code&amp;gt; file at boot.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* On a null zoneptr it fails.&lt;br /&gt;
* Its companions [[Manual:DIL Manual/objcount|objcount]] and [[Manual:DIL Manual/npccount|npccount]] are always 0.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer world_rooms();&lt;br /&gt;
var&lt;br /&gt;
   z : zoneptr;&lt;br /&gt;
   n : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   n := 0;&lt;br /&gt;
   z := zhead();&lt;br /&gt;
   while (z)&lt;br /&gt;
   {&lt;br /&gt;
      n := n + z.roomcount;&lt;br /&gt;
      z := z.next;&lt;br /&gt;
   }&lt;br /&gt;
   return (n);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Counts the rooms of all zones.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/rooms|rooms]]&lt;br /&gt;
* [[Manual:DIL Manual/objcount|objcount]]&lt;br /&gt;
* [[Manual:DIL Manual/npccount|npccount]]&lt;br /&gt;
* [[Manual:DIL Manual/zhead()|zhead()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>