<?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%2Fobjectflags</id>
	<title>Manual:DIL Manual/objectflags - 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%2Fobjectflags"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/objectflags&amp;action=history"/>
	<updated>2026-11-22T17:10:51Z</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/objectflags&amp;diff=2906&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/objectflags&amp;diff=2906&amp;oldid=prev"/>
		<updated>2026-11-14T23:12: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;= objectflags =&lt;br /&gt;
'''Field''' (integer, read/write; units: objects).&lt;br /&gt;
&lt;br /&gt;
 obj.objectflags : integer&lt;br /&gt;
&lt;br /&gt;
The object's flags, set with &amp;lt;code&amp;gt;romflags&amp;lt;/code&amp;gt; in the object's zone definition (&amp;lt;code&amp;gt;flags&amp;lt;/code&amp;gt; there sets the unit flags). The flags, in vme.h: &amp;lt;code&amp;gt;OBJ_NO_UNEQUIP&amp;lt;/code&amp;gt; (can't be removed once worn), &amp;lt;code&amp;gt;OBJ_TWO_HANDS&amp;lt;/code&amp;gt; (needs both hands), &amp;lt;code&amp;gt;OBJ_NOCOVER&amp;lt;/code&amp;gt; (worn, it doesn't cover the body part) and &amp;lt;code&amp;gt;OBJ_NO_DUAL&amp;lt;/code&amp;gt; (can't be the second weapon when wielding two). Test and change them with [[Manual:DIL Manual/isset()|isset()]], [[Manual:DIL Manual/set()|set()]] and [[Manual:DIL Manual/unset()|unset()]].&lt;br /&gt;
&lt;br /&gt;
These are not the unit flags (&amp;lt;code&amp;gt;UNIT_FL_*&amp;lt;/code&amp;gt;, the [[Manual:DIL Manual/flags|flags]] field) every unit has.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Objects only. On a character, a room or null it fails.&lt;br /&gt;
* Stored as 8 bits: only the lowest eight flag bits can be set.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer can_dual(wpn : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (wpn.type != UNIT_ST_OBJ)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   if (isset(wpn.objectflags, OBJ_NO_DUAL) or isset(wpn.objectflags, OBJ_TWO_HANDS))&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (TRUE);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether a weapon may be used in a dual-wield, as the checks in commands.zon and skills.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/flags|flags]]&lt;br /&gt;
* [[Manual:DIL Manual/objecttype|objecttype]]&lt;br /&gt;
* [[Manual:DIL Manual/isset()|isset()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>