<?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%2Fnameidx</id>
	<title>Manual:DIL Manual/nameidx - 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%2Fnameidx"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/nameidx&amp;action=history"/>
	<updated>2026-11-23T22:52:38Z</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/nameidx&amp;diff=2808&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/nameidx&amp;diff=2808&amp;oldid=prev"/>
		<updated>2026-11-14T22:59:50Z</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;= nameidx =&lt;br /&gt;
'''Field''' (string, read-only; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.nameidx : string&lt;br /&gt;
&lt;br /&gt;
The unit's name in its zone file: &amp;lt;code&amp;gt;&amp;quot;cityguard&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/zoneidx|zoneidx]] 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 the player's file name (the name in lower case).&lt;br /&gt;
* For a unit with no definition it is &amp;lt;code&amp;gt;&amp;quot;NO-NAME&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;
* Not the same as [[Manual:DIL Manual/name|name]], which is the first of the names players use.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer is_familiar(item : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   return ((item.nameidx == &amp;quot;familiar2&amp;quot;) and (item.zoneidx == &amp;quot;g_q&amp;quot;));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether an item is one particular unit, as in baseget.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/zoneidx|zoneidx]]&lt;br /&gt;
* [[Manual:DIL Manual/symname|symname]]&lt;br /&gt;
* [[Manual:DIL Manual/name|name]]&lt;br /&gt;
* [[Manual:DIL Manual/load()|load()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>