<?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%2Fmovement</id>
	<title>Manual:DIL Manual/movement - 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%2Fmovement"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/movement&amp;action=history"/>
	<updated>2026-11-23T21:22:02Z</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/movement&amp;diff=2937&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/movement&amp;diff=2937&amp;oldid=prev"/>
		<updated>2026-11-14T23:13:58Z</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;= movement =&lt;br /&gt;
'''Field''' (integer, read/write; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 room.movement : integer&lt;br /&gt;
&lt;br /&gt;
The room's terrain, set with &amp;lt;code&amp;gt;movement&amp;lt;/code&amp;gt; in the zone file: one of the &amp;lt;code&amp;gt;SECT_&amp;lt;/code&amp;gt; constants in vme.h, &amp;lt;code&amp;gt;SECT_INSIDE&amp;lt;/code&amp;gt; (0) to &amp;lt;code&amp;gt;SECT_ICE&amp;lt;/code&amp;gt; (13). It decides how much endurance moving costs (&amp;lt;code&amp;gt;movementloss&amp;lt;/code&amp;gt; in basemove.zon), the cost of a path between terrains (&amp;lt;code&amp;gt;vme/etc/sector.def&amp;lt;/code&amp;gt;) and whether you need to swim (&amp;lt;code&amp;gt;SECT_WATER_SWIM&amp;lt;/code&amp;gt;) or need a boat (&amp;lt;code&amp;gt;SECT_WATER_SAIL&amp;lt;/code&amp;gt;). Some spells in spells.zon also test it, for example for &amp;lt;code&amp;gt;SECT_UNDER_WATER&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. Keep to the &amp;lt;code&amp;gt;SECT_&amp;lt;/code&amp;gt; values: the server uses it as an index into its movement tables without checking it. 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 needs_boat(from : unitptr, dir : integer);&lt;br /&gt;
var&lt;br /&gt;
   dest : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   dest := from.exit_to[dir];&lt;br /&gt;
   if (dest == null)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return ((from.movement == SECT_WATER_SAIL) or (dest.movement == SECT_WATER_SAIL));&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tells whether going through an exit means sailing, as the move check in basemove.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/exit to|exit_to]]&lt;br /&gt;
* [[Manual:DIL Manual/roomflags|roomflags]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>