<?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%2Fzoneidx</id>
	<title>Manual:DIL Manual/zoneidx - 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%2Fzoneidx"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/zoneidx&amp;action=history"/>
	<updated>2026-11-22T20:40:24Z</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/zoneidx&amp;diff=2807&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/zoneidx&amp;diff=2807&amp;oldid=prev"/>
		<updated>2026-11-14T22:59:47Z</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;= zoneidx =&lt;br /&gt;
'''Field''' (string, read-only; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.zoneidx : string&lt;br /&gt;
&lt;br /&gt;
The name of the zone the unit's definition comes from: &amp;lt;code&amp;gt;&amp;quot;midgaard&amp;quot;&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;cityguard@midgaard&amp;lt;/code&amp;gt;. Together with [[Manual:DIL Manual/nameidx|nameidx]] it names the unit's definition; [[Manual:DIL Manual/symname|symname]] gives both as &amp;lt;code&amp;gt;&amp;quot;nameidx@zoneidx&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* For a player it is &amp;lt;code&amp;gt;&amp;quot;_players&amp;quot;&amp;lt;/code&amp;gt;; for a room made with &amp;lt;code&amp;gt;gmroom&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;_gm&amp;quot;&amp;lt;/code&amp;gt;; for a unit with no definition, &amp;lt;code&amp;gt;&amp;quot;NO-ZONE&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* On null it fails.&lt;br /&gt;
* String &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; ignores case.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer is_corpse(u : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   return ((u.nameidx == &amp;quot;corpse&amp;quot;) and (u.zoneidx == &amp;quot;death&amp;quot;));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether a unit is a corpse, as the corpse checks in baseget.zon and values.h do.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/nameidx|nameidx]]&lt;br /&gt;
* [[Manual:DIL Manual/symname|symname]]&lt;br /&gt;
* [[Manual:DIL Manual/zone|zone]]&lt;br /&gt;
* [[Manual:DIL Manual/findsymbolic()|findsymbolic()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>