<?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%2Fsex</id>
	<title>Manual:DIL Manual/sex - 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%2Fsex"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/sex&amp;action=history"/>
	<updated>2026-11-22T21:48:00Z</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/sex&amp;diff=2940&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/sex&amp;diff=2940&amp;oldid=prev"/>
		<updated>2026-11-14T23:14:08Z</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;= sex =&lt;br /&gt;
'''Field''' (integer, read/write; units: characters).&lt;br /&gt;
&lt;br /&gt;
 ch.sex : integer&lt;br /&gt;
&lt;br /&gt;
The character's sex: &amp;lt;code&amp;gt;SEX_NEUTRAL&amp;lt;/code&amp;gt; (0), &amp;lt;code&amp;gt;SEX_MALE&amp;lt;/code&amp;gt; (1) or &amp;lt;code&amp;gt;SEX_FEMALE&amp;lt;/code&amp;gt; (2), from vme.h. A zone file sets it with &amp;lt;code&amp;gt;sex&amp;lt;/code&amp;gt; in an NPC; a player chooses it when the character is made. The pronouns &amp;lt;code&amp;gt;$1e&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;$1m&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$1s&amp;lt;/code&amp;gt; in [[Manual:DIL Manual/act()|act()]] follow it (he, him, his; she, her, her; it, it, its).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On an object, a room or null it fails.&lt;br /&gt;
* Stored as an 8-bit number; any value other than &amp;lt;code&amp;gt;SEX_NEUTRAL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;SEX_MALE&amp;lt;/code&amp;gt; gives the female pronouns. No access level is needed to assign it.&lt;br /&gt;
* A player's height, weight and lifespan come from the race and sex (races.def); after changing a player's sex, [[Manual:DIL Manual/reset race()|reset_race()]] rolls them again.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string sir_or_madam(ch : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (ch.sex == SEX_MALE)&lt;br /&gt;
      return (&amp;quot;sir&amp;quot;);&lt;br /&gt;
   if (ch.sex == SEX_FEMALE)&lt;br /&gt;
      return (&amp;quot;madam&amp;quot;);&lt;br /&gt;
   return (&amp;quot;friend&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Picks how a shopkeeper addresses a customer.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/race|race]]&lt;br /&gt;
* [[Manual:DIL Manual/act()|act()]]&lt;br /&gt;
* [[Manual:DIL Manual/reset race()|reset_race()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>