<?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%2Fmapy</id>
	<title>Manual:DIL Manual/mapy - 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%2Fmapy"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/mapy&amp;action=history"/>
	<updated>2026-11-22T23:46:41Z</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/mapy&amp;diff=2939&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/mapy&amp;diff=2939&amp;oldid=prev"/>
		<updated>2026-11-14T23:14:04Z</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;= mapy =&lt;br /&gt;
'''Field''' (integer, read-only; units: rooms).&lt;br /&gt;
&lt;br /&gt;
 room.mapy : integer&lt;br /&gt;
&lt;br /&gt;
The room's Y coordinate on the graphical map, set with &amp;lt;code&amp;gt;gmap(x, y)&amp;lt;/code&amp;gt; in the zone file; -1 when the room has none. The look command (baselook.zon) sends it to the web client as &amp;lt;code&amp;gt;map='x,y'&amp;lt;/code&amp;gt; in the room title.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On anything that is not a room it is -1, not a failure; a unitptr variable that is null gives -1 too.&lt;br /&gt;
* vmc accepts an assignment, but it never works: at run time the program logs &amp;quot;DIL SERIOUS: ... Type error in lvalue assignemt&amp;quot; and stops.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string map_attr(room : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (room.mapx == -1)&lt;br /&gt;
      return (&amp;quot;&amp;quot;);&lt;br /&gt;
   return (&amp;quot; map='&amp;quot; + itoa(room.mapx) + &amp;quot;,&amp;quot; + itoa(room.mapy) + &amp;quot;'&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Makes the map attribute of a room title, as baselook.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/mapx|mapx]]&lt;br /&gt;
* [[Manual:DIL Manual/movement|movement]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>