<?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%2Fopendiff</id>
	<title>Manual:DIL Manual/opendiff - 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%2Fopendiff"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/opendiff&amp;action=history"/>
	<updated>2026-11-23T22:26:10Z</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/opendiff&amp;diff=2888&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/opendiff&amp;diff=2888&amp;oldid=prev"/>
		<updated>2026-11-14T23:11:13Z</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;= opendiff =&lt;br /&gt;
'''Field''' (integer, read/write; units: all, used on containers).&lt;br /&gt;
&lt;br /&gt;
 u.opendiff : integer&lt;br /&gt;
&lt;br /&gt;
How hard the unit's lock is to pick. The pick command in skills.zon passes it as the difficulty of the &amp;lt;code&amp;gt;SKI_PICK_LOCK&amp;lt;/code&amp;gt; check, so higher is harder and 0 is no extra difficulty. In a zone file it follows the open flags: &amp;lt;code&amp;gt;open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED} difficulty 50&amp;lt;/code&amp;gt;, where vmc accepts 0 to 250.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A lock with &amp;lt;code&amp;gt;EX_PICKPROOF&amp;lt;/code&amp;gt; in [[Manual:DIL Manual/openflags|openflags]] can't be picked whatever this is.&lt;br /&gt;
* A room's exits have their own difficulty, [[Manual:DIL Manual/exit diff|exit_diff]].&lt;br /&gt;
* Stored as an 8-bit unsigned number: values outside 0 to 255 wrap around.&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 harden_lock(item : unitptr, more : integer);&lt;br /&gt;
var&lt;br /&gt;
   d : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   d := item.opendiff + more;&lt;br /&gt;
   if (d &amp;gt; 250)&lt;br /&gt;
      d := 250;&lt;br /&gt;
   item.opendiff := d;&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Makes a lock harder to pick, keeping it within the range vmc allows.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/openflags|openflags]]&lt;br /&gt;
* [[Manual:DIL Manual/exit diff|exit_diff]]&lt;br /&gt;
* [[Manual:DIL Manual/key|key]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>