<?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%2Fnames</id>
	<title>Manual:DIL Manual/names - 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%2Fnames"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/names&amp;action=history"/>
	<updated>2026-11-23T22:01:51Z</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/names&amp;diff=2818&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/names&amp;diff=2818&amp;oldid=prev"/>
		<updated>2026-11-14T23:00:21Z</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;= names =&lt;br /&gt;
'''Field''' (stringlist, read/write; units: all; also on an extraptr).&lt;br /&gt;
&lt;br /&gt;
 u.names : stringlist&lt;br /&gt;
 e.names : stringlist&lt;br /&gt;
&lt;br /&gt;
On a unit: the names players use to refer to it, such as &amp;lt;code&amp;gt;{&amp;quot;big green dragon&amp;quot;, &amp;quot;green dragon&amp;quot;, &amp;quot;dragon&amp;quot;}&amp;lt;/code&amp;gt;. The first one is the unit's [[Manual:DIL Manual/name|name]].&lt;br /&gt;
&lt;br /&gt;
On an extra description: the keywords it answers to. In extras the game keeps for itself (names starting with &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt;) the rest of the list often holds data; comm.zon keeps a player's ignore list and tell history this way.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Assigning a stringlist replaces all the names with a copy of it; assigning null empties the list.&lt;br /&gt;
* The list can also be changed in place with [[Manual:DIL Manual/addstring()|addstring()]], [[Manual:DIL Manual/substring()|substring()]], [[Manual:DIL Manual/insert()|insert()]] and [[Manual:DIL Manual/remove()|remove()]], and read with &amp;lt;code&amp;gt;u.names.[i]&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;.name&amp;lt;/code&amp;gt; can't be assigned; change the first entry of &amp;lt;code&amp;gt;.names&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
* On null it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin disguise();&lt;br /&gt;
var&lt;br /&gt;
   old : stringlist;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   old := self.names;&lt;br /&gt;
   self.names := {&amp;quot;hooded stranger&amp;quot;, &amp;quot;stranger&amp;quot;};&lt;br /&gt;
   act(&amp;quot;$1n pulls up a hood.&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   heartbeat := PULSE_SEC * 60;&lt;br /&gt;
   pause;&lt;br /&gt;
   self.names := old;&lt;br /&gt;
   act(&amp;quot;$1n lowers the hood.&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives an NPC other names for a minute and gives the old ones back; stringlist variables keep their value across the &amp;lt;code&amp;gt;pause&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/name|name]]&lt;br /&gt;
* [[Manual:DIL Manual/addstring()|addstring()]]&lt;br /&gt;
* [[Manual:DIL Manual/substring()|substring()]]&lt;br /&gt;
* [[Manual:DIL Manual/extra|extra]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>