<?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%2Froomflags</id>
	<title>Manual:DIL Manual/roomflags - 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%2Froomflags"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/roomflags&amp;action=history"/>
	<updated>2026-11-22T23:36:15Z</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/roomflags&amp;diff=2936&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/roomflags&amp;diff=2936&amp;oldid=prev"/>
		<updated>2026-11-14T23:13:55Z</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;= roomflags =&lt;br /&gt;
'''Field''' (integer, read/write; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 room.roomflags : integer&lt;br /&gt;
&lt;br /&gt;
Bit flags of a room, set with &amp;lt;code&amp;gt;romflags&amp;lt;/code&amp;gt; in the zone file. The server saves them with the room but nothing in it reads them: no room flag constants are defined in vme.h, and no zone in this repository tests them. The &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; command (set.zon) can change them. Most of what a room's flags might be expected to do (no teleport, no weather, no mobiles, ...) is in the unit [[Manual:DIL Manual/flags|flags]] (&amp;lt;code&amp;gt;UNIT_FL_...&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On anything that is not a room, and on null, it fails.&lt;br /&gt;
* Stored as an unsigned 8-bit number: values outside 0 to 255 wrap around. No access level is needed to assign it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer has_roomflag(room : unitptr, bit : integer);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (room.type != UNIT_ST_ROOM)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (isset(room.roomflags, bit));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tests a bit of a room's flags, for a zone that gives the bits a meaning of its own.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/flags|flags]]&lt;br /&gt;
* [[Manual:DIL Manual/movement|movement]]&lt;br /&gt;
* [[Manual:DIL Manual/isset()|isset()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>