<?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%2Fequip</id>
	<title>Manual:DIL Manual/equip - 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%2Fequip"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/equip&amp;action=history"/>
	<updated>2026-11-22T22:56: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/equip&amp;diff=2909&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/equip&amp;diff=2909&amp;oldid=prev"/>
		<updated>2026-11-14T23:12:16Z</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;= equip =&lt;br /&gt;
'''Field''' (integer, read-only; units: objects).&lt;br /&gt;
&lt;br /&gt;
 obj.equip : integer&lt;br /&gt;
&lt;br /&gt;
Where the object is worn or held: one of the &amp;lt;code&amp;gt;WEAR_*&amp;lt;/code&amp;gt; positions in vme.h (&amp;lt;code&amp;gt;WEAR_HEAD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WEAR_WIELD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WEAR_HANDS&amp;lt;/code&amp;gt;...), or 0 when it isn't equipped. While it is equipped, its [[Manual:DIL Manual/outside|outside]] is the character wearing it.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Read-only: vmc refuses an assignment (&amp;quot;Illegal lvalue&amp;quot;). [[Manual:DIL Manual/addequip()|addequip()]] and [[Manual:DIL Manual/unequip()|unequip()]] put it on and take it off; [[Manual:DIL Manual/equipment()|equipment()]] finds what a character wears in a position.&lt;br /&gt;
* Objects only. On a character, a room or null it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin warm_gloves();&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   heartbeat := PULSE_SEC * 30;&lt;br /&gt;
   :start:&lt;br /&gt;
   wait(SFB_TICK, self.equip == WEAR_HANDS);&lt;br /&gt;
   act(&amp;quot;Your hands feel warm inside $2n.&amp;quot;, A_ALWAYS, self.outside, self, null, TO_CHAR);&lt;br /&gt;
   goto start;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A pair of gloves that warm the wearer's hands every half minute while worn, as the wait on &amp;lt;code&amp;gt;self.equip&amp;lt;/code&amp;gt; in barbarian.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/equipment()|equipment()]]&lt;br /&gt;
* [[Manual:DIL Manual/addequip()|addequip()]]&lt;br /&gt;
* [[Manual:DIL Manual/unequip()|unequip()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>