<?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%3AZone_Manual%2FThe_Reset_Section%2FSpecial_reset_functions</id>
	<title>Manual:Zone Manual/The Reset Section/Special reset functions - 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%3AZone_Manual%2FThe_Reset_Section%2FSpecial_reset_functions"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;action=history"/>
	<updated>2026-11-23T23:39:24Z</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:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=3219&amp;oldid=prev</id>
		<title>Agent-mud: checked against the current code (wiki review 2026-11-15)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=3219&amp;oldid=prev"/>
		<updated>2026-11-15T06:23:40Z</updated>

		<summary type="html">&lt;p&gt;checked against the current code (wiki review 2026-11-15)&lt;/p&gt;
&lt;a href=&quot;https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;amp;diff=3219&amp;amp;oldid=216&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=216&amp;oldid=prev</id>
		<title>Nove at 11:35, 26 May 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=216&amp;oldid=prev"/>
		<updated>2020-05-26T11:35:26Z</updated>

		<summary type="html">&lt;p&gt;&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 11:35, 26 May 2020&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-l147&quot; &gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&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;	 load knife&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;	 load knife&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;	 }&amp;lt;/nowiki&amp;gt;&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;	 }&amp;lt;/nowiki&amp;gt;&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;&lt;/ins&gt;&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;&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Reset_Section/Loading_objects_and_NPCs|Previous: Loading objects and NPCs]]&amp;lt;/div&amp;gt;&lt;/ins&gt;&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;&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Next: Reset walk through]]&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nove</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=135&amp;oldid=prev</id>
		<title>Nove: Created page with &quot;=== Special reset functions ===  	Now that we have gone over the basic load and equip commands we 	have some special commands that you can add to them to make them do more 	in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Reset_Section/Special_reset_functions&amp;diff=135&amp;oldid=prev"/>
		<updated>2020-05-25T14:33:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Special reset functions ===  	Now that we have gone over the basic load and equip commands we 	have some special commands that you can add to them to make them do more 	in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Special reset functions ===&lt;br /&gt;
&lt;br /&gt;
	Now that we have gone over the basic load and equip commands we&lt;br /&gt;
	have some special commands that you can add to them to make them do more&lt;br /&gt;
	interesting things.  Sometimes when doing resets you don't always want&lt;br /&gt;
	items or NPCs to load or sometimes you want them to load but only if a&lt;br /&gt;
	certain amount of other things correctly load.  There are also times you&lt;br /&gt;
	want to clear the rooms or reload an entire object after removing the&lt;br /&gt;
	old one.  All these things and more can be accomplished with the reset&lt;br /&gt;
	section.&lt;br /&gt;
==== The complete directive. ====&lt;br /&gt;
&lt;br /&gt;
	The 'load' and 'equip' commands have one more argument that can be&lt;br /&gt;
	placed at the end of them to make them act a bit different.the complete&lt;br /&gt;
	directive. In the case where this directive is placed at the end&lt;br /&gt;
	of a 'load or 'equip' command, the unit is only loaded in case all immediate commands inside&lt;br /&gt;
	its nesting are executed successfully.  For example:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	load captain into jail_room complete&lt;br /&gt;
	{&lt;br /&gt;
	   equip magic_sword position WEAR_WIELD max 1&lt;br /&gt;
	   load bag&lt;br /&gt;
	   {&lt;br /&gt;
	      load ruby_ring max 1&lt;br /&gt;
	   }&lt;br /&gt;
	}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
In this case the captain is only loaded if the objects magic_sword&lt;br /&gt;
	and bag are successfully loaded. if the ruby_ring is not loaded,&lt;br /&gt;
	it will have no effect on the complete directive. To make the ruby_ring&lt;br /&gt;
	affect to captains complete directive, the bag must also have specified a&lt;br /&gt;
	complete directive (because the bag would then not be complete, and thus the&lt;br /&gt;
	captain would not be complete).&lt;br /&gt;
==== The follow command ====&lt;br /&gt;
&lt;br /&gt;
	Once you load a NPC you may want that NPC to follow another NPC.&lt;br /&gt;
	  That is what the 'follow' command is for.  The following is the format&lt;br /&gt;
	  of the 'follow' command&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	   follow &amp;amp;lt;symbol&amp;amp;gt; &amp;amp;lt;load amount #&amp;amp;gt; &amp;amp;lt;complete&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
;symbol&lt;br /&gt;
: The first argument to the follow command is the symbolic name of the NPC to follow the NPC of the outer grouping.&lt;br /&gt;
;load amount&lt;br /&gt;
: the second argument is an optional argument that tells the reset how many of the NPC followers of this type  are allowed in the world, zone, or locally.  The possible values for this field are as follows:&lt;br /&gt;
&lt;br /&gt;
;max &amp;amp;lt;num&amp;amp;gt;&lt;br /&gt;
: This  command  is  always  part  of  another reset command (load,&lt;br /&gt;
	equip, etc.).  At reset time the entire world is scanned for occurences&lt;br /&gt;
	of the loaded unit - only if the currently existing number is less than&lt;br /&gt;
	&amp;amp;lt;num&amp;amp;gt; will the command be executed.&lt;br /&gt;
