<?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%2Fheight</id>
	<title>Manual:DIL Manual/height - 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%2Fheight"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/height&amp;action=history"/>
	<updated>2026-11-23T21:41:37Z</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/height&amp;diff=2950&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/height&amp;diff=2950&amp;oldid=prev"/>
		<updated>2026-11-14T23:14:38Z</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;= height =&lt;br /&gt;
'''Field''' (integer, read/write; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.height : integer&lt;br /&gt;
&lt;br /&gt;
The size of a unit, set with &amp;lt;code&amp;gt;height&amp;lt;/code&amp;gt; in the zone file. For a character it is the height in centimetres; a player gets it from the race and sex in &amp;lt;code&amp;gt;vme/etc/races.def&amp;lt;/code&amp;gt; (a human 152 + 2d25). For armour and clothes it is the size of the wearer they were made for: the wear command in commands.zon refuses body armour, helmets, leggings and the like that are too small or too large, and [[Manual:DIL Manual/fits()|fits()]] gives the same answer. Rooms and other objects have the field too.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On null it fails.&lt;br /&gt;
* Stored as an unsigned 16-bit number: values outside 0 to 65535 wrap around. No access level is needed to assign it.&lt;br /&gt;
* Guild masters who hand out equipment set its height to the player's, so that it fits.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin give_fitted(pc : unitptr, sym : string);&lt;br /&gt;
var&lt;br /&gt;
   item : unitptr;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   item := load(sym);&lt;br /&gt;
   if (item == null)&lt;br /&gt;
      return;&lt;br /&gt;
   item.height := pc.height;&lt;br /&gt;
   link(item, pc);&lt;br /&gt;
   return;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Loads an item made to fit a player and gives it to them, as the guild masters in assassin.zon and knight.zon do.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/weight|weight]]&lt;br /&gt;
* [[Manual:DIL Manual/baseweight|baseweight]]&lt;br /&gt;
* [[Manual:DIL Manual/fits()|fits()]]&lt;br /&gt;
* [[Manual:DIL Manual/reset race()|reset_race()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>