<?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%2Fmudmonth</id>
	<title>Manual:DIL Manual/mudmonth - 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%2Fmudmonth"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/mudmonth&amp;action=history"/>
	<updated>2026-11-23T20:59:29Z</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/mudmonth&amp;diff=3029&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/mudmonth&amp;diff=3029&amp;oldid=prev"/>
		<updated>2026-11-14T23:19: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;= mudmonth =&lt;br /&gt;
'''Variable''' (integer, read-only).&lt;br /&gt;
&lt;br /&gt;
 mudmonth : integer&lt;br /&gt;
&lt;br /&gt;
The month of the mud year, 0 to 8. A mud month is 14 mud days, 28 real hours.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The seasons, as the weather uses them (weather.cpp): months 0 to 2 are winter, 3 and 4 spring, 5 and 6 summer, 7 and 8 autumn. The air pressure of every zone drifts toward a level set by the season: lowest in winter (25 below the zone's base), then autumn, spring, and highest in summer (20 above), so winter brings the most rain and summer the clearest skies.&lt;br /&gt;
* The &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt; command (commands.zon) names the months: Month of Winter, of the Winter Wolf, of the Frost Giant, of the Spring, of Futility, of the Sun, of the Heat, of the Long Shadows, of the Ancient Darkness. A list like that, indexed with &amp;lt;code&amp;gt;mlist.[mudmonth]&amp;lt;/code&amp;gt;, gives the name.&lt;br /&gt;
* The calendar (vme.h): an hour is 5 real minutes (&amp;lt;code&amp;gt;SECS_PER_MUD_HOUR&amp;lt;/code&amp;gt;), a day 24 hours (2 real hours), a month 14 days (&amp;lt;code&amp;gt;MUD_MONTH&amp;lt;/code&amp;gt;; the comment beside it in vme.h still says 21), a year 9 months (&amp;lt;code&amp;gt;MUD_YEAR&amp;lt;/code&amp;gt;, 10.5 real days). The count starts on 11 August 1990.&lt;br /&gt;
* The mud clock is the real clock at boot plus the game ticks since (&amp;lt;code&amp;gt;mud_date&amp;lt;/code&amp;gt; in weather.cpp). Normally it keeps pace with real time; with &amp;lt;code&amp;gt;vme -w&amp;lt;/code&amp;gt;, or after a god's &amp;lt;code&amp;gt;wtimewarp&amp;lt;/code&amp;gt;, it runs ahead, so code that waits for a time of day can be tried quickly.&lt;br /&gt;
* Written without brackets: &amp;lt;code&amp;gt;mudmonth()&amp;lt;/code&amp;gt; doesn't compile. It can't be assigned.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string season();&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (mudmonth &amp;lt;= 2)&lt;br /&gt;
      return (&amp;quot;winter&amp;quot;);&lt;br /&gt;
   if (mudmonth &amp;lt;= 4)&lt;br /&gt;
      return (&amp;quot;spring&amp;quot;);&lt;br /&gt;
   if (mudmonth &amp;lt;= 6)&lt;br /&gt;
      return (&amp;quot;summer&amp;quot;);&lt;br /&gt;
   return (&amp;quot;autumn&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives the season's name, with the months the weather uses.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/mudhour|mudhour]]&lt;br /&gt;
* [[Manual:DIL Manual/mudday|mudday]]&lt;br /&gt;
* [[Manual:DIL Manual/mudyear|mudyear]]&lt;br /&gt;
* [[Manual:DIL Manual/realtime|realtime]]&lt;br /&gt;
* [[Manual:DIL Manual/weather|weather]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>