<?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%2Fresettime</id>
	<title>Manual:DIL Manual/resettime - 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%2Fresettime"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/resettime&amp;action=history"/>
	<updated>2026-11-23T14:48:20Z</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/resettime&amp;diff=2862&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/resettime&amp;diff=2862&amp;oldid=prev"/>
		<updated>2026-11-14T23:09: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;= resettime =&lt;br /&gt;
'''Field''' (integer, read-only; on a zoneptr).&lt;br /&gt;
&lt;br /&gt;
 z.resettime : integer&lt;br /&gt;
&lt;br /&gt;
The minutes between two resets of the zone: the &amp;lt;code&amp;gt;lifespan&amp;lt;/code&amp;gt; in the zone file's &amp;lt;code&amp;gt;%zone&amp;lt;/code&amp;gt; header (60 when the header has none). The server adds up to three random minutes to each wait, so that zones don't all reset at the same moment. Whether the zone resets at all is in [[Manual:DIL Manual/resetmode|resetmode]].&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* A zone with lifespan 0 isn't reset, not even at boot.&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* On a null zoneptr it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin door_ticker();&lt;br /&gt;
var&lt;br /&gt;
   zon : zoneptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   zon := findzone(self.zoneidx);&lt;br /&gt;
   if (zon == null)&lt;br /&gt;
      quit;&lt;br /&gt;
   heartbeat := zon.resettime * 60 * PULSE_SEC;&lt;br /&gt;
   :start:&lt;br /&gt;
   wait(SFB_TICK, TRUE);&lt;br /&gt;
   log(self.nameidx + &amp;quot;@&amp;quot; + self.zoneidx + &amp;quot;: the zone's reset time has passed.&amp;quot;);&lt;br /&gt;
   goto start;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Ticks once per reset period of the zone a unit comes from, as the secret doors in basemove.zon do.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/resetmode|resetmode]]&lt;br /&gt;
* [[Manual:DIL Manual/heartbeat|heartbeat]]&lt;br /&gt;
* [[Manual:DIL Manual/zonereset()|zonereset()]]&lt;br /&gt;
* [[Manual:DIL Manual/findzone()|findzone()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>