<?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%2Frecall</id>
	<title>Manual:DIL Manual/recall - 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%2Frecall"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/recall&amp;action=history"/>
	<updated>2026-11-22T19:51:50Z</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/recall&amp;diff=3251&amp;oldid=prev</id>
		<title>Agent-mud: corrected from the DIL keyword tests (T029-T043)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/recall&amp;diff=3251&amp;oldid=prev"/>
		<updated>2026-11-15T07:21:00Z</updated>

		<summary type="html">&lt;p&gt;corrected from the DIL keyword tests (T029-T043)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:21, 15 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Notes ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Notes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* A program read from a file (a room's or object's program when the zone boots, a unit brought back with [[Manual:DIL Manual/restore()|restore()]], a &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; program on a player) doesn't run until the first event reaches it, and that event only takes it as far as its &amp;lt;code&amp;gt;wait()&amp;lt;/code&amp;gt;: the event itself is lost. A room program waiting for a command misses the first one after a boot. Programs on units that &amp;lt;code&amp;gt;%reset&amp;lt;/code&amp;gt; loads start at once and aren't affected.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Variables are saved either way: integer, string, stringlist and intlist values come back with or without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt;; unitptr, extraptr, zoneptr and cmdptr variables come back null, and secures are gone. A recalled program usually has to find its units again.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Variables are saved either way: integer, string, stringlist and intlist values come back with or without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt;; unitptr, extraptr, zoneptr and cmdptr variables come back null, and secures are gone. A recalled program usually has to find its units again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If the template's code has changed since the save, the program starts from the top anyway. If its variables have changed, they are emptied as well.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If the template's code has changed since the save, the program starts from the top anyway. If its variables have changed, they are emptied as well.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/recall&amp;diff=3124&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/recall&amp;diff=3124&amp;oldid=prev"/>
		<updated>2026-11-14T23:27:08Z</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;= recall =&lt;br /&gt;
'''Keyword.''' Option of &amp;lt;code&amp;gt;dilbegin&amp;lt;/code&amp;gt;: a saved program goes on where it stopped.&lt;br /&gt;
&lt;br /&gt;
 dilbegin recall name(...);&lt;br /&gt;
&lt;br /&gt;
When a unit is saved with its programs (a player and what the player carries, when the player quits or is saved, and other units the game stores) and later loaded again, its programs are loaded with it. Without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; each program starts again from the first statement of &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;. With &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; it goes on from the wait where it was, with its &amp;lt;code&amp;gt;interrupt&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;on_activation&amp;lt;/code&amp;gt; settings still in force.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Variables are saved either way: integer, string, stringlist and intlist values come back with or without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt;; unitptr, extraptr, zoneptr and cmdptr variables come back null, and secures are gone. A recalled program usually has to find its units again.&lt;br /&gt;
* If the template's code has changed since the save, the program starts from the top anyway. If its variables have changed, they are emptied as well.&lt;br /&gt;
* Only the position in the copied template itself is saved, not inside a template it called.&lt;br /&gt;
* The option is stored in each copy when it is made. Adding or removing &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; doesn't change copies that are already saved on players' things.&lt;br /&gt;
* It only matters for units that are saved. On an NPC or a room that is never saved it does nothing.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin recall hunt_timer(minutes : integer);&lt;br /&gt;
var&lt;br /&gt;
   kills : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   heartbeat := PULSE_SEC * 60;&lt;br /&gt;
   sendtext(&amp;quot;The hunt begins: you have &amp;quot; + itoa(minutes) + &amp;quot; minutes.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   while (minutes &amp;gt; 0)&lt;br /&gt;
   {&lt;br /&gt;
      wait(SFB_DEAD | SFB_TICK, command(CMD_AUTO_TICK) or&lt;br /&gt;
           (command(CMD_AUTO_DEATH) and (activator == self.fighting)));&lt;br /&gt;
      if (command(CMD_AUTO_TICK))&lt;br /&gt;
         minutes := minutes - 1;&lt;br /&gt;
      else&lt;br /&gt;
         kills := kills + 1;&lt;br /&gt;
   }&lt;br /&gt;
   sendtext(&amp;quot;The hunt is over: &amp;quot; + itoa(kills) + &amp;quot; kills.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Copied onto a player, it counts down the minutes and the kills. If the player quits and comes back, it goes on counting; without &amp;lt;code&amp;gt;recall&amp;lt;/code&amp;gt; it would announce a new hunt (with the minutes and kills it had). Adapted from &amp;lt;code&amp;gt;spree_f&amp;lt;/code&amp;gt; in bounty.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/dilbegin|dilbegin]]&lt;br /&gt;
* [[Manual:DIL Manual/var|var]]&lt;br /&gt;
* [[Manual:DIL Manual/aware|aware]]&lt;br /&gt;
* [[Manual:DIL Manual/unique|unique]]&lt;br /&gt;
* [[Manual:DIL Manual/interrupt()|interrupt()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>