<?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%2Fexit_names</id>
	<title>Manual:DIL Manual/exit 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%2Fexit_names"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/exit_names&amp;action=history"/>
	<updated>2026-11-22T22:09:00Z</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/exit_names&amp;diff=2910&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/exit_names&amp;diff=2910&amp;oldid=prev"/>
		<updated>2026-11-14T23:12:20Z</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;= exit_names =&lt;br /&gt;
'''Field''' (stringlist, read/write; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 rm.exit_names[dir] : stringlist&lt;br /&gt;
&lt;br /&gt;
The names of the door or opening in direction &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;NORTH&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EAST&amp;lt;/code&amp;gt;, ... &amp;lt;code&amp;gt;SOUTHWEST&amp;lt;/code&amp;gt;, 0 to &amp;lt;code&amp;gt;MAX_EXIT&amp;lt;/code&amp;gt;, in vme.h): what a player types to open, close, lock or unlock it. It is the exit's &amp;lt;code&amp;gt;keyword&amp;lt;/code&amp;gt; list in the zone file; empty for a plain exit. The first name is the one the commands show: &amp;lt;code&amp;gt;rm.exit_names[dir].[0]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Assigning a stringlist replaces the names, e.g. &amp;lt;code&amp;gt;rm.exit_names[NORTH] := {&amp;quot;gate&amp;quot;, &amp;quot;iron gate&amp;quot;};&amp;lt;/code&amp;gt;. Assigning null empties it.&lt;br /&gt;
* The other side of a door is a separate exit with its own names.&lt;br /&gt;
* Rooms only. On another unit or null, with a direction out of range, or where the room has no exit that way, it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer door_dir(rm : unitptr, word : string);&lt;br /&gt;
var&lt;br /&gt;
   dir : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   dir := 0;&lt;br /&gt;
   while (dir &amp;lt;= MAX_EXIT)&lt;br /&gt;
   {&lt;br /&gt;
      if ((rm.exit_to[dir] != null) and (word in rm.exit_names[dir]))&lt;br /&gt;
         return (dir);&lt;br /&gt;
      dir := dir + 1;&lt;br /&gt;
   }&lt;br /&gt;
   return (-1);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finds the direction of the door with a given name, -1 when there's none, as the door commands in basemove.zon do.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/exit info|exit_info]]&lt;br /&gt;
* [[Manual:DIL Manual/exit to|exit_to]]&lt;br /&gt;
* [[Manual:DIL Manual/exit key|exit_key]]&lt;br /&gt;
* [[Manual:DIL Manual/setroomexit()|setroomexit()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>