<?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%2Fmanipulate</id>
	<title>Manual:DIL Manual/manipulate - 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%2Fmanipulate"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/manipulate&amp;action=history"/>
	<updated>2026-11-22T22:13:55Z</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/manipulate&amp;diff=2886&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/manipulate&amp;diff=2886&amp;oldid=prev"/>
		<updated>2026-11-14T23:11:07Z</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;= manipulate =&lt;br /&gt;
'''Field''' (integer, read/write; units: all, used on objects).&lt;br /&gt;
&lt;br /&gt;
 u.manipulate : integer&lt;br /&gt;
&lt;br /&gt;
What players can do with the unit, a bit set of &amp;lt;code&amp;gt;MANIPULATE_*&amp;lt;/code&amp;gt; values from &amp;lt;code&amp;gt;vme.h&amp;lt;/code&amp;gt;. In a zone file it is &amp;lt;code&amp;gt;manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_BODY}&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;MANIPULATE_TAKE&amp;lt;/code&amp;gt;: it can be picked up. Without it, get refuses (baseget.zon).&lt;br /&gt;
* &amp;lt;code&amp;gt;MANIPULATE_WEAR_FINGER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_NECK&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_BODY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_HEAD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_LEGS&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_FEET&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_HANDS&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_ARMS&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_SHIELD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_ABOUT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_WAIST&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_WRIST&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_EAR&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_BACK&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_CHEST&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_ANKLE&amp;lt;/code&amp;gt;: where it can be worn.&lt;br /&gt;
* &amp;lt;code&amp;gt;MANIPULATE_WIELD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;MANIPULATE_HOLD&amp;lt;/code&amp;gt;: it can be wielded or held.&lt;br /&gt;
* &amp;lt;code&amp;gt;MANIPULATE_ENTER&amp;lt;/code&amp;gt;: things can be put in it (put in baseget.zon refuses without it, even for a container) and characters can enter it (enter in basemove.zon).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Test with [[Manual:DIL Manual/isset()|isset()]], change with [[Manual:DIL Manual/set()|set()]] and [[Manual:DIL Manual/unset()|unset()]]. Several bits at once: &amp;lt;code&amp;gt;u.manipulate &amp;amp; (MANIPULATE_WIELD | MANIPULATE_HOLD)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Where an object is worn right now is [[Manual:DIL Manual/equip|equip]], not this field.&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 integer can_take(item : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (item.type != UNIT_ST_OBJ)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (isset(item.manipulate, MANIPULATE_TAKE));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether an object can be picked up, as get does in baseget.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/flags|flags]]&lt;br /&gt;
* [[Manual:DIL Manual/equip|equip]]&lt;br /&gt;
* [[Manual:DIL Manual/isset()|isset()]]&lt;br /&gt;
* [[Manual:DIL Manual/addequip()|addequip()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>