<?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_info</id>
	<title>Manual:DIL Manual/exit info - 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_info"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/exit_info&amp;action=history"/>
	<updated>2026-11-23T22:16:58Z</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_info&amp;diff=2911&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_info&amp;diff=2911&amp;oldid=prev"/>
		<updated>2026-11-14T23:12:23Z</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_info =&lt;br /&gt;
'''Field''' (integer, read/write; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 rm.exit_info[dir] : integer&lt;br /&gt;
&lt;br /&gt;
The flags of the exit 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;): whether it has a door and what state it is in. It is the exit's &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; line in the zone file. The flags, in vme.h: &amp;lt;code&amp;gt;EX_OPEN_CLOSE&amp;lt;/code&amp;gt; (there is a door), &amp;lt;code&amp;gt;EX_CLOSED&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EX_LOCKED&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EX_PICKPROOF&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EX_INSIDE_OPEN&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EX_HIDDEN&amp;lt;/code&amp;gt; (found only by searching), &amp;lt;code&amp;gt;EX_CLIMB&amp;lt;/code&amp;gt; (must be climbed) and &amp;lt;code&amp;gt;EX_FALL_THIS_WAY&amp;lt;/code&amp;gt;. Test and change them with [[Manual:DIL Manual/isset()|isset()]], [[Manual:DIL Manual/set()|set()]] and [[Manual:DIL Manual/unset()|unset()]].&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The other side of a door is a separate exit with its own flags: closing one side leaves the other open unless you change it too, as the example does.&lt;br /&gt;
* Changing the flags sends no message; act() what players should see.&lt;br /&gt;
* Stored as 8 bits.&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 close_door(rm : unitptr, dir : integer);&lt;br /&gt;
var&lt;br /&gt;
   other : unitptr;&lt;br /&gt;
   i : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (rm.exit_to[dir] == null)&lt;br /&gt;
      return;&lt;br /&gt;
   if (not isset(rm.exit_info[dir], EX_OPEN_CLOSE))&lt;br /&gt;
      return;&lt;br /&gt;
   set(rm.exit_info[dir], EX_CLOSED);&lt;br /&gt;
&lt;br /&gt;
   other := rm.exit_to[dir];&lt;br /&gt;
   i := 0;&lt;br /&gt;
   while (i &amp;lt;= MAX_EXIT)&lt;br /&gt;
   {&lt;br /&gt;
      if (other.exit_to[i] == rm)&lt;br /&gt;
      {&lt;br /&gt;
         set(other.exit_info[i], EX_CLOSED);&lt;br /&gt;
         break;&lt;br /&gt;
      }&lt;br /&gt;
      i := i + 1;&lt;br /&gt;
   }&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Closes a door from both sides, as close does in basemove.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/exit names|exit_names]]&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/exit diff|exit_diff]]&lt;br /&gt;
* [[Manual:DIL Manual/openflags|openflags]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>