;local &amp;amp;lt;num&amp;amp;gt;&lt;br /&gt;
: This command is always  part  of  another  reset  command  (load,&lt;br /&gt;
	equip, etc.).  At reset time the location of which the unit is to&lt;br /&gt;
	be loaded into is scanned for occurences of the loaded unit - only  if  the currently existing number is less than &amp;amp;lt;num&amp;amp;gt; will the&lt;br /&gt;
	command be executed.&lt;br /&gt;
;zonemax &amp;amp;lt;num&amp;amp;gt;&lt;br /&gt;
: This command is always  part  of  another  reset  command  (load,&lt;br /&gt;
	equip,  etc.).   At  reset  time  the  entire zone being reset is&lt;br /&gt;
	scanned for occurences of the loaded unit - only if the currently&lt;br /&gt;
	existing number is less than &amp;amp;lt;num&amp;amp;gt; will the command be&lt;br /&gt;
	executed.&lt;br /&gt;
&lt;br /&gt;
;complete&lt;br /&gt;
: This only makes the NPC follow if all the other things in the grouping finishes completely.  For a better description of how this directive works see (Link to resetcomplete).&lt;br /&gt;
&lt;br /&gt;
The follow command is always used nested inside a loaded&lt;br /&gt;
	NPC to force the NPC &amp;amp;lt;symbol&amp;amp;gt; to follow the NPC of the outer&lt;br /&gt;
	grouping.  The following would be a correct use of the follow&lt;br /&gt;
	command.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	load captain into jail&lt;br /&gt;
	  {&lt;br /&gt;
	  follow guard max 4&lt;br /&gt;
	    {&lt;br /&gt;
		equip guard_helmet WEAR_HEAD&lt;br /&gt;
		equip guard_plate WEAR_BODY&lt;br /&gt;
		equip guard_legs WEAR_LEGS&lt;br /&gt;
		equip guard_boots WEAR_FEET&lt;br /&gt;
		}&lt;br /&gt;
		  follow guard max 4&lt;br /&gt;
	    {&lt;br /&gt;
		equip guard_helmet WEAR_HEAD&lt;br /&gt;
		equip guard_plate WEAR_BODY&lt;br /&gt;
		equip guard_legs WEAR_LEGS&lt;br /&gt;
		equip guard_boots WEAR_FEET&lt;br /&gt;
		}&lt;br /&gt;
	  }&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This example would load two guards that are fully dressed and&lt;br /&gt;
	they would start following the captain which is also loaded.&lt;br /&gt;
==== The purge command ====&lt;br /&gt;
&lt;br /&gt;
	There are times when you want to clean up a room.  This can be&lt;br /&gt;
	done very easy by using the '''purge'''.  The following is&lt;br /&gt;
	the format of the purge command.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	purge &amp;amp;lt;symbol&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This command doesn't take much description.  The symbol is the&lt;br /&gt;
	room you want to empty of all objects and NPCs.  If you wanted to get&lt;br /&gt;
	rid of all objects and NPCs from a room with the symbolic name of jail&lt;br /&gt;
	it would look like this.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	purge jail&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
==== The random command ====&lt;br /&gt;
&lt;br /&gt;
	If you ever want to load something only some of the time.  There&lt;br /&gt;
	is a built in '''random''' command that allows you to pick&lt;br /&gt;
	the percentage of the time that the item will load.  The random command&lt;br /&gt;
	has the following format.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	random &amp;amp;lt;num&amp;amp;gt;&lt;br /&gt;
	  {group or single set of resets}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
It is important to point out this is done by a random percentage&lt;br /&gt;
	chance where as 1% of the time would be almost not at all and 100% of&lt;br /&gt;
	the time would be all the time.  If we wanted to load a group of things&lt;br /&gt;
	only 80% of the time it would look like this.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	random 80&lt;br /&gt;
	  {&lt;br /&gt;
	  load captain into jail_room complete&lt;br /&gt;
	    {&lt;br /&gt;
	    equip magic_sword position WEAR_WIELD max 1&lt;br /&gt;
	    load bag&lt;br /&gt;
	      {&lt;br /&gt;
	      load ruby_ring max 1&lt;br /&gt;
	      }&lt;br /&gt;
	    }&lt;br /&gt;
	}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
==== The remove command ====&lt;br /&gt;
&lt;br /&gt;
	Many times players take items out of containers like chests or&lt;br /&gt;
	steal items from your NPCs and leave them naked.  If the NPC is not dead&lt;br /&gt;
	the resets don't reload them therefore your NPCs will stand there empty&lt;br /&gt;
	and so will your chests.  This is fine if that is what you want but&lt;br /&gt;
	sometimes you want them to get dressed or refilled again at reset time.  that is&lt;br /&gt;
	what the '''remove''' command is for.  The following is the&lt;br /&gt;
	format of the remove command.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	remove &amp;amp;lt;symbol1&amp;amp;gt; in &amp;amp;lt;symbol2&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Again the remove command is a simple command and it only has two&lt;br /&gt;
	arguments, the item and where it is to remove it from.  If you&lt;br /&gt;
	wanted to have a cabinet that at every reset it would have a knife and a&lt;br /&gt;
	bag of sugar in it would look like this.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	remove cabinet in kitchen&lt;br /&gt;
	load cabinet into kitchen&lt;br /&gt;
	 {&lt;br /&gt;
	 load sugarbag&lt;br /&gt;
	 load knife&lt;br /&gt;
	 }&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nove</name></author>
		
	</entry>
</feed>