<?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_diff</id>
	<title>Manual:DIL Manual/exit diff - 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_diff"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/exit_diff&amp;action=history"/>
	<updated>2026-11-23T15:03:33Z</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_diff&amp;diff=2935&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_diff&amp;diff=2935&amp;oldid=prev"/>
		<updated>2026-11-14T23:13:53Z</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_diff =&lt;br /&gt;
'''Field''' (integer, read/write; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 room.exit_diff[dir] : integer&lt;br /&gt;
&lt;br /&gt;
The difficulty of the room's exit in direction &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt;, set with &amp;lt;code&amp;gt;difficulty&amp;lt;/code&amp;gt; on the exit in the zone file (0 to 250). The zones use it as the difficulty of a skill check: climbing an &amp;lt;code&amp;gt;EX_CLIMB&amp;lt;/code&amp;gt; exit and searching for a hidden one (basemove.zon), picking its lock (skills.zon); the server uses it when a character swims through the exit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; is a direction from vme.h, &amp;lt;code&amp;gt;NORTH&amp;lt;/code&amp;gt; (0) to &amp;lt;code&amp;gt;SOUTHWEST&amp;lt;/code&amp;gt; (9).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* It fails when the unit is not a room, when &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; is outside 0 to &amp;lt;code&amp;gt;MAX_EXIT&amp;lt;/code&amp;gt;, and when the room has no exit that way.&lt;br /&gt;
* Stored as an unsigned 8-bit number: values outside 0 to 255 wrap around. No access level is needed to assign it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer climb_roll(room : unitptr, dir : integer);&lt;br /&gt;
external&lt;br /&gt;
   integer skillchecksa@skills(skillidx : integer, abiidx : integer, difficulty : integer);&lt;br /&gt;
var&lt;br /&gt;
   diff : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (not isset(room.exit_info[dir], EX_CLIMB))&lt;br /&gt;
      return (100);&lt;br /&gt;
   diff := room.exit_diff[dir];&lt;br /&gt;
   if (self.drunk &amp;gt; 0)&lt;br /&gt;
      diff := diff + 5 * self.drunk;&lt;br /&gt;
   return (skillchecksa@skills(SKI_CLIMB, ABIL_DEX, diff));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Rolls the climbing check for an exit, harder when drunk, as &amp;lt;code&amp;gt;climb&amp;lt;/code&amp;gt; does in basemove.zon (a result above 0 is a success).&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;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>