<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chinchou</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chinchou"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Chinchou"/>
	<updated>2026-04-17T00:42:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Chinchou&amp;diff=223928</id>
		<title>User talk:Chinchou</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Chinchou&amp;diff=223928"/>
		<updated>2016-03-04T01:33:04Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: /* Colon Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the Dwarf Fortress wiki! We're always glad to have another editor fixing things around here.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:07, 3 March 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Colon Usage ==&lt;br /&gt;
&lt;br /&gt;
Regarding this sentence from [[DF2014:Adamantine]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Adamantine has extreme [[material science|material properties]]: it is nigh weightless (weighing about as much as [[wikipedia:Cork (material)|cork]]), extremely strong, and razor sharp.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The characteristics following the colon describe/explain the extreme material properties stated in the first part of the sentence. It is not necessary to separate those two closely-related thoughts into two sentences. Wikipedia has [https://en.wikipedia.org/wiki/Colon_(punctuation) more information on proper colon usage].&lt;br /&gt;
&lt;br /&gt;
It is also unnecessary to double-space after a period. That &amp;quot;rule&amp;quot; is an unfortunate hold-over from typewriters; modern computers can properly space sentences automatically. In fact, the wiki software completely disregards extra spaces.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:07, 3 March 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The statement &amp;quot;modern computers can properly space sentences automatically&amp;quot; is misleading.  While they *can* automatically correct spacing, such a task relies on scripting which is not common.  Saying that full stops and their associated pauses/spacing are &amp;quot;an unfortunate hold-over from typewriters&amp;quot; is misinformation.  There are two issues with the latter quoted statement:&amp;lt;br&amp;gt;&lt;br /&gt;
- First, it originated from handwriting and was carried over to typewriters.&amp;lt;br&amp;gt;&lt;br /&gt;
- Second, the spacing is indicative of whether there is a full stop or a half stop.  Incorrect spacing(such as leaving one space after a full stop) leads to writing that is, at best, difficult to read.  The only people I have seen who do not pause after speaking a sentence are hyper-active children - if you've listened to someone who speaks like that, you likely know that it can be quite difficult to understand them.  The same holds true in written and typed messages - especially when capitalisation is ignored.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As for colon usage, your statement regarding breaks in ideas is irrelevant.  &amp;lt;strong&amp;gt;Nowhere did I indicate that there was a break in the idea, nor did I ever indicate that it should be split into two sentences.&amp;lt;/strong&amp;gt;  Once again, full stops are followed by a capitalised letter, while half stops are not.  Capitalisation is the issue, not whether there is a break in the idea.  Capitalisation and spacing are important for any written or typed message - withoutthemwewillendupwithmessagesthatalllooklikethiswhichareverydifficulttoreadletaloneunderstandduetothelackofpunctuationspacesandcapitalisationandisinnowayproperenglish.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As for the wiki ignoring full-stop spacing...  The wiki also ignores some line breaks, forcing me to use HTML break tags in this very message.  &amp;quot;A piece of software does it&amp;quot; does not equate to &amp;quot;it is universally and irrefutably correct&amp;quot;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As a final note:  If there is a reference for a common dialect on this specific wiki, a link to it would be appreciated.  Despite a cursory search, I found no such reference.  Without such a reference, I am left to assume that I should use my local dialect for all contributions.  [[User:Chinchou|Chinchou]] ([[User talk:Chinchou|talk]]) 01:30, 4 March 2016 (UTC)&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Chinchou&amp;diff=223927</id>
		<title>User talk:Chinchou</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Chinchou&amp;diff=223927"/>
		<updated>2016-03-04T01:30:43Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: /* Colon Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the Dwarf Fortress wiki! We're always glad to have another editor fixing things around here.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:07, 3 March 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Colon Usage ==&lt;br /&gt;
&lt;br /&gt;
Regarding this sentence from [[DF2014:Adamantine]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Adamantine has extreme [[material science|material properties]]: it is nigh weightless (weighing about as much as [[wikipedia:Cork (material)|cork]]), extremely strong, and razor sharp.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The characteristics following the colon describe/explain the extreme material properties stated in the first part of the sentence. It is not necessary to separate those two closely-related thoughts into two sentences. Wikipedia has [https://en.wikipedia.org/wiki/Colon_(punctuation) more information on proper colon usage].&lt;br /&gt;
&lt;br /&gt;
It is also unnecessary to double-space after a period. That &amp;quot;rule&amp;quot; is an unfortunate hold-over from typewriters; modern computers can properly space sentences automatically. In fact, the wiki software completely disregards extra spaces.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:07, 3 March 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The statement &amp;quot;modern computers can properly space sentences automatically&amp;quot; is misleading.  While they *can* automatically correct spacing, such a task relies on scripting which is not common.  Saying that full stops and their associated pauses/spacing are &amp;quot;an unfortunate hold-over from typewriters&amp;quot; is misinformation.  There are two issues with the latter quoted statement:&amp;lt;br&amp;gt;&lt;br /&gt;
- First, it originated from handwriting and was carried over to typewriters.&amp;lt;br&amp;gt;&lt;br /&gt;
- Second, the spacing is indicative of whether there is a full stop or a half stop.  Incorrect spacing(such as leaving one space after a full stop) leads to writing that is, at best, difficult to read.  The only people I have seen who do not pause after speaking a sentence are hyper-active children - if you've listened to someone who speaks like that, you likely know that it can be quite difficult to understand them.  The same holds true in written and typed messages - especially when capitalisation is ignored.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As for colon usage, your statement regarding breaks in ideas is irrelevant.  &amp;lt;strong&amp;gt;Nowhere did I indicate that there was a break in the idea, nor did I ever indicate that it should be split into two sentences.&amp;lt;/strong&amp;gt;  Once again, full stops are followed by a capitalised letter, while half stops are not.  Capitalisation is the issue, not whether there is a break in the idea.  Capitalisation and spacing are important for any written or typed message - withoutthemwewillendupwithmessagesthatalllooklikethiswhichareverydifficulttoreadletaloneunderstandduetothelackofpunctuationspacesandcapitalisationandisinnowayproperenglish.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As for the wiki ignoring full-stop spacing...  The wiki also ignores some line breaks, forcing me to use HTML break tags in this very message.  &amp;quot;A piece of software does it&amp;quot; does not equate to &amp;quot;it is universally and irrefutably correct&amp;quot;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
As a final note:  If there is a reference for a common dialect on this specific wiki, a link to it would be appreciated.  Without such a reference, I am left to assume that I should use my local dialect for all contributions.  [[User:Chinchou|Chinchou]] ([[User talk:Chinchou|talk]]) 01:30, 4 March 2016 (UTC)&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Adamantine&amp;diff=223906</id>
		<title>Adamantine</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Adamantine&amp;diff=223906"/>
		<updated>2016-03-03T10:50:12Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Colons and periods are full stops, not half stops.   (Punctuation corrections.)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Quality|Masterwork|23:22, 27 April 2013 (UTC)}}&lt;br /&gt;
{{Metal|name=Adamantine|color=3:3:1&lt;br /&gt;
|ore=&lt;br /&gt;
* [[Raw adamantine]]&lt;br /&gt;
|properties=&lt;br /&gt;
* [[Material value]] 300&lt;br /&gt;
|uses=&lt;br /&gt;
* [[Weapon|Melee Weapons]]&lt;br /&gt;
* [[Crossbow]]s&lt;br /&gt;
* [[Bolt]]s&lt;br /&gt;
* [[Pick]]s&lt;br /&gt;
* [[Armor]]&lt;br /&gt;
* [[Anvil]]s&lt;br /&gt;
* [[Metalsmith's forge|Metal crafting]]&lt;br /&gt;
* [[Clothing]]&lt;br /&gt;
|wiki=Adamant}}&lt;br /&gt;
{{Translation&lt;br /&gt;
| dwarven = ebsas&lt;br /&gt;
| elvish  = lire&lt;br /&gt;
| goblin  = kumo&lt;br /&gt;
| human   = medi&lt;br /&gt;
}}&lt;br /&gt;
{{av}}{{Minorspoiler}}&lt;br /&gt;
&lt;br /&gt;
'''Adamantine''' is a rare, high-value [[metal]] which is impossibly lightweight, strong, and sharp. Adamantine is refined from raw adamantine, and can be woven into [[cloth]] or [[smelter|smelted]] into wafers, useful for making almost any item in the game. [[Armor]] and edged-[[weapon]]s made from adamantine are absurdly valuable and wonderfully effective.&lt;br /&gt;
&lt;br /&gt;
For more information on its whereabouts and other [[Fun]] information, see '''[[raw adamantine]]'''.&lt;br /&gt;
&lt;br /&gt;
== Processing ==&lt;br /&gt;
Unlike what a player would expect, one does not simply make adamantine wafers directly from raw adamantine. You must first extract adamantine strands from the raw adamantine, and those are then processed into wafers or cloth.&lt;br /&gt;
&lt;br /&gt;
Adamantine strands are extracted from [[raw adamantine]] at a [[craftsdwarf's workshop]] by a [[strand extractor]]. Strand extraction is an extremely tedious process for an unskilled laborer, making it potentially worthwhile to focus extraction experience on one or two individual dwarves. Extracted strands are considered a special metallic form of [[thread]], and after extraction can either be woven into adamantine cloth at a [[loom]] or smelted into adamantine [[bar|wafer]]s at a [[smelter]]; thankfully these tasks are performed just as quickly as other weaving and smelting jobs.&lt;br /&gt;
&lt;br /&gt;
Given this extra step of extraction before the smelting phase, most players will want to build additional craftsdwarf's workshops and stockpiles near the smelters and forges. Note that the strands of adamantine are stored in cloth/thread stockpiles.   When processing adamantine it is a good idea to smelt the strands into wafers as fast as possible, as your medical dwarves may use your valuable adamantine strands for [[suturing]] wounds, since to them, it's just another type of [[thread]].&lt;br /&gt;
&lt;br /&gt;
Adamantine cloth is used to make ultra high-value clothing, but it is no more resistant to [[wear]] than less exotic materials. Adamantine wafers are functionally identical to metal [[bar]]s and can be used to forge the full range of metal goods, but are far smaller in size, requiring about three times as many units of material per unit as regular metal bars:&lt;br /&gt;
* [[weapon token|Weapons]], [[armor token|armor/clothing]], and [[trap component token|trap components]] require the item's MATERIAL_SIZE in wafers/units of cloth&lt;br /&gt;
* Most types of furniture ([[door]], [[floodgate]], [[throne]], [[coffin]], [[table]], [[chest]], [[bin]], [[armor stand]], [[weapon rack]], [[cabinet]], [[statue]], [[anvil]], [[barrel]], [[pipe section]], [[hatch cover]], [[grate]], [[quern]], [[millstone]], and [[slab]]) require 9 wafers.&lt;br /&gt;
* [[Cage]]s, [[minecart]]s and [[wheelbarrow]]s require 6 wafers.&lt;br /&gt;
* [[Block]]s, [[chain]]s, and [[Siege engine|ballista]] arrowheads require 4 wafers.&lt;br /&gt;
* [[Animal trap]]s, [[bucket]]s, [[mechanism]]s, and [[crutch]]es require 3 wafers.&lt;br /&gt;
* [[Backpack]]s and [[quiver]]s require 2 units of cloth, and [[splint]]s require 2 wafers.&lt;br /&gt;
* All other items require 1 wafer.&lt;br /&gt;
* [[Strange mood]]s currently require 1 wafer, regardless of the end product.&lt;br /&gt;
&lt;br /&gt;
== Application ==&lt;br /&gt;
Adamantine has extreme [[material science|material properties]]:  It is nigh weightless (weighing about as much as [[wikipedia:Cork (material)|cork]]), extremely strong, and razor sharp.  These properties make it ideal for edged [[weapon]]s and [[armor]].  These properties likewise make it near useless for blunt weapons, which will simply bounce off of foes; considering the lethality of [[hammerer]] and [[fortress guard]] beatings, this may be the point.  [[Armor]] made of adamantine provides unmatched protection against slashing and piercing attacks, but blunt attacks and ranged weapons have high armor penetration capacity, so a full kit of adamantine armor is nonetheless not a recipe for combat invulnerability.&lt;br /&gt;
&lt;br /&gt;
Because the metal's material properties are irrelevant in other applications and because it's so rare and hard to produce, using adamantine for other things is generally a waste.  Adamantine statues are ten times as valuable as [[gold]] ones, but are prohibitively expensive to produce, requiring nine wafers per statue.  Some of the highest values per wafer for a normal adamantine product can be realised by forging adamantine [[flask]]s or [[trap component|large serrated discs]].  However, by the time you have adamantine available, you're likely not to be in serious need of such valuable export products.  By far, the most [[wealth]] can be generated by adding adamantine to [[artifact]]s -- a single stone, wafer, block or bolt of cloth can add hundreds of thousands of dwarfbucks in value, making your fortress the envy of all the [[forgotten beast|neighbors]]. &lt;br /&gt;
&lt;br /&gt;
{{gamedata}}&lt;br /&gt;
{{metals}}&lt;br /&gt;
&lt;br /&gt;
{{spoiler}}&lt;br /&gt;
&lt;br /&gt;
Unfortunately, breaching any of the tubular veins leads to the [[Hell|HFS]], for lots of [[Losing|Fun]].&lt;br /&gt;
&lt;br /&gt;
==Origins of Adamantine and Slade==&lt;br /&gt;
{{D for Dwarf}}&lt;br /&gt;
Back in the mists of time, the Gods decided to create the World. To do so they had to find a way to heat it in the cold voids of space. Demonkind had already forged their own world out of the vile substance [[Slade]], a stone anathema to all creation and only able to be worked through the vile rituals they had created, for slade was truly &amp;quot;dead&amp;quot; stone, with no life in it at all.&lt;br /&gt;
&lt;br /&gt;
Deciding both to imprison their greatest enemies and to create a home for their creations, the Gods poured into the skies of the Demons' world &amp;quot;living&amp;quot; stone (known to mortals as [[semi-molten rock]] - rock burning hot with the fresh life of Creation). The Gods knew that if it were not constantly heated, this living rock would cool, and yet the Demons, fools that they were, constantly attacked the living rock, not realizing that their attacks simply heated the rock again and again, keeping it alive. Unfortunately, as the Gods began to pour more and more of the rock onto their creation, they found it quickly lost its life when removed too far from the Demons. It would only remelt once it touched the living rock, creating vast seas of magma that heated the tunnels above. Worse, the living rock itself had been disturbed by this process, creating gaping holes through which the Demons escaped, killing and maiming the first creations of the Gods, warping those they could find into the terrible Forgotten Beasts, leaving the [[Titan]]s safe on the surface.&lt;br /&gt;
&lt;br /&gt;
Knowing this state of affairs could not last if their weaker creations, the first mortals, were to survive, the Gods created a new substance, imbued with their power: Adamantine. The beautiful aqua-colored ore was poured into the holes, sealing the entrances that the living rock could no longer seal, preventing the Demons from escaping, for its power totally repelled Demonkind.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, as time passed and the first mortals began to carve their civilization from both the surface and the underworld, they discovered the vast shafts of this amazing substance and began to mine it, instantly realizing its divine potency. In doing so, they removed the great barriers the gods had placed in order to keep the Demons sealed. The Demons rose up, slaughtering thousands and escaping into the World, often rising to lead mortal civilizations, such as that of the Goblins. Upon these sites they raised towers carved from the vile Slade that only they could work. Brave adventurers and champions of the Gods forged special swords made from the divine Adamantine and ventured into these dark places to seal the Demons within hell once more. Leaving their swords buried in these places, those who survived swore to defend them for all eternity, binding themselves with oaths of such might that they surpassed death itself. They remain, even today, as zombies and skeletons, driven by their undying thought &amp;quot;none must take the sword!&amp;quot; and nothing more. These undead are totally obsessed with their duty to defend the ancient demonic structures from all interlopers and have been the death of many an unwary explorer.&lt;br /&gt;
&lt;br /&gt;
In retrospect, all this could probably have been avoided if the Gods had bothered to make their all-powerful metal capable of withstanding the swing of a copper pick.&lt;br /&gt;
&lt;br /&gt;
==The Great Adamantine Space Elevator==&lt;br /&gt;
{{D for Dwarf}}&lt;br /&gt;
[http://www.bay12forums.com/smf/index.php?topic=61507.0 Source]&lt;br /&gt;
&lt;br /&gt;
In a great fluke, a new world was created in the midst of Armok shaving. No one quite understands why this happened, but the whisker of the holy one landed vertically. The material can only be described as a super adamantine. It is over 2000 z-levels high. And the map continues on. &lt;br /&gt;
&lt;br /&gt;
Year after year, the dwarves of [SUBJECT CIVILIZATION HERE] send an expedition out into the world in order to ascertain the fate of last year's expedition.  It has long-since been forgotten exactly when this series of fruitless expeditions started, but the dwarves are a sort that demand an answer.&lt;br /&gt;
&lt;br /&gt;
It happens year after year, when they head northeast to the ominous shrubland that has been known only in name: &amp;quot;The Hill of Spit.&amp;quot;  The hill lies beyond a ruined elven settlement, a stone's throw away from a brook that has come to be known as &amp;quot;Troublemysteries.&amp;quot;  By the time they arrive, it is already too late.&lt;br /&gt;
&lt;br /&gt;
They embark year after year, and there they stand, awe-struck with their implements of dwarven duty left undisturbed at their feet.  All about them are the decrepit wagons and bleached bones of those who heralded their grim arrival -- barrels filled with rot and worm, picks covered in rust and dust.  There they stand with their eyes open wide and jaws agape, and they stare upward into the dome of the heavens.  What they see is beyond the ken of mortal beard.  It reaches from the ground higher than any bird has flown; higher than any cloud has drifted; higher than any man, dwarf, beast or monster has ever or will ever ascend, twisting and writhing upward in ways that can only transfix the gaze of unwary observers in their fundamentally impossible geometries -- a spiraling needle of pure adamantine, ascending beyond the vanishing-point into the sky.&lt;br /&gt;
&lt;br /&gt;
They stand there, motionless and breathless, and wait only for time to wear them down into the dust of the earth from whence they came, leaving that siren spire standing amidst a graveyard of wagons and barrels to call more of their bearded kind to an emaciated doom.&lt;br /&gt;
&lt;br /&gt;
Another year, another expedition unheard of, another question unanswered, another expedition prepared.&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Ethic&amp;diff=223847</id>
		<title>Ethic</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Ethic&amp;diff=223847"/>
		<updated>2016-03-01T20:12:26Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: &amp;quot;Eachother&amp;quot; is not a word.  Assuming &amp;quot;each other&amp;quot; was meant and correcting accordingly.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Superior|15:42, 31 July 2014 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
'''Ethic''' tags are used in the [[Entity token|entity raw files]] to determine how different civilizations feel about various issues. Relationships between civilizations are based on their ethic responses in relation to each other; similar ethics result in friendship, while conflicting ethics result in animosity. Strongly conflicting ethics often trigger [[war]]s during [[world generation]].&lt;br /&gt;
&lt;br /&gt;
In practice, this generally causes [[Elf|elves]] to declare war on everybody else over killing plants and making trophies, and everybody else to declare war on the elves over the devouring of sapient beings.&lt;br /&gt;
&lt;br /&gt;
Some ethics also affect [[fortress mode]] features such as [[justice]] or [[trading]]. In [[adventurer mode]], ethics can affect the [[level of conflict]] (lethal, or no quarter). During [[world generation]], ethics also affect how the entity treats its kills, such as devouring them or making trophies out of them.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In the [[raw file]]s for entities, ethics appear as follows:&lt;br /&gt;
 [ETHIC:LYING:PERSONAL_MATTER]&lt;br /&gt;
&lt;br /&gt;
This means that the entity will treat lying as a personal matter. More technically, the value of its LYING ethic is set to PERSONAL_MATTER.&lt;br /&gt;
&lt;br /&gt;
== Ethic types ==&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
!Token&lt;br /&gt;
!Extra Information&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|ASSAULT}}&lt;br /&gt;
| The result of a tantruming citizen attacking another in fortress mode. Other effects unknown.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|EAT_SAPIENT_KILL}}&lt;br /&gt;
| This determines if the race will sometimes devour dead enemy combatants of their own race.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|EAT_SAPIENT_OTHER}}&lt;br /&gt;
| This also determines whatever or not a race is willing to butcher other sapients. &lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|KILL_ANIMAL}}&lt;br /&gt;
| A response between MISGUIDED and UNTHINKABLE (see below) causes the entity to refuse animal products in trade &amp;amp;mdash; namely, [[material token|materials]] with [IMPLIES_ANIMAL_KILL].&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|KILL_ENEMY}}&lt;br /&gt;
| If REQUIRED, all lethal combat with an enemy who is an enemy of the whole entity will put the creature in [[no quarter]] mode.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|KILL_ENTITY_MEMBER}}&lt;br /&gt;
| If REQUIRED, all lethal combat with an enemy in the same entity will put the creature in [[no quarter]] mode.  Determines whether and how often characters will be murdered. &lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|KILL_NEUTRAL}}&lt;br /&gt;
| If REQUIRED, all lethal combat with an enemy who is neutral with the entity will put the creature in [[no quarter]] mode.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|KILL_PLANT}}&lt;br /&gt;
| This determines a race's position towards wood as well &amp;amp;mdash; a response between MISGUIDED and UNTHINKABLE (see below) causes the entity to refuse wooden objects (except for &amp;quot;grown&amp;quot; wooden objects) in trade, and it also prohibits them from bringing caravan [[wagon]]s.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|LYING}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|MAKE_TROPHY_ANIMAL}}&lt;br /&gt;
| This determines whether animal kills in world-gen will lead to characters with trophies.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|MAKE_TROPHY_SAME_RACE}}&lt;br /&gt;
| This determines whether kills of own race in world-gen will lead to characters with trophies.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|MAKE_TROPHY_SAPIENT}}&lt;br /&gt;
| This determines whether kills of other sapients in world-gen will lead to characters with trophies.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|OATH_BREAKING}}&lt;br /&gt;
| The result of a citizen violating noble mandates in fortress mode. Other effects unknown.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|SLAVERY}}&lt;br /&gt;
|Civilization will enslave defeated enemies and bring them back to their site.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|THEFT}}&lt;br /&gt;
| This determines whether the race will try to steal goods.&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TORTURE_ANIMALS}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TORTURE_AS_EXAMPLE}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TORTURE_FOR_FUN}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TORTURE_FOR_INFORMATION}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TREASON}}&lt;br /&gt;
| Protects position holders from being murdered like everyone else. Reason that demon overlords of goblins manage to live for centuries despite goblins killing each other being a personal matter.  &lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|TRESPASSING}}&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| {{text anchor|VANDALISM}}&lt;br /&gt;
| The result of a tantruming citizen breaking furniture in fortress mode. Other effects unknown.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Ethic values==&lt;br /&gt;
As used internally (see below), roughly in order of acceptability:&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Num !! Token&lt;br /&gt;
|-&lt;br /&gt;
| 0 || {{text anchor|NOT_APPLICABLE}}&lt;br /&gt;
|-&lt;br /&gt;
| 1 || {{text anchor|ACCEPTABLE}}&lt;br /&gt;
|-&lt;br /&gt;
| 2 || {{text anchor|PERSONAL_MATTER}}&lt;br /&gt;
|-&lt;br /&gt;
| 3 || {{text anchor|JUSTIFIED_IF_NO_REPERCUSSIONS}}&lt;br /&gt;
|-&lt;br /&gt;
| 4 || {{text anchor|JUSTIFIED_IF_GOOD_REASON}}&lt;br /&gt;
|-&lt;br /&gt;
| 5 || {{text anchor|JUSTIFIED_IF_EXTREME_REASON}}&lt;br /&gt;
|-&lt;br /&gt;
| 6 || {{text anchor|JUSTIFIED_IF_SELF_DEFENSE}}&lt;br /&gt;
|-&lt;br /&gt;
| 7 || {{text anchor|ONLY_IF_SANCTIONED}}&lt;br /&gt;
|-&lt;br /&gt;
| 8 || {{text anchor|MISGUIDED}}&lt;br /&gt;
|-&lt;br /&gt;
| 9 || {{text anchor|SHUN}}&lt;br /&gt;
|-&lt;br /&gt;
| 10 || {{text anchor|APPALLING}}&lt;br /&gt;
|-&lt;br /&gt;
| 11 || {{text anchor|PUNISH_REPRIMAND}}&lt;br /&gt;
|-&lt;br /&gt;
| 12 || {{text anchor|PUNISH_SERIOUS}}&lt;br /&gt;
|-&lt;br /&gt;
| 13 || {{text anchor|PUNISH_EXILE}}&lt;br /&gt;
|-&lt;br /&gt;
| 14 || {{text anchor|PUNISH_CAPITAL}}&lt;br /&gt;
|-&lt;br /&gt;
| 15 || {{text anchor|UNTHINKABLE}}&lt;br /&gt;
|-&lt;br /&gt;
| 16 || {{text anchor|REQUIRED}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Ethic value numbers in relation to each other==&lt;br /&gt;
The following table describes how entities respond to other cultures, with the observer on the vertical axis and their target on the horizontal axis.&lt;br /&gt;
If an entity's accumulated animosity towards another passes a certain threshold (determined by ruler's personality) then it will run a risk-assessment check. If passed, this will lead to a declaration of war.&lt;br /&gt;
&lt;br /&gt;
In general, entities react much more strongly to actions that violate their taboos than to the outlawing of their customs in other civilisations.&lt;br /&gt;
For example, Civ A finds slavery Acceptable, but Civ B considers it a Capital Offence.&lt;br /&gt;
* Civ A will consider Civ B most unreasonable (&amp;amp;minus;5) for executing people over such a non-issue.&lt;br /&gt;
* Civ B will be shocked and disgusted (&amp;amp;minus;15) that Civ A engages in such a debased activity.&lt;br /&gt;
* The end result is mutual negativity. However, Civ B is 3&amp;amp;times; ''more'' offended, and much more likely to go to war over the issue &amp;amp;mdash; assuming, of course, they think they have a chance of winning.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! rowspan=2 colspan=2 | &amp;amp;nbsp;&lt;br /&gt;
! colspan=16  | TARGET&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
!| Accept. || Personal || Reperc. || Good || Extreme || Self-Def. || Sanctioned || Misguided || Shun || Appalling || Reprimand || Serious || Exile || Capital || Unthinkable || Required&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=16 | {{rotate|OBSERVER}} &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
! Acceptable || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−2}} || {{tc|blue|+1}}&lt;br /&gt;
|-&lt;br /&gt;
! Personal || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−2}} || {{tc|blue|+1}}&lt;br /&gt;
|-&lt;br /&gt;
! No Reperc. || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−2}} || {{tc|blue|+1}}&lt;br /&gt;
|-&lt;br /&gt;
! Good Reas. || 0 || 0 || 0 || {{tc|blue|+2}} || {{tc|blue|+1}} || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || 0&lt;br /&gt;
|-&lt;br /&gt;
! Extreme Rs. || {{tc|red|−1}} || {{tc|red|−1}} || 0 || {{tc|blue|+1}} || {{tc|blue|+2}} || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}}&lt;br /&gt;
|-&lt;br /&gt;
! Self-Defence || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−1}} || 0 || {{tc|blue|+1}} || {{tc|blue|+2}} || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−2}}&lt;br /&gt;
|-&lt;br /&gt;
! Sanctioned || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−1}} || 0 || {{tc|blue|+1}} || 0 || {{tc|blue|+2}} || 0 || 0 || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−2}}&lt;br /&gt;
|-&lt;br /&gt;
! Misguided || {{tc|red|−1}} || {{tc|red|−1}} || 0 || 0 || 0 || 0 || 0 || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || {{tc|red|−1}} || {{tc|blue|+1}} || {{tc|red|−1}}&lt;br /&gt;
|-&lt;br /&gt;
! Shun || {{tc|red|−1}} || {{tc|red|−1}} || 0 || 0 || 0 || 0 || 0 || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || {{tc|red|−1}} || {{tc|blue|+1}} || {{tc|red|−1}}&lt;br /&gt;
|-&lt;br /&gt;
! Appalling || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−3}} || {{tc|red|−2}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || {{tc|blue|+1}} || {{tc|red|−5}}&lt;br /&gt;
|-&lt;br /&gt;
! Reprimand || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−3}} || {{tc|red|−2}} || {{tc|red|−1}} || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || {{tc|blue|+1}} || {{tc|red|−5}}&lt;br /&gt;
|-&lt;br /&gt;
! Serious || {{tc|red|−10}} || {{tc|red|−10}} || {{tc|red|−7}} || {{tc|red|−3}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || 0 || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|red|−10}}&lt;br /&gt;
|-&lt;br /&gt;
! Exile || {{tc|red|−10}} || {{tc|red|−10}} || {{tc|red|−7}} || {{tc|red|−3}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || 0 || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|red|−10}}&lt;br /&gt;
|-&lt;br /&gt;
! Capital || {{tc|red|−15}} || {{tc|red|−15}} || {{tc|red|−10}} || {{tc|red|−5}} || {{tc|red|−3}} || {{tc|red|−3}} || {{tc|red|−5}} || 0 || 0 || {{tc|blue|+1}} || 0 || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|blue|+1}} || {{tc|red|−15}}&lt;br /&gt;
|-&lt;br /&gt;
! Unthinkable || {{tc|red|−15}} || {{tc|red|−15}} || {{tc|red|−10}} || {{tc|red|−5}} || {{tc|red|−3}} || {{tc|red|−3}} || {{tc|red|−5}} || 0 || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+2}} || {{tc|red|−15}}&lt;br /&gt;
|-&lt;br /&gt;
! Required || {{tc|blue|+1}} || {{tc|blue|+1}} || {{tc|blue|+1}} || 0 || 0 || 0 || 0 || {{tc|red|−1}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−2}} || {{tc|red|−3}} || {{tc|red|−5}} || {{tc|red|−5}} || {{tc|red|−2}} || {{tc|blue|+1}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
All above info was collected and interpreted from the data given by Toady himself at [http://www.bay12forums.com/smf/index.php?topic=22151.msg239689].&lt;br /&gt;
&lt;br /&gt;
{{Category|Modding}}&lt;br /&gt;
{{Category|Tokens}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223828</id>
		<title>Modding</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223828"/>
		<updated>2016-03-01T11:17:21Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Punctuation corrections and tweaks.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|14:13, 7 November 2013 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
This is intended to be a guide to inform those new to DF modding on what elements of the game can be modified, and how. After reading through this guide, a user should be capable of editing creatures, entities, materials ''et al'', and creating their own.&lt;br /&gt;
&lt;br /&gt;
Generally, breaking stuff is fine - nothing that can be changed will affect the DF executable, and new additions can be easily removed.&lt;br /&gt;
&lt;br /&gt;
This guide is based on [[40d:Modding guide|Teldin's guide]], originally created for version 0.27.176.39c. Per wiki tradition, it has been updated through all the major releases since then; hopefully it reflects current knowledge.&lt;br /&gt;
&lt;br /&gt;
'''See also:''' [[:Category:DF2014:Modding]]&lt;br /&gt;
&lt;br /&gt;
= Modding Guide =&lt;br /&gt;
&lt;br /&gt;
== Token Reference ==&lt;br /&gt;
&lt;br /&gt;
It's always good to refer to tokens on the wiki. Even experienced modders have to look up tokens! A list of articles about tokens can be found [http://dwarffortresswiki.org/index.php/Token here.]&lt;br /&gt;
&lt;br /&gt;
== Basics of DF modding ==&lt;br /&gt;
&lt;br /&gt;
All the base data that can be edited by prospective modders can be found in the \raw\ folder. This folder contains two subfolders: &amp;quot;graphics&amp;quot; (where you insert [[Graphics set repository|graphics sets]]), and &amp;quot;objects&amp;quot;, which contains all the data for generally everything in the game that is not hardcoded.&lt;br /&gt;
&lt;br /&gt;
Within the \raw\objects folder are a large number of text files - these are the [[raw file|raw files]], and editing them is quite easy - you can also create your own if you wish. For now, take a look at one of the existing files. For example if you open creature_standard.txt it should look something like this:&lt;br /&gt;
&lt;br /&gt;
 creature_standard&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:CREATURE]&lt;br /&gt;
 &lt;br /&gt;
 [CREATURE:DWARF]&lt;br /&gt;
     [DESCRIPTION:A short, sturdy creature fond of drink and industry.]&lt;br /&gt;
     [NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CASTE_NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CREATURE_TILE:1][COLOR:3:0:0]&lt;br /&gt;
     [CREATURE_SOLDIER_TILE:2]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
As you can see, each file comprises a header string stating the file name, a second header stating the type of object data it contains, followed by the contents of the file itself. These are all necessary elements of the file, and without them, the file won't be parsed correctly by the game. You may have also noticed the file naming scheme - this is also important; files containing creatures have names starting with &amp;quot;creature_&amp;quot;, entity file names must begin with &amp;quot;entity_&amp;quot;, etc..&lt;br /&gt;
&lt;br /&gt;
Below the headers, there begins a list of entries. Each entry is made up of its own header (in this case, &amp;quot;[CREATURE:DWARF]&amp;quot;), again stating the type of object, and then the object's unique identifier - if an identifier isn't unique, the game will mess up and you'll get some serious, and potentially very trippy, errors. Below that, we have the body of the entry, which determines the entry's specific properties.&lt;br /&gt;
&lt;br /&gt;
The body of an entry is made up of a series of &amp;quot;tokens&amp;quot;, which are essentially flags that can be added or removed to affect the entry's attributes. Most of these effects are hardcoded: for example, it's possible to make a creature only eat meat with the [CARNIVOROUS] token, but it's impossible to create your own token detailing a specific diet for the creature.&lt;br /&gt;
&lt;br /&gt;
Before we continue, a few key things to remember when modding the raw files:&lt;br /&gt;
&lt;br /&gt;
* Try to avoid modifying the existing raw files when adding objects. It makes removing mods far easier.&lt;br /&gt;
* When adding files, all you need to include to ensure proper references are maintained is the token identifier's.  The game will load up all *.txt in the raw folder, and searches through them by tokens.  For example: You can add a new pair of leather boots and not even have to add it to the item_shoes.txt file, but rather make your own file, say item_shoes_new.txt and ensure you have the token listed, ex. [ITEM_SHOES:ITEM_SHOES_BOOTS_NEW], that's how the game will look for the item.&lt;br /&gt;
* If you want to edit an already-existing creature, always back up the files you plan on editing to a different location. Since v0.31.22, the game no longer loads backup files, but duplicate entries are still a very bad thing.&lt;br /&gt;
* When a new world is generated, all the raw files get copied into a \raw\ folder within the applicable save folder. If you want to change something within a world that's already been generated, you'll have to edit those files, not the ones in ~DF\raw\objects.&lt;br /&gt;
* There's nothing stopping you from just copying an existing creature/entity/whatever, changing the identifier, and modifying it. This can save you a lot of time, especially when it comes to entities... which are coincidentally what we'll be talking about next.&lt;br /&gt;
&lt;br /&gt;
== Modding civilizations (entities) ==&lt;br /&gt;
&lt;br /&gt;
Entities - the objects that determine how civilizations work - are stored in entity_default.txt (though, like all other files, you may add more). They follow the same format as any other raw file:&lt;br /&gt;
&lt;br /&gt;
 entity_default&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:ENTITY]&lt;br /&gt;
 &lt;br /&gt;
 [ENTITY:ENTITYNAME]&lt;br /&gt;
     [CREATURE:CREATURETYPE]&lt;br /&gt;
     [TRANSLATION:LANGUAGETYPE]&lt;br /&gt;
     [BIOME_SUPPORT:BIOMETOKEN:FREQENCY]&lt;br /&gt;
     ...[OTHER TAGS]...&lt;br /&gt;
&lt;br /&gt;
Most of the time, it doesn't matter which order these tokens are in or where they're placed so long as they're below the &amp;quot;ENTITY:&amp;quot; identifier, but there are some important exceptions in the case of other files, especially creatures, which can contain a lot of &amp;quot;nested&amp;quot; tokens.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[CREATURE:]&amp;quot; links the civilization with a specific creature defined in a creature file. This is the creature that'll be making up the entity's population, and will therefore be the creature you'll be playing as in fortress or adventure mode if the entity is a playable one. For example, if you wanted to do something silly, you could switch the &amp;quot;CREATURE:DWARF&amp;quot; entry in entity_default.txt with &amp;quot;CREATURE:ELF&amp;quot; and you would be marching elves around in fortress mode, although they would still use dwarven technology and language and names and so forth.&lt;br /&gt;
&lt;br /&gt;
Oh, and before you get any funny ideas - it ''is'' possible to define more than one creature for a civ, but that won't work in quite the way you probably expect; later on, in the creature section, you'll learn about castes, which will provide a much more viable alternative, so try to bear with us until then.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[TRANSLATION:]&amp;quot; defines the language file that the entity will be using, which will determine what their untranslated words are for things. This doesn't determine which words they use for naming things, only the way those words are spelled. The default language files are HUMAN, DWARF, ELF, and GOBLIN.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[BIOME_SUPPORT:]&amp;quot; defines the biomes that civs will attempt to settle in. The &amp;quot;FREQUENCY&amp;quot; value determines the likelihood of them building there, but also raises an important point:  Most of the values you'll be setting for things are relative to each other. If one were to type:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:1]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:2]&lt;br /&gt;
&lt;br /&gt;
This would have very much the same effect as:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:5]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:10]&lt;br /&gt;
&lt;br /&gt;
This holds true for a lot of values throughout the files, excluding when it simply doesn't make sense, such as in materials.&lt;br /&gt;
&lt;br /&gt;
You can find many details about the rest of the civilization tokens [[entity token|here]]. Besides those mentioned, some fundamental ones are the CIV_CONTROLLABLE token, which lets you control the civ in fortress mode, the INDIV_CONTROLLABLE token, which allows you to play the civ in adventure mode as an outsider, and the ADVENTURE_TIER token, which allows you to play a civ native (non-outsider) in adventure mode. Other tokens that you should pay attention to are START_BIOME and the ones regarding sites, but in general, you can just run through the aforementioned list and add or remove what you want.&lt;br /&gt;
&lt;br /&gt;
If you have more than one civ with the CIV_CONTROLLABLE token, all the available civs from those entities will appear in the group selection section on the embark screen. It may not be immediately obvious from which species each civ may be - while this can be determined from legends mode, the topmost species in the &amp;quot;neighbors&amp;quot; display in the embark screen is always the same as the currently selected species; if your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a civ (and therefore a species if there is more than one) at random.&lt;br /&gt;
&lt;br /&gt;
You can also attempt to discern the civ yourself by the names it uses - this is the realm of &amp;quot;symbols&amp;quot;, collections of words centered around a specific concept. The civ will use the words comprising whatever symbols are applicable to it for various things. This association might be a little obfuscating at first, so I'll run through it. Let's refer to the DWARF entity:&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:WAR:NAME_WAR]&lt;br /&gt;
 [SUBSELECT_SYMBOL:WAR:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:BATTLE:NAME_BATTLE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:BATTLE:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:SIEGE:NAME_SIEGE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:SIEGE:VIOLENT]&lt;br /&gt;
&lt;br /&gt;
Here we can see that dwarves will generally name their wars first after words in the &amp;quot;NAME_WAR&amp;quot; symbol group, and then after words in the &amp;quot;VIOLENT&amp;quot; symbol group. This might, for example, result in a war being named &amp;quot;The War of Carnage&amp;quot;. The symbols used for the other types of conflict are arrayed in a similar fashion. It would be trivial to replace the instances of VIOLENT with, say, PEACE and end up with a battle called &amp;quot;The Clash of Calm&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:ROAD:NAME_ROAD]&lt;br /&gt;
 [SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]&lt;br /&gt;
 [SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]&lt;br /&gt;
 [SELECT_SYMBOL:WALL:NAME_WALL]&lt;br /&gt;
&lt;br /&gt;
The above applies here. Dwarves are fond of naming their roads and tunnels after roads and tunnels.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:ARTIFICE]&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:EARTH]&lt;br /&gt;
 [CULL_SYMBOL:ALL:DOMESTIC]&lt;br /&gt;
 [CULL_SYMBOL:ALL:SUBORDINATE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:EVIL]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UNTOWARD]&lt;br /&gt;
 [CULL_SYMBOL:ALL:FLOWERY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATIVE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UGLY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATOR]&lt;br /&gt;
&lt;br /&gt;
This section deals with everything else. The things that haven't already been dealt with (hence the &amp;quot;REMAINING&amp;quot;) - such as site names, kingdom names, the names of individuals, and such - will have names from the ARTIFICE and EARTH symbol groups. After that the dwarf entity is told to cull all innapropriate symbols - this applies to everything (hence the &amp;quot;ALL&amp;quot;) so if the game happens to choose a symbol associated with, say, EVIL for one of the battles, it'll scrap that name and try again. This sort of thing adds a lot of flavour to DF's entities and can account for a lot of a civ's perceived personality.&lt;br /&gt;
&lt;br /&gt;
Another basic thing to note:  Any entity token that's dealing with weapons, armor, clothing, etc., will state the items that the civ can build natively, not necessarily the ones they can wear or use. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them. &lt;br /&gt;
&lt;br /&gt;
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's &amp;quot;ENTITY:&amp;quot; identifier! This can be anything so long as it's not already existing.&lt;br /&gt;
&lt;br /&gt;
At the end of some of the default entries you'll find a list of positions, both ones that'll directly affect you in fort mode (such as nobles) and ones that'll primarily affect worldgen and adventure mode. A list of the tokens applicable to positions can be found [[position token|here]]; they don't require a great deal of explanation.&lt;br /&gt;
&lt;br /&gt;
== Modding the creatures ==&lt;br /&gt;
&lt;br /&gt;
Creature modding is great fun. You can change nearly any aspect of a creature or make your own completely from scratch.&lt;br /&gt;
&lt;br /&gt;
Modding creatures is very similar to modding civs: it's just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all of the information about each and every non-random creature in the game, from animals to dwarves to goblins to even caravan wagons. A lot of the creature tokens are fairly self-explanatory; you can find a list of such tokens [[creature token|here]]. But before you start creating your own creatures, you'll want to learn how the tissues system works.&lt;br /&gt;
&lt;br /&gt;
=== Creature materials and tissues ===&lt;br /&gt;
&lt;br /&gt;
In the most basic sense, a creature is a series of bodyparts. These parts are defined in their own file, and we'll talk about them later. As a specific aspect of how creatures work which throws off a lot of prospective modders is the relationship between bodyparts, tissues, and materials. We're going to show you part of the creature entry for a bronze colossus (bear with us):&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [TISSUE:BRONZE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
At the top, we can see the &amp;quot;BODY:&amp;quot; token, followed by a list of bodyparts. As you've probably guessed, these parts make up the physical form of the colossus. But the colossus has to be made out of something - it has to have tissues. And those tissues also have to be made out of something - in this case, bronze.&lt;br /&gt;
&lt;br /&gt;
Below the BODY token you'll see a TISSUE token, followed by an identifier, much like the others we've seen. The TISSUE block is determining how the tissue works, and which purposes it'll serve. As the colossus is just going to be made out of this one tissue, this tissue needs to act like bone, muscle, and everything else combined, hence the MUSCULAR, FUNCTIONAL and STRUCTURAL tokens. The tissue also references a material - INORGANIC:BRONZE - the properties of which are declared in the inorganic materials file, and the tissue is subsequently made out of this material. With us so far?&lt;br /&gt;
&lt;br /&gt;
Below the tissue definition is the TISSUE_LAYER line. TISSUE_LAYER allows you to control where each tissue is applied. Its first argument defines if it's to search by bodypart category (BY_CATEGORY), bodypart type (BY_TYPE), or look for a specific part (BY_TOKEN). That's followed by the parts argument itself, which is in this case ALL (so the game's looking for parts in all categories, which is to say, every bodypart). This is followed by the tissue to be applied, BRONZE. So the TISSUE_LAYER token is telling the game to select all bodyparts in every category and make them out of the tissue &amp;quot;BRONZE&amp;quot;. The colossus is now made of bronze.&lt;br /&gt;
&lt;br /&gt;
By now you're probably thinking &amp;quot;Wow, if this was for a creature made out of however many tissues, this would be amazingly longwinded&amp;quot;. And you're right. Luckily, there are two methods by which we can speed things up a lot.&lt;br /&gt;
&lt;br /&gt;
Firstly, there are material and tissue templates. Let's say you were going to make a lot of creatures out of bronze, and you didn't want to have to copy and paste the bronze tissue all over the place. Instead, you create a tissue template. This goes, as you've probably guessed, in a tissue template file.&lt;br /&gt;
&lt;br /&gt;
 [TISSUE_TEMPLATE:BRONZE_TEMPLATE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
&lt;br /&gt;
Now, instead of applying the tissue to each and every bronze creature you're making, you can just refer to the template:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [USE_TISSUE_TEMPLATE:BRONZE:BRONZE_TEMPLATE]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Material templates work in the same way, but refer to materials instead of tissues.&lt;br /&gt;
&lt;br /&gt;
However, if we're looking at something like a dwarf, even with the templates, editing can get very slow indeed:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BONE:BONE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:CARTILAGE:CARTILAGE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:TOOTH:TOOTH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:EYE:EYE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:NERVE:NERVE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BRAIN:BRAIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LUNG:LUNG_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HEART:HEART_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LIVER:LIVER_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:GUT:GUT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:STOMACH:STOMACH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:PANCREAS:PANCREAS_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SPLEEN:SPLEEN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:KIDNEY:KIDNEY_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This is where body detail plans come in. Detail plans, of course, have their own file, and they are designed to help automate some of the more common processes in creature creation. The first entry in b_detail_plan_default.txt does exactly what we've been trying to do above: it takes all the common materials and shoves them into one plan, which can be referenced with a single token.&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Much easier. But what about the TISSUE_LAYER tokens? Will we have to type out all of those manually?&lt;br /&gt;
&lt;br /&gt;
Nope, detail plans have that covered as well. It's possible to place variable arguments into a detail plan. For example:&lt;br /&gt;
&lt;br /&gt;
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_UPPER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_LOWER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM_UPPER:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:NOSE:ARG5:4:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
First an argument is placed in the plan (ARG1, ARG2 etc.), followed by the thickness of the tissue that will be inserted in place of the argument. So when we reference the VERTEBRATE_TISSUE_LAYERS plan, we'll be able to do something like this:&lt;br /&gt;
&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
&lt;br /&gt;
ARG1 in the detail plan is replaced by SKIN, the first tissue we entered. ARG2 is replaced by FAT, ARG3 by muscle, ARG4 by bone, and ARG5 by CARTILAGE. Hence, our creature's bodypart designated as BODY is made up of SKIN with thickness 1, FAT with thickness 5, and MUSCLE with thickness 50. Its nose is made up of SKIN (thickness 1) and CARTILAGE (thickness 4).&lt;br /&gt;
&lt;br /&gt;
Things left out of the body plans aside, our dwarf's entire body, material, tissue and tissue layer tokens have been boiled down to this:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This can save you a lot of time and space if you're making lots of changes common to many creatures. In general, if you're making a creature that's fleshy or chitinous, there're detail plans already included in the game to help you out. You should only have to resort to declaring tissues individually (like our bronze colossus) if you're doing something really out-of-the-ordinary.&lt;br /&gt;
&lt;br /&gt;
Another great thing about templates (and so, detail plans) is that they can be modified after being declared. Let's say we wanted our dwarves to be perpetually on fire (don't ask). We declare the body stuff normally:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We then select the appropriate material:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We don't want them burning to death, so we'll need to stop that from happening:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     [SELECT_MATERIAL:ALL]&lt;br /&gt;
         [HEATDAM_POINT:NONE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Note that this makes use of DF's built-in temperature scale. You can read more about that [[Temperature|on this page]]. We're also referencing material tokens, which we haven't gone over yet - we'll talk about making your own materials later.&lt;br /&gt;
&lt;br /&gt;
=== Creature castes ===&lt;br /&gt;
&lt;br /&gt;
Another potentially extremely powerful part of the creature raws is the caste system. The caste system handles both true biological castes and lesser variations, such as sexes.&lt;br /&gt;
&lt;br /&gt;
To understand the true potential of the caste system, we only need to take a look at the raws for antmen, found in creature_subterrenean.txt:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [CASTE:WORKER]&lt;br /&gt;
         [CASTE_NAME:worker ant woman:worker ant women:worker ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:10000]&lt;br /&gt;
     [CASTE:SOLDIER]&lt;br /&gt;
         [CASTE_NAME:soldier ant woman:soldier ant women:soldier ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:1000]&lt;br /&gt;
     [CASTE:DRONE]&lt;br /&gt;
         [MALE]&lt;br /&gt;
         [CASTE_NAME:drone ant man:drone ant men:drone ant man]&lt;br /&gt;
         [POP_RATIO:5]&lt;br /&gt;
     [CASTE:QUEEN]&lt;br /&gt;
         [FEMALE]&lt;br /&gt;
         [CASTE_NAME:queen ant woman:queen ant women:queen ant woman]&lt;br /&gt;
         [POP_RATIO:1]&lt;br /&gt;
     [SELECT_CASTE:WORKER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:SOLDIER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:QUEEN]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
     [SELECT_CASTE:DRONE]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH:2WINGS]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
         [FLIER]&lt;br /&gt;
     [SELECT_CASTE:ALL]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_MATERIALS]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_TISSUES]&lt;br /&gt;
         [BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]&lt;br /&gt;
         [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]&lt;br /&gt;
         [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]&lt;br /&gt;
             [ATTACK_SKILL:GRASP_STRIKE]&lt;br /&gt;
             [ATTACK_VERB:punch:punches]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
It's evident that the process of creating and editing castes is comparable to the modifications we were making to tissues and materials earlier: A caste is declared, and modifications to the base creature are made. Declared castes can be selected and subsequently modified, again, just like tissues and materials.&lt;br /&gt;
&lt;br /&gt;
In this case, each caste is declared, given its own name, and a POP_RATIO, which determines how commonly a birth results in that caste - for every 10000 workers born, there'll be an average of 1000 soldiers, 5 drones and one queen. You've probably also noticed that the DRONE and QUEEN castes have the MALE and FEMALE tokens respectively - these tokens determine how breeding works. A creature without both a MALE caste and a FEMALE caste will be unable to breed (no asexual creatures yet, unfortunately). As they lack FEMALE, the workers and soldiers are unable to breed with the male drones.&lt;br /&gt;
&lt;br /&gt;
After this, there are some modifications to bodyparts. In this case, the drones have wings and the FLIER token, which the other castes lack. It's entirely possible for creatures of different castes to have completely different body stuctures, even to the extent that they don't resemble each other at all. If you read the section of this guide that dealt with entities, you may remember a passing mention of multi-creature civilisations and how they don't quite work as you may think they would. The castes system is your workaround. You could create a caste that is, for all intents and purposes, a human, and another caste of the same creature that acts exactly like a giant cave spider, put the creature in a civ, and get a human-spider civ. The only flaw in this approach is that the castes will interbreed.&lt;br /&gt;
&lt;br /&gt;
That's the most complex components of creature creation out of the way. You should find the rest trivial by comparison.&lt;br /&gt;
&lt;br /&gt;
== Modding items ==&lt;br /&gt;
&lt;br /&gt;
Items are fairly simple to deal with. By default, each item type is contained in its own file; this may help make browsing for a specific item easier, but from a purely technical point of view, it's possible to throw all items into one file. Unfortunately, item tokens don't seem to be especially well-documented (at least not as well as the other object types), but you should be able to figure out most things by way of our explanations and your assumptions.&lt;br /&gt;
&lt;br /&gt;
Let's look at the entry for, of course, the thong:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_PANTS:ITEM_PANTS_THONG]&lt;br /&gt;
 [NAME:thong:thongs]&lt;br /&gt;
 [LAYER:UNDER]&lt;br /&gt;
 [COVERAGE:25]&lt;br /&gt;
 [LAYER_SIZE:10]&lt;br /&gt;
 [LAYER_PERMIT:30]&lt;br /&gt;
 [MATERIAL_SIZE:1]&lt;br /&gt;
 [SOFT]&lt;br /&gt;
 [LEATHER]&lt;br /&gt;
 [STRUCTURAL_ELASTICITY_WOVEN_THREAD]&lt;br /&gt;
&lt;br /&gt;
Most of these are pretty obvious if one compares them to the other entries in the file. There's a layer for the item, determining where it's worn; a coverage value to determine how well it protects you from cold and other things; a size token to determine how much it counts for when it's under something else; a layer permit token to determine how much can be worn under it; and a material size token to determine how much raw material it takes to make it.&lt;br /&gt;
&lt;br /&gt;
Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere. Simple! These tokens work by tying into material properties - some materials are designated as suitable for making hard items, some for soft, etc..&lt;br /&gt;
&lt;br /&gt;
Weapons involve a little more detail:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_WEAPON:ITEM_WEAPON_SWORD_2H]&lt;br /&gt;
 [NAME:two-handed sword:two-handed swords]&lt;br /&gt;
 [SIZE:900]&lt;br /&gt;
 [SKILL:SWORD]&lt;br /&gt;
 [TWO_HANDED:67500]&lt;br /&gt;
 [MINIMUM_SIZE:62500]&lt;br /&gt;
 [MATERIAL_SIZE:5]&lt;br /&gt;
 [ATTACK:EDGE:100000:8000:slash:slashes:NO_SUB:1250]&lt;br /&gt;
 [ATTACK:EDGE:50:4000:stab:stabs:NO_SUB:1000]&lt;br /&gt;
 [ATTACK:BLUNT:100000:8000:slap:slaps:flat:1250]&lt;br /&gt;
 [ATTACK:BLUNT:100:1000:strike:strikes:pommel:1000]&lt;br /&gt;
&lt;br /&gt;
SIZE determines how heavy the weapon is. This has a substantial effect on weapon effectiveness. SKILL determines which skill is used in using the weapon; a list of skills can be found [[skill token|on this page]]. MINIMUM_SIZE determines the minimum size a creature must be before the weapon can be wielded, while TWO_HANDED determines how large a creature must be in order to wield the weapon with one hand.&lt;br /&gt;
&lt;br /&gt;
Attacks take a little more explanation. The first value determines the contact area of the weapon's attack; this should be high for slashing weapons and low for bludgeoning, piercing and poking ones. The second value determines how deep the weapon penetrates - for BLUNT attacks this value is ignored as they're not supposed to penetrate anyway, but in the case of EDGE attacks it should generally be lower for slashing attacks and higher for stabbing attacks.&lt;br /&gt;
&lt;br /&gt;
Following these are the nouns and verb used; they should be self-explanatory. Finally, we have the velocity modifier, which has a multiplying effect on the weapon's size for the purposes of determining how powerful it is in combat.&lt;br /&gt;
&lt;br /&gt;
Other, more miscellaneous items are generally simple and shouldn't require any further explanation.&lt;br /&gt;
&lt;br /&gt;
Once you've made an item, you just add it to the civ entry so a civilization can actually craft it, and it's done.&lt;br /&gt;
&lt;br /&gt;
== Modding language files ==&lt;br /&gt;
&lt;br /&gt;
Let's say you added a whole new species.  Sure, you could just swipe one of the existing translation files and steal their language for your species, but that's the lazy way!  If you want to create a whole new language, it is very simple.&lt;br /&gt;
&lt;br /&gt;
First, you'd need a whole new language_RACE file, such as language_LIZARDMAN.txt, along with &amp;quot;language_LIZARDMAN&amp;quot; at the top of the file proceeded by [OBJECT:LANGUAGE] and [TRANSLATION:LIZARDMAN].  After that, it's just a matter of copy-pasting one of the existing language lists and editing the finished 'translated' word.  That's it! Then just add the translation link to your civ in entity_default.txt and it'll be added to the game on worldgen.&lt;br /&gt;
&lt;br /&gt;
(Note that the name of the file doesn't actually matter; however, it's good form to name the file after a creature if only that creature speaks the language.)&lt;br /&gt;
&lt;br /&gt;
== Modding body parts ==&lt;br /&gt;
&lt;br /&gt;
Imagine you have this fantastic idea for a multi-tentacled winged spider-monster. Sounds great! But in order to make this a reality you may need to create a new set of body parts for it. That's no problem! Making body parts is easy, though it may look complicated at first. &lt;br /&gt;
&lt;br /&gt;
All of the default body definitions are located in body_default.txt and then linked to a creature in the creature's entry. We've talked about how bodyparts make up creatures earlier, in the creature section. You can mix and match them in the creature entry and it makes no difference, as long as they're there: each bodypart will link itself to the appropriate connection automatically when the creature is first created.&lt;br /&gt;
&lt;br /&gt;
Body parts work by sections: you can add as many sections as you want to a bodypart definition, but generally you should keep it fairly low for ease of use. Each body section entry is in the, very simple, format:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BODYNAME]&lt;br /&gt;
 [BP:TOKENID:name][TOKENSGOHERE][DEFAULT_RELSIZE:][CATEGORY:WHATEVER]&lt;br /&gt;
&lt;br /&gt;
The most important tokens are &amp;quot;CONTYPE&amp;quot; and &amp;quot;CON&amp;quot;: CONTYPE means the bodypart in question is connected to a certain ''type'' of bodypart, while CON means it's connected to a ''specific'' one. TOKENID is yet another identifier, which should be unique, as it's referenced every time something uses CON or BY_TOKEN. DEFAULT_RELSIZE defines, of course, what the bodypart's size is in relation to the other parts. CATEGORY defines a category for the part, which can be unique or shared with other parts. This is referenced whenever BY_CATEGORY is used.&lt;br /&gt;
&lt;br /&gt;
A list of bodypart tokens can be found [[body token|here]].&lt;br /&gt;
&lt;br /&gt;
Let's take a simple example, a head:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BASIC_HEAD]&lt;br /&gt;
 [BP:HD:head:STP][CONTYPE:UPPERBODY][HEAD][CATEGORY:HEAD]&lt;br /&gt;
 [DEFAULT_RELSIZE:300]&lt;br /&gt;
&lt;br /&gt;
It connects directly to an upper body.&lt;br /&gt;
&lt;br /&gt;
 [BODY:2EYES]&lt;br /&gt;
     [BP:REYE:right eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][RIGHT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
     [BP:LEYE:left eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][LEFT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
&lt;br /&gt;
These are a pair of eyes, connecting to the head.&lt;br /&gt;
&lt;br /&gt;
 [BODY:HUMANOID]&lt;br /&gt;
     [BP:UB:upper body:upper bodies][UPPERBODY][CATEGORY:BODY_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:LB:lower body:lower bodies][CON:UB][LOWERBODY][CATEGORY:BODY_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:HD:head:STP][CON:UB][HEAD][CATEGORY:HEAD]&lt;br /&gt;
         [DEFAULT_RELSIZE:300]&lt;br /&gt;
     [BP:RUA:right upper arm:STP][CON:UB][LIMB][RIGHT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LUA:left upper arm:STP][CON:UB][LIMB][LEFT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RLA:right lower arm:STP][CON:RUA][LIMB][RIGHT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LLA:left lower arm:STP][CON:LUA][LIMB][LEFT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RH:right hand:STP][CON:RLA][GRASP][RIGHT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:LH:left hand:STP][CON:LLA][GRASP][LEFT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:RUL:right upper leg:STP][CON:LB][LIMB][RIGHT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:LUL:left upper leg:STP][CON:LB][LIMB][LEFT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:RLL:right lower leg:STP][CON:RUL][LIMB][RIGHT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:LLL:left lower leg:STP][CON:LUL][LIMB][LEFT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:RF:right foot:right feet][CON:RLL][STANCE][RIGHT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
     [BP:LF:left foot:left feet][CON:LLL][STANCE][LEFT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
&lt;br /&gt;
An entire humanoid body. The foot bone's connected to the ankle bone...&lt;br /&gt;
&lt;br /&gt;
&amp;quot;BODYGLOSS&amp;quot; entries, which you can sometimes find applied to creature entries, are simply replacement words for specific part name strings in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in body_default.txt; you can then use this in a creature via &amp;quot;[BODYGLOSS:CLAW_HAND]&amp;quot; and it'll replace all instances of &amp;quot;hand&amp;quot; with &amp;quot;claw&amp;quot; in that creature. Be warned, however—if you were to, say make a bodygloss [BODYGLOSS:EARSTALK:ear:stalk:ears:stalk], it would not only change &amp;quot;ear&amp;quot; and &amp;quot;ears&amp;quot; to &amp;quot;stalk&amp;quot; and &amp;quot;stalks&amp;quot;, it would also change &amp;quot;h'''ear'''t&amp;quot; to &amp;quot;h'''stalk'''t&amp;quot;! For all intents and purposes the body part will still function as the proper part, though.&lt;br /&gt;
&lt;br /&gt;
== Modding plants ==&lt;br /&gt;
&lt;br /&gt;
Plants are, again, not unlike creatures. With what you've learned so far in regard to tokens and the materials system, running through the notes included in plant_standard.txt should explain most things. [[Plant token|Here's the list of plant-specific tokens]].&lt;br /&gt;
&lt;br /&gt;
Below is the [[plump helmet]] raw description:&lt;br /&gt;
&lt;br /&gt;
 [PLANT:MUSHROOM_HELMET_PLUMP]&lt;br /&gt;
 	[NAME:plump helmet][NAME_PLURAL:plump helmets][ADJ:plump helmet]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
 &lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
Let's look at this line by line:&amp;lt;br&amp;gt;&lt;br /&gt;
First, we define its file name. In this case it's MUSHROOM_HELMET_PLUMP. Next we define its in-game name (plump helmet) and its adjective for if you were to craft with it (e.g. plump helmet earrings).&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
&lt;br /&gt;
This defines the structure and material of the plant. It references STRUCTURAL_PLANT_TEMPLATE in the first line, so if you were to say, add wings to the template, the plump helmet plant would be winged. This is for the plant itself, not the end plump helmets.&lt;br /&gt;
&lt;br /&gt;
After that we get our edible tokens. These say that vermin can eat the plant, and it can be eaten raw or cooked by your dwarves. So if you wanted a plant vermin would leave alone, you'd remove the [EDIBLE_VERMIN] token.&lt;br /&gt;
&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
&lt;br /&gt;
Next, [PICKED_TILE:161] is the character (161 in this case) shown when the crop is harvested. See [[Main:Character table|character table]] for a table of usable tiles. [PICKED_COLOR:6:13:0] is the color used for the crop's tile when harvested. It's in a foreground:background:brightness format. See [[color]] for the colors usable.&lt;br /&gt;
&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
&lt;br /&gt;
[GROWDUR:300] is how long it takes for your crop to grow. There are 1008 growdur units in a season.&amp;lt;br&amp;gt;&lt;br /&gt;
[VALUE:2] Is the value of harvested plant (default 1). Appears to have no effect in version 0.31.&lt;br /&gt;
&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
&lt;br /&gt;
This defines the plant's alcohol states. [STATE_NAME_ADJ:ALL_SOLID:] is the frozen name, followed is the actual drink name, and then its boiling name. These are achieved by either Scorching or Freezing climates. [DISPLAY_COLOR] is, of course, color, and [EDIBLE_RAW] and [EDIBLE_COOKED] are saying you can drink the alcohol raw or cooked.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
&lt;br /&gt;
After that we get our seed template:&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
&lt;br /&gt;
And all this says is that the seeds may be eaten by vermin or cooked. Then it gives the name of our plant's seed, its plural name, its foreground, background, and brightness colors, followed by its seed material; said material should have [SEED_MAT] to permit proper stockpiling.&lt;br /&gt;
&lt;br /&gt;
And finally for the last chunk we have this:&lt;br /&gt;
&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
First we define what season(s) the plant may grow in, then we define how frequently this plant is generated in a particular area, followed by how many harvested crop items may come from 1 plant. [PREFSTRING:] is what your dwarves like about the plant, which in this case is the rounded tops. [WET][DRY] are the conditions under which the plant can grow. Wet means it can grow close to water, dry means it can grow away from water. This does not mean you can grow the plant on dry stone however. It is just for natural spawning of the plant.&amp;lt;br&amp;gt;&lt;br /&gt;
[BIOME] Is what biome the plant grows in. [UNDERGROUND_DEPTH:Minimum:Maximum] Is the highest and lowest cavern levels that the plant can appear in if its biome is subterranean. Dwarven civilizations will only export (via the embark screen or caravans) things that available at depth 1. Defaults to 0:0 (surface only).&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly, [SHRUB_TILE] is the character used for the naturally spawning shrub of this plant, [DEAD_SHRUB] is the dead shrub character. [SHRUB_COLOR] Is the shrub's color, and [DEAD_SHRUB_COLOR] is, of course, the dead shrub's color.&lt;br /&gt;
&lt;br /&gt;
While this may or may not look like a lot of tokens, it's very easy. Just copy an existing plant and edit it to your new plant.&amp;lt;br&amp;gt;&lt;br /&gt;
For the rest of the tokens, see [[plant token]].&lt;br /&gt;
&lt;br /&gt;
== Workshops ==&lt;br /&gt;
&lt;br /&gt;
Workshops are raw-designed pretty differently from everything else in the game, being buildable structures rather than items or methods to gain items. However, they are fairly simple. For example, here's the raw for the [[soap maker's workshop]]:&lt;br /&gt;
&lt;br /&gt;
 [BUILDING_WORKSHOP:SOAP_MAKER]&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
 	[BLOCK:1:0:0:1]&lt;br /&gt;
 	[BLOCK:2:0:0:1]&lt;br /&gt;
 	[BLOCK:3:0:0:0]&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	[TILE:0:2:' ':' ':'/']&lt;br /&gt;
 	[TILE:0:3:'-':' ':' ']&lt;br /&gt;
 	[COLOR:0:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:3:6:0:0:0:0:0:0:0:0]&lt;br /&gt;
 	[TILE:1:1:' ':' ':'=']&lt;br /&gt;
 	[TILE:1:2:'-':' ':8]&lt;br /&gt;
 	[TILE:1:3:' ':' ':150]&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:2:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:3:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[TILE:2:1:'-':' ':8]&lt;br /&gt;
 	[TILE:2:2:' ':' ':8]&lt;br /&gt;
 	[TILE:2:3:' ':150:' ']&lt;br /&gt;
 	[COLOR:2:1:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:3:0:0:0:6:0:0:0:0:0]&lt;br /&gt;
 	[TILE:3:1:150:' ':8]&lt;br /&gt;
 	[TILE:3:2:' ':' ':8]&lt;br /&gt;
 	[TILE:3:3:' ':240:' ']&lt;br /&gt;
 	[COLOR:3:1:6:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:2:0:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:3:0:0:0:7:0:1:0:0:0]&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
&lt;br /&gt;
A line-by-line breakdown:&lt;br /&gt;
&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
&lt;br /&gt;
These are the name of the workshop (&amp;quot;Soap Maker's Workshop&amp;quot;) and [[color]] of the workshop's name when examined with 'q' (White with a black background).&lt;br /&gt;
&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
&lt;br /&gt;
DIM refers to how large the workshop will be, in this case 3 wide, 3 tall. WORK_LOCATION tells where the creature using it (usually a dwarf) will work, numbered from the top right--in this case, 2:2, or the middle. Multiple work locations can be defined, even outside the dim.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
&lt;br /&gt;
These refer to the worker required to build it (soap maker) and the key used to build it in the workshop menu (capital S).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  	[BLOCK:1:0:0:1]&lt;br /&gt;
 	...&lt;br /&gt;
This is a bit more complex, and is where we get to the meaty part of workshop making--the tiles' properties. BLOCK refers to which tiles will be untraversable--1 means blocked, 0 means unblocked. The first number refers to row, and the next 3 refer to column, so 1:0:0:1 means that, on the first row, the first two tiles will be unblocked and the last will be blocked.&lt;br /&gt;
&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	...&lt;br /&gt;
The TILE token tells which tile will go where. note, however, that there are 5 entries here instead of 4. The first number, in this case, refers to build stage, numbered from 0 to 3; 3 or 1 is fully built (depending on whether there are stages), 0 is just placed, and 2 is always an intermediate stage, while 1 is usually an intermediate stage. Whether 1 is an intermediate stage or not depends on if there are a 2 and 3 stage; if 2 and 3 exist, 1 will be intermediate. The second number and beyond are similar to BLOCK; however, instead of 1s and 0s, you must input tiles. The tiles themselves can be given in quotes (as in ' ') or given as a number, which can be looked up [[Tilesets|here]]. Here, we have 150, which is û.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	...&lt;br /&gt;
Color is as TILE, but with colors instead of tiles; however, colors are made up of 3 numbers each or MAT. MAT refers to the color of the material used to make it; the 3 numbers refer to foreground:background:foreground brightness, and can be looked up [[Color|here]]. For example, 4:2:1 will give you bright red with a dark green background.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
These refer to items required to build the building. These are in the same format as [[Reaction|reaction reagents and products]]--quantity:[[Item token|item]]:[[Material token|material]]. You'll learn more about those on the article about [[Reaction|reactions]], though. The second BUILD_ITEM is special-- it uses modifiers exclusively to determine its requirements. BUILDMAT refers to wood logs, wood blocks, stone boulders, and stone blocks; WORTHLESS_STONE_ONLY means it can't use economic stone; CAN_USE_ARTIFACT means that it... can use artifacts. EMPTY, in the bucket's case, means that the bucket must be empty.&lt;br /&gt;
&lt;br /&gt;
More can be seen at the [[Building token|building tokens]] article.&lt;br /&gt;
&lt;br /&gt;
== Reactions ==&lt;br /&gt;
&lt;br /&gt;
An in-depth guide for reactions is available [[Reactions|here]].&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
As we've seen when talking about creatures, materials are vital. Materials show up in two forms: material templates, which generally show up in creatures, and specific materials (designated as &amp;quot;inorganic&amp;quot;), which are (by default, at least) consigned purely to metal and stone types.&lt;br /&gt;
&lt;br /&gt;
Let's take a look at METAL_TEMPLATE in material_template_default.txt. It's evident that most of the basic properties of metals are already defined in the template - it goes red and melts at a high enough temperature, it's heavy, and (as noted by the very bottom token) is a metal. We already know just how useful templates can be to creatures, and the same applies to other materials.&lt;br /&gt;
&lt;br /&gt;
Now let's take a look at inorganic_metal.txt. You can see that the metals here refer to the templates, and, just like we did with creatures, then modify the properties of that template and expand upon it.&lt;br /&gt;
&lt;br /&gt;
Finally, let's look at inorganic_stone_mineral.txt. Here we can see that in addition to the changes made to the template, there are also ENVIRONMENT tokens - these tell the game where to place these minerals during worldgen.&lt;br /&gt;
&lt;br /&gt;
[[material definition token|Here's a list of material tokens]]. It should also help you out with any modifications you want to make regarding those creature modifications we were making a while back. See, it all ties together in the end. The beauty of the current materials system is that there's actually very little difference between, say, leather and iron - they're fundamentally the same thing, just with different properties, which is how things really should be.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
The Hydling by Mysteryguye (annotated, updated and separated into blocks by Putnam)&lt;br /&gt;
&lt;br /&gt;
 [CREATURE:HYDLING]&lt;br /&gt;
 	[DESCRIPTION:A seven-headed small hairy thing, about the size of a dog. It is very loyal to its masters, and will promptly disembowel any enemy straying too close.]&lt;br /&gt;
 This is the description that shows up in-game when viewing the creature.&lt;br /&gt;
&lt;br /&gt;
 	[NAME:hydling:hydlings:hydlish] If there were a civ made of hydlings, it would appear as &amp;quot;hydlings&amp;quot; in the neighbors screen.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE_NAME:hydling:hydlings:hydlish]&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_TILE:'='][COLOR:2:0:1] Will appear as a light green &amp;quot;=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[PETVALUE:78][NATURAL] Creature is known to be naturally occurring by the game. Will cost 40 embark points to buy.&lt;br /&gt;
&lt;br /&gt;
 	[LARGE_ROAMING] Will spawn outdoors, wandering around.&lt;br /&gt;
&lt;br /&gt;
 	[COMMON_DOMESTIC][TRAINABLE][PET] Can be bought on embark as a pet, war animal, or hunting animal.&lt;br /&gt;
&lt;br /&gt;
 	[BONECARN] Can eat meat and bones only--no vegetables.&lt;br /&gt;
&lt;br /&gt;
 	[PREFSTRING:loyalty] Dwarves will like it for its loyalty.&lt;br /&gt;
&lt;br /&gt;
 	[LIKES_FIGHTING] Will attack rather than flee.&lt;br /&gt;
&lt;br /&gt;
 	[BODY:BASIC_2PARTBODY:7HEADNECKS:BASIC_FRONTLEGS:BASIC_REARLEGS:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:SPINE:BRAIN:SKULL:3TOES_FQ_REG:3TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_FANGS:RIBCAGE]&lt;br /&gt;
&lt;br /&gt;
 Has a lower body, upper body, 4 legs, a tail, ten eyes, ten ears, five noses, two lungs, a heart, guts, a pancreas etc., and 5 heads with all that goes with those.&lt;br /&gt;
&lt;br /&gt;
 	[BODYGLOSS:PAW] Feet will be called &amp;quot;paws&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_MATERIALS] Declares the standard materials that most creatures' tissues are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_TISSUES] This declares the tissues that the creature's tissue layers are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE] And this describes the tissue layers that the creature is made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR] Creature will be covered with a layer of fur.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE] And it'll have nails.&lt;br /&gt;
&lt;br /&gt;
 	[USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]&lt;br /&gt;
&lt;br /&gt;
 	[TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] On the toe, specifically.&lt;br /&gt;
&lt;br /&gt;
 	[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]&lt;br /&gt;
 	 [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]&lt;br /&gt;
 		[TL_MAJOR_ARTERIES] Heart and throat--called above--will cause heavy bleeding if ruptured.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS] Places eyes, ears and what have you into their correct placement, so that you don't have people punching out eyes from behind.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS] Sets the ribcage as being around lungs and heart.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE] Defines sinew so that...&lt;br /&gt;
 	[TENDONS:LOCAL_CREATURE_MAT:SINEW:200] Tendons&lt;br /&gt;
 	[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200] And ligaments can be defined.&lt;br /&gt;
&lt;br /&gt;
 	[HAS_NERVES] Creature has nerves, and as such can be disabled by severing them.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE] Defines the material BLOOD using the template BLOOD_TEMPLATE.&lt;br /&gt;
 	[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID] Defines the creature's BLOOD as being made of the above-defined BLOOD material in a LIQUID state.&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_CLASS:GENERAL_POISON] Creature can be affected by syndromes that affect GENERAL_POISON.&lt;br /&gt;
&lt;br /&gt;
 	[GETS_WOUND_INFECTIONS] Pretty much self-explanatory. Creature can get infected from wounds.&lt;br /&gt;
 	[GETS_INFECTIONS_FROM_ROT] And from necrosis.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE] Defines PUS using PUS_TEMPLATE.&lt;br /&gt;
 	[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID] Defines PUS as being made of PUS.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_SIZE:0:0:1000] Creature will be 1000 cubic centimeters at birth...&lt;br /&gt;
 	[BODY_SIZE:1:0:12500] 12500 cubic centimeters at 1 year old...&lt;br /&gt;
 	[BODY_SIZE:2:0:30000] and 30000 cubic centimeters at 2.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110] Creature can be anywhere from 90% to 110% as long as others.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] As above, but with height.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110] As above, but with broadness. This puts the minimum size of the creature (when fully grown) at 21870 and the maximum size at 39930.&lt;br /&gt;
&lt;br /&gt;
 	[MAXAGE:20:30] Creature will die of old age between the ages of 20 and 30, no later than 30, no sooner than 20.&lt;br /&gt;
&lt;br /&gt;
 	[CAN_DO_INTERACTION:MATERIAL_EMISSION] Creature can use the MATERIAL_EMISSION interaction.&lt;br /&gt;
 		[CDI:ADV_NAME:Hurl fireball] In adventurer mode, the MATERIAL_EMISSION interaction will appear as &amp;quot;Hurl fireball&amp;quot;.&lt;br /&gt;
 		[CDI:USAGE_HINT:ATTACK] Creature will use MATERIAL_EMISSION when it's attacking, on creatures that it's attacking.&lt;br /&gt;
 		[CDI:BP_REQUIRED:BY_CATEGORY:HEAD] Creature must have at least one HEAD to use MATERIAL_EMISSION.&lt;br /&gt;
 		[CDI:FLOW:FIREBALL] The MATERIAL_EMISSION will shoot a fireball.&lt;br /&gt;
 		[CDI:TARGET:C:LINE_OF_SIGHT] The target for the emission--a location--must be within the line of sight of the Hydling.&lt;br /&gt;
 		[CDI:TARGET_RANGE:C:15] And must be, at most, 15 tiles away.&lt;br /&gt;
 		[CDI:MAX_TARGET_NUMBER:C:1] The hydling can only shoot at one target at a time...&lt;br /&gt;
 		[CDI:WAIT_PERIOD:30] and only every 30 ticks (3 tenths of a second at 100 FPS)&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH] Defines a BITE attack that uses teeth.&lt;br /&gt;
 		[ATTACK_SKILL:BITE] Attack uses the BITE skill.&lt;br /&gt;
 		[ATTACK_VERB:nom:noms] &amp;quot;The Hydling noms the Elf in the left first toe, tearing the muscle!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Will use all of the tooth. Note that this can be more than 100.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] Will sink the tooth all the way in. This can also be more than 100.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an EDGE attack.&lt;br /&gt;
 		[ATTACK_PRIORITY:MAIN] Attack is of priority MAIN. Other option is SECOND.&lt;br /&gt;
 		[ATTACK_FLAG_CANLATCH] Attack can latch.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3] Takes 3 ticks to wind up attack and 3 to recover from it.&lt;br /&gt;
                [ATTACK_FLAG_INDEPENDENT_MULTIATTACK] Can use each head independently.&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:NAIL] As above, but for nail instead of teeth.&lt;br /&gt;
 		[ATTACK_SKILL:STANCE_STRIKE] Uses the kicking skill.&lt;br /&gt;
 		[ATTACK_VERB:slice:slices] &amp;quot;You slice the Elf in the left foot and the severed part sails off in an arc!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Uses the whole nail.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] The whole nail goes in.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an edge attack.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3]&lt;br /&gt;
 		[ATTACK_PRIORITY:SECOND]&lt;br /&gt;
&lt;br /&gt;
 	[CHILD:1] Hydling will become an adult at 1 year old.&lt;br /&gt;
&lt;br /&gt;
 	[GENERAL_CHILD_NAME:hydie:hydies] Children will appear as &amp;quot;hydies&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[DIURNAL] Is active during the daytime.&lt;br /&gt;
&lt;br /&gt;
 	[HOMEOTHERM:10070] Has a body temperature of 102 Fahrenheit.&lt;br /&gt;
&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] Can run at 25 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] Can swim at 10 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] Can crawl at 5 kph&lt;br /&gt;
 	[SWIMS_INNATE]Swims innately.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:FEMALE] Defines a caste called FEMALE.&lt;br /&gt;
 		[FEMALE] FEMALE caste is female.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:MALE] As above, but with male.&lt;br /&gt;
 		[MALE] See above.&lt;br /&gt;
&lt;br /&gt;
= Modding utilities =&lt;br /&gt;
&lt;br /&gt;
[http://www.bay12forums.com/smf/index.php?topic=28829.0 A list of many mods and community-developed utilities]&lt;br /&gt;
&lt;br /&gt;
{{Category|Modding}}&lt;br /&gt;
[[Category:v0.31:Guides]]&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223827</id>
		<title>Modding</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223827"/>
		<updated>2016-03-01T11:08:46Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: The word &amp;quot;plans&amp;quot; is a plural form, so we use &amp;quot;are&amp;quot;, not &amp;quot;is&amp;quot;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|14:13, 7 November 2013 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
This is intended to be a guide to inform those new to DF modding on what elements of the game can be modified, and how. After reading through this guide, a user should be capable of editing creatures, entities, materials ''et al'', and creating their own.&lt;br /&gt;
&lt;br /&gt;
Generally, breaking stuff is fine - nothing that can be changed will affect the DF executable, and new additions can be easily removed.&lt;br /&gt;
&lt;br /&gt;
This guide is based on [[40d:Modding guide|Teldin's guide]], originally created for version 0.27.176.39c. Per wiki tradition, it has been updated through all the major releases since then; hopefully it reflects current knowledge.&lt;br /&gt;
&lt;br /&gt;
'''See also:''' [[:Category:DF2014:Modding]]&lt;br /&gt;
&lt;br /&gt;
= Modding Guide =&lt;br /&gt;
&lt;br /&gt;
== Token Reference ==&lt;br /&gt;
&lt;br /&gt;
It's always good to refer to tokens on the wiki. Even experienced modders have to look up tokens! A list of articles about tokens can be found [http://dwarffortresswiki.org/index.php/Token here.]&lt;br /&gt;
&lt;br /&gt;
== Basics of DF modding ==&lt;br /&gt;
&lt;br /&gt;
All the base data that can be edited by prospective modders can be found in the \raw\ folder. This folder contains two subfolders: &amp;quot;graphics&amp;quot; (where you insert [[Graphics set repository|graphics sets]]), and &amp;quot;objects&amp;quot;, which contains all the data for generally everything in the game that is not hardcoded.&lt;br /&gt;
&lt;br /&gt;
Within the \raw\objects folder are a large number of text files - these are the [[raw file|raw files]], and editing them is quite easy - you can also create your own if you wish. For now, take a look at one of the existing files. For example if you open creature_standard.txt it should look something like this:&lt;br /&gt;
&lt;br /&gt;
 creature_standard&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:CREATURE]&lt;br /&gt;
 &lt;br /&gt;
 [CREATURE:DWARF]&lt;br /&gt;
     [DESCRIPTION:A short, sturdy creature fond of drink and industry.]&lt;br /&gt;
     [NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CASTE_NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CREATURE_TILE:1][COLOR:3:0:0]&lt;br /&gt;
     [CREATURE_SOLDIER_TILE:2]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
As you can see, each file comprises a header string stating the file name, a second header stating the type of object data it contains, followed by the contents of the file itself. These are all necessary elements of the file, and without them, the file won't be parsed correctly by the game. You may have also noticed the file naming scheme - this is also important; files containing creatures have names starting with &amp;quot;creature_&amp;quot;, entity file names must begin with &amp;quot;entity_&amp;quot;, etc..&lt;br /&gt;
&lt;br /&gt;
Below the headers, there begins a list of entries. Each entry is made up of its own header (in this case, &amp;quot;[CREATURE:DWARF]&amp;quot;), again stating the type of object, and then the object's unique identifier - if an identifier isn't unique, the game will mess up and you'll get some serious, and potentially very trippy, errors. Below that, we have the body of the entry, which determines the entry's specific properties.&lt;br /&gt;
&lt;br /&gt;
The body of an entry is made up of a series of &amp;quot;tokens&amp;quot;, which are essentially flags that can be added or removed to affect the entry's attributes. Most of these effects are hardcoded: for example, it's possible to make a creature only eat meat with the [CARNIVOROUS] token, but it's impossible to create your own token detailing a specific diet for the creature.&lt;br /&gt;
&lt;br /&gt;
Before we continue, a few key things to remember when modding the raw files:&lt;br /&gt;
&lt;br /&gt;
* Try to avoid modifying the existing raw files when adding objects. It makes removing mods far easier.&lt;br /&gt;
* When adding files, all you need to include to ensure proper references are maintained is the token identifier's.  The game will load up all *.txt in the raw folder, and searches through them by tokens.  For example: You can add a new pair of leather boots and not even have to add it to the item_shoes.txt file, but rather make your own file, say item_shoes_new.txt and ensure you have the token listed, ex. [ITEM_SHOES:ITEM_SHOES_BOOTS_NEW], that's how the game will look for the item.&lt;br /&gt;
* If you want to edit an already-existing creature, always back up the files you plan on editing to a different location. Since v0.31.22, the game no longer loads backup files, but duplicate entries are still a very bad thing.&lt;br /&gt;
* When a new world is generated, all the raw files get copied into a \raw\ folder within the applicable save folder. If you want to change something within a world that's already been generated, you'll have to edit those files, not the ones in ~DF\raw\objects.&lt;br /&gt;
* There's nothing stopping you from just copying an existing creature/entity/whatever, changing the identifier, and modifying it. This can save you a lot of time, especially when it comes to entities... which are coincidentally what we'll be talking about next.&lt;br /&gt;
&lt;br /&gt;
== Modding civilizations (entities) ==&lt;br /&gt;
&lt;br /&gt;
Entities - the objects that determine how civilizations work - are stored in entity_default.txt (though, like all other files, you may add more). They follow the same format as any other raw file:&lt;br /&gt;
&lt;br /&gt;
 entity_default&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:ENTITY]&lt;br /&gt;
 &lt;br /&gt;
 [ENTITY:ENTITYNAME]&lt;br /&gt;
     [CREATURE:CREATURETYPE]&lt;br /&gt;
     [TRANSLATION:LANGUAGETYPE]&lt;br /&gt;
     [BIOME_SUPPORT:BIOMETOKEN:FREQENCY]&lt;br /&gt;
     ...[OTHER TAGS]...&lt;br /&gt;
&lt;br /&gt;
Most of the time, it doesn't matter which order these tokens are in or where they're placed so long as they're below the &amp;quot;ENTITY:&amp;quot; identifier, but there are some important exceptions in the case of other files, especially creatures, which can contain a lot of &amp;quot;nested&amp;quot; tokens.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[CREATURE:]&amp;quot; links the civilization with a specific creature defined in a creature file. This is the creature that'll be making up the entity's population, and will therefore be the creature you'll be playing as in fortress or adventure mode if the entity is a playable one. For example, if you wanted to do something silly, you could switch the &amp;quot;CREATURE:DWARF&amp;quot; entry in entity_default.txt with &amp;quot;CREATURE:ELF&amp;quot; and you would be marching elves around in fortress mode, although they would still use dwarven technology and language and names and so forth.&lt;br /&gt;
&lt;br /&gt;
Oh, and before you get any funny ideas - it ''is'' possible to define more than one creature for a civ, but that won't work in quite the way you probably expect; later on, in the creature section, you'll learn about castes, which will provide a much more viable alternative, so try to bear with us until then.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[TRANSLATION:]&amp;quot; defines the language file that the entity will be using, which will determine what their untranslated words are for things. This doesn't determine which words they use for naming things, only the way those words are spelled. The default language files are HUMAN, DWARF, ELF, and GOBLIN.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[BIOME_SUPPORT:]&amp;quot; defines the biomes that civs will attempt to settle in. The &amp;quot;FREQUENCY&amp;quot; value determines the likelihood of them building there, but also raises an important point:  Most of the values you'll be setting for things are relative to each other. If one were to type:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:1]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:2]&lt;br /&gt;
&lt;br /&gt;
This would have very much the same effect as:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:5]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:10]&lt;br /&gt;
&lt;br /&gt;
This holds true for a lot of values throughout the files, excluding when it simply doesn't make sense, such as in materials.&lt;br /&gt;
&lt;br /&gt;
You can find many details about the rest of the civilization tokens [[entity token|here]]. Besides those mentioned, some fundamental ones are the CIV_CONTROLLABLE token, which lets you control the civ in fortress mode, the INDIV_CONTROLLABLE token, which allows you to play the civ in adventure mode as an outsider, and the ADVENTURE_TIER token, which allows you to play a civ native (non-outsider) in adventure mode. Other tokens that you should pay attention to are START_BIOME and the ones regarding sites, but in general, you can just run through the aforementioned list and add or remove what you want.&lt;br /&gt;
&lt;br /&gt;
If you have more than one civ with the CIV_CONTROLLABLE token, all the available civs from those entities will appear in the group selection section on the embark screen. It may not be immediately obvious from which species each civ may be - while this can be determined from legends mode, the topmost species in the &amp;quot;neighbors&amp;quot; display in the embark screen is always the same as the currently selected species; if your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a civ (and therefore a species if there is more than one) at random.&lt;br /&gt;
&lt;br /&gt;
You can also attempt to discern the civ yourself by the names it uses - this is the realm of &amp;quot;symbols&amp;quot;, collections of words centered around a specific concept. The civ will use the words comprising whatever symbols are applicable to it for various things. This association might be a little obfuscating at first, so I'll run through it. Let's refer to the DWARF entity:&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:WAR:NAME_WAR]&lt;br /&gt;
 [SUBSELECT_SYMBOL:WAR:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:BATTLE:NAME_BATTLE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:BATTLE:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:SIEGE:NAME_SIEGE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:SIEGE:VIOLENT]&lt;br /&gt;
&lt;br /&gt;
Here we can see that dwarves will generally name their wars first after words in the &amp;quot;NAME_WAR&amp;quot; symbol group, and then after words in the &amp;quot;VIOLENT&amp;quot; symbol group. This might, for example, result in a war being named &amp;quot;The War of Carnage&amp;quot;. The symbols used for the other types of conflict are arrayed in a similar fashion. It would be trivial to replace the instances of VIOLENT with, say, PEACE and end up with a battle called &amp;quot;The Clash of Calm&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:ROAD:NAME_ROAD]&lt;br /&gt;
 [SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]&lt;br /&gt;
 [SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]&lt;br /&gt;
 [SELECT_SYMBOL:WALL:NAME_WALL]&lt;br /&gt;
&lt;br /&gt;
The above applies here. Dwarves are fond of naming their roads and tunnels after roads and tunnels.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:ARTIFICE]&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:EARTH]&lt;br /&gt;
 [CULL_SYMBOL:ALL:DOMESTIC]&lt;br /&gt;
 [CULL_SYMBOL:ALL:SUBORDINATE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:EVIL]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UNTOWARD]&lt;br /&gt;
 [CULL_SYMBOL:ALL:FLOWERY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATIVE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UGLY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATOR]&lt;br /&gt;
&lt;br /&gt;
This section deals with everything else. The things that haven't already been dealt with (hence the &amp;quot;REMAINING&amp;quot;) - such as site names, kingdom names, the names of individuals, and such - will have names from the ARTIFICE and EARTH symbol groups. After that the dwarf entity is told to cull all innapropriate symbols - this applies to everything (hence the &amp;quot;ALL&amp;quot;) so if the game happens to choose a symbol associated with, say, EVIL for one of the battles, it'll scrap that name and try again. This sort of thing adds a lot of flavour to DF's entities and can account for a lot of a civ's perceived personality.&lt;br /&gt;
&lt;br /&gt;
Another basic thing to note:  Any entity token that's dealing with weapons, armor, clothing, etc., will state the items that the civ can build natively, not necessarily the ones they can wear or use. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them. &lt;br /&gt;
&lt;br /&gt;
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's &amp;quot;ENTITY:&amp;quot; identifier! This can be anything so long as it's not already existing.&lt;br /&gt;
&lt;br /&gt;
At the end of some of the default entries you'll find a list of positions, both ones that'll directly affect you in fort mode (such as nobles) and ones that'll primarily affect worldgen and adventure mode. A list of the tokens applicable to positions can be found [[position token|here]]; they don't require a great deal of explanation.&lt;br /&gt;
&lt;br /&gt;
== Modding the creatures ==&lt;br /&gt;
&lt;br /&gt;
Creature modding is great fun. You can change nearly any aspect of a creature or make your own completely from scratch.&lt;br /&gt;
&lt;br /&gt;
Modding creatures is very similar to modding civs: it's just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all of the information about each and every non-random creature in the game, from animals to dwarves to goblins to even caravan wagons. A lot of the creature tokens are fairly self-explanatory; you can find a list of such tokens [[creature token|here]]. But before you start creating your own creatures, you'll want to learn how the tissues system works.&lt;br /&gt;
&lt;br /&gt;
=== Creature materials and tissues ===&lt;br /&gt;
&lt;br /&gt;
In the most basic sense, a creature is a series of bodyparts. These parts are defined in their own file, and we'll talk about them later. As a specific aspect of how creatures work which throws off a lot of prospective modders is the relationship between bodyparts, tissues, and materials. We're going to show you part of the creature entry for a bronze colossus (bear with us):&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [TISSUE:BRONZE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
At the top, we can see the &amp;quot;BODY:&amp;quot; token, followed by a list of bodyparts. As you've probably guessed, these parts make up the physical form of the colossus. But the colossus has to be made out of something - it has to have tissues. And those tissues also have to be made out of something - in this case, bronze.&lt;br /&gt;
&lt;br /&gt;
Below the BODY token you'll see a TISSUE token, followed by an identifier, much like the others we've seen. The TISSUE block is determining how the tissue works, and which purposes it'll serve. As the colossus is just going to be made out of this one tissue, this tissue needs to act like bone, muscle, and everything else combined, hence the MUSCULAR, FUNCTIONAL and STRUCTURAL tokens. The tissue also references a material - INORGANIC:BRONZE - the properties of which are declared in the inorganic materials file, and the tissue is subsequently made out of this material. With us so far?&lt;br /&gt;
&lt;br /&gt;
Below the tissue definition is the TISSUE_LAYER line. TISSUE_LAYER allows you to control where each tissue is applied. Its first argument defines if it's to search by bodypart category (BY_CATEGORY), bodypart type (BY_TYPE), or look for a specific part (BY_TOKEN). That's followed by the parts argument itself, which is in this case ALL (so the game's looking for parts in all categories, which is to say, every bodypart). This is followed by the tissue to be applied, BRONZE. So the TISSUE_LAYER token is telling the game to select all bodyparts in every category and make them out of the tissue &amp;quot;BRONZE&amp;quot;. The colossus is now made of bronze.&lt;br /&gt;
&lt;br /&gt;
By now you're probably thinking &amp;quot;Wow, if this was for a creature made out of however many tissues, this would be amazingly longwinded&amp;quot;. And you're right. Luckily, there are two methods by which we can speed things up a lot.&lt;br /&gt;
&lt;br /&gt;
Firstly, there are material and tissue templates. Let's say you were going to make a lot of creatures out of bronze, and you didn't want to have to copy and paste the bronze tissue all over the place. Instead, you create a tissue template. This goes, as you've probably guessed, in a tissue template file.&lt;br /&gt;
&lt;br /&gt;
 [TISSUE_TEMPLATE:BRONZE_TEMPLATE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
&lt;br /&gt;
Now, instead of applying the tissue to each and every bronze creature you're making, you can just refer to the template:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [USE_TISSUE_TEMPLATE:BRONZE:BRONZE_TEMPLATE]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Material templates work in the same way, but refer to materials instead of tissues.&lt;br /&gt;
&lt;br /&gt;
However, if we're looking at something like a dwarf, even with the templates, editing can get very slow indeed:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BONE:BONE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:CARTILAGE:CARTILAGE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:TOOTH:TOOTH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:EYE:EYE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:NERVE:NERVE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BRAIN:BRAIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LUNG:LUNG_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HEART:HEART_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LIVER:LIVER_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:GUT:GUT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:STOMACH:STOMACH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:PANCREAS:PANCREAS_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SPLEEN:SPLEEN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:KIDNEY:KIDNEY_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This is where body detail plans come in. Detail plans, of course, have their own file, and they are designed to help automate some of the more common processes in creature creation. The first entry in b_detail_plan_default.txt does exactly what we've been trying to do above: it takes all the common materials and shoves them into one plan, which can be referenced with a single token.&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Much easier. But what about the TISSUE_LAYER tokens? Will we have to type out all of those manually?&lt;br /&gt;
&lt;br /&gt;
Nope, detail plans have that covered as well. It's possible to place variable arguments into a detail plan. For example:&lt;br /&gt;
&lt;br /&gt;
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_UPPER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_LOWER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM_UPPER:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:NOSE:ARG5:4:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
First an argument is placed in the plan (ARG1, ARG2 etc.), followed by the thickness of the tissue that will be inserted in place of the argument. So when we reference the VERTEBRATE_TISSUE_LAYERS plan, we'll be able to do something like this:&lt;br /&gt;
&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
&lt;br /&gt;
ARG1 in the detail plan is replaced by SKIN, the first tissue we entered. ARG2 is replaced by FAT, ARG3 by muscle, ARG4 by bone, and ARG5 by CARTILAGE. Hence, our creature's bodypart designated as BODY is made up of SKIN with thickness 1, FAT with thickness 5, and MUSCLE with thickness 50. Its nose is made up of SKIN (thickness 1) and CARTILAGE (thickness 4).&lt;br /&gt;
&lt;br /&gt;
Things left out of the body plans aside, our dwarf's entire body, material, tissue and tissue layer tokens have been boiled down to this:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This can save you a lot of time and space if you're making lots of changes common to many creatures. In general, if you're making a creature that's fleshy or chitinous, there're detail plans already included in the game to help you out. You should only have to resort to declaring tissues individually (like our bronze colossus) if you're doing something really out-of-the-ordinary.&lt;br /&gt;
&lt;br /&gt;
Another great thing about templates (and so, detail plans) is that they can be modified after being declared. Let's say we wanted our dwarves to be perpetually on fire (don't ask). We declare the body stuff normally:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We then select the appropriate material:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We don't want them burning to death, so we'll need to stop that from happening:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     [SELECT_MATERIAL:ALL]&lt;br /&gt;
         [HEATDAM_POINT:NONE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Note that this makes use of DF's built-in temperature scale. You can read more about that [[Temperature|on this page]]. We're also referencing material tokens, which we haven't gone over yet - we'll talk about making your own materials later.&lt;br /&gt;
&lt;br /&gt;
=== Creature castes ===&lt;br /&gt;
&lt;br /&gt;
Another potentially extremely powerful part of the creature raws is the caste system. The caste system handles both true biological castes and lesser variations, such as sexes.&lt;br /&gt;
&lt;br /&gt;
To understand the true potential of the caste system, we only need to take a look at the raws for antmen, found in creature_subterrenean.txt:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [CASTE:WORKER]&lt;br /&gt;
         [CASTE_NAME:worker ant woman:worker ant women:worker ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:10000]&lt;br /&gt;
     [CASTE:SOLDIER]&lt;br /&gt;
         [CASTE_NAME:soldier ant woman:soldier ant women:soldier ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:1000]&lt;br /&gt;
     [CASTE:DRONE]&lt;br /&gt;
         [MALE]&lt;br /&gt;
         [CASTE_NAME:drone ant man:drone ant men:drone ant man]&lt;br /&gt;
         [POP_RATIO:5]&lt;br /&gt;
     [CASTE:QUEEN]&lt;br /&gt;
         [FEMALE]&lt;br /&gt;
         [CASTE_NAME:queen ant woman:queen ant women:queen ant woman]&lt;br /&gt;
         [POP_RATIO:1]&lt;br /&gt;
     [SELECT_CASTE:WORKER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:SOLDIER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:QUEEN]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
     [SELECT_CASTE:DRONE]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH:2WINGS]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
         [FLIER]&lt;br /&gt;
     [SELECT_CASTE:ALL]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_MATERIALS]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_TISSUES]&lt;br /&gt;
         [BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]&lt;br /&gt;
         [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]&lt;br /&gt;
         [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]&lt;br /&gt;
             [ATTACK_SKILL:GRASP_STRIKE]&lt;br /&gt;
             [ATTACK_VERB:punch:punches]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
It's evident that the process of creating and editing castes is comparable to the modifications we were making to tissues and materials earlier: A caste is declared, and modifications to the base creature are made. Declared castes can be selected and subsequently modified, again, just like tissues and materials.&lt;br /&gt;
&lt;br /&gt;
In this case, each caste is declared, given its own name, and a POP_RATIO, which determines how commonly a birth results in that caste - for every 10000 workers born, there'll be an average of 1000 soldiers, 5 drones and one queen. You've probably also noticed that the DRONE and QUEEN castes have the MALE and FEMALE tokens respectively - these tokens determine how breeding works. A creature without both a MALE caste and a FEMALE caste will be unable to breed (no asexual creatures yet, unfortunately). As they lack FEMALE, the workers and soldiers are unable to breed with the male drones.&lt;br /&gt;
&lt;br /&gt;
After this, there are some modifications to bodyparts. In this case, the drones have wings and the FLIER token, which the other castes lack. It's entirely possible for creatures of different castes to have completely different body stuctures, even to the extent that they don't resemble each other at all. If you read the section of this guide that dealt with entities, you may remember a passing mention of multi-creature civilisations and how they don't quite work as you may think they would. The castes system is your workaround. You could create a caste that is, for all intents and purposes, a human, and another caste of the same creature that acts exactly like a giant cave spider, put the creature in a civ, and get a human-spider civ. The only flaw in this approach is that the castes will interbreed.&lt;br /&gt;
&lt;br /&gt;
That's the most complex components of creature creation out of the way. You should find the rest trivial by comparison.&lt;br /&gt;
&lt;br /&gt;
== Modding items ==&lt;br /&gt;
&lt;br /&gt;
Items are fairly simple to deal with. By default, each item type is contained in its own file; this may help make browsing for a specific item easier, but from a purely technical point of view, it's possible to throw all items into one file. Unfortunately, item tokens don't seem to be especially well-documented (at least not as well as the other object types), but you should be able to figure out most things by way of our explanations and your assumptions.&lt;br /&gt;
&lt;br /&gt;
Let's look at the entry for, of course, the thong:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_PANTS:ITEM_PANTS_THONG]&lt;br /&gt;
 [NAME:thong:thongs]&lt;br /&gt;
 [LAYER:UNDER]&lt;br /&gt;
 [COVERAGE:25]&lt;br /&gt;
 [LAYER_SIZE:10]&lt;br /&gt;
 [LAYER_PERMIT:30]&lt;br /&gt;
 [MATERIAL_SIZE:1]&lt;br /&gt;
 [SOFT]&lt;br /&gt;
 [LEATHER]&lt;br /&gt;
 [STRUCTURAL_ELASTICITY_WOVEN_THREAD]&lt;br /&gt;
&lt;br /&gt;
Most of these are pretty obvious if one compares them to the other entries in the file. There's a layer for the item, determining where it's worn; a coverage value to determine how well it protects you from cold and other things; a size token to determine how much it counts for when it's under something else; a layer permit token to determine how much can be worn under it; and a material size token to determine how much raw material it takes to make it.&lt;br /&gt;
&lt;br /&gt;
Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere. Simple! These tokens work by tying into material properties - some materials are designated as suitable for making hard items, some for soft, etc..&lt;br /&gt;
&lt;br /&gt;
Weapons involve a little more detail:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_WEAPON:ITEM_WEAPON_SWORD_2H]&lt;br /&gt;
 [NAME:two-handed sword:two-handed swords]&lt;br /&gt;
 [SIZE:900]&lt;br /&gt;
 [SKILL:SWORD]&lt;br /&gt;
 [TWO_HANDED:67500]&lt;br /&gt;
 [MINIMUM_SIZE:62500]&lt;br /&gt;
 [MATERIAL_SIZE:5]&lt;br /&gt;
 [ATTACK:EDGE:100000:8000:slash:slashes:NO_SUB:1250]&lt;br /&gt;
 [ATTACK:EDGE:50:4000:stab:stabs:NO_SUB:1000]&lt;br /&gt;
 [ATTACK:BLUNT:100000:8000:slap:slaps:flat:1250]&lt;br /&gt;
 [ATTACK:BLUNT:100:1000:strike:strikes:pommel:1000]&lt;br /&gt;
&lt;br /&gt;
SIZE determines how heavy the weapon is. This has a substantial effect on weapon effectiveness. SKILL determines which skill is used in using the weapon; a list of skills can be found [[skill token|on this page]]. MINIMUM_SIZE determines the minimum size a creature must be before the weapon can be wielded, while TWO_HANDED determines how large a creature must be in order to wield the weapon with one hand.&lt;br /&gt;
&lt;br /&gt;
Attacks take a little more explanation. The first value determines the contact area of the weapon's attack; this should be high for slashing weapons and low for bludgeoning, piercing and poking ones. The second value determines how deep the weapon penetrates - for BLUNT attacks this value is ignored as they're not supposed to penetrate anyway, but in the case of EDGE attacks it should generally be lower for slashing attacks and higher for stabbing attacks.&lt;br /&gt;
&lt;br /&gt;
Following these are the nouns and verb used; they should be self-explanatory. Finally, we have the velocity modifier, which has a multiplying effect on the weapon's size for the purposes of determining how powerful it is in combat.&lt;br /&gt;
&lt;br /&gt;
Other, more miscellaneous items are generally simple and shouldn't require any further explanation.&lt;br /&gt;
&lt;br /&gt;
Once you've made an item, you just add it to the civ entry so a civilization can actually craft it, and it's done.&lt;br /&gt;
&lt;br /&gt;
== Modding language files ==&lt;br /&gt;
&lt;br /&gt;
Let's say you added a whole new species. Sure, you could just swipe one of the existing translation files and steal their language for your species, but that's the lazy way! If you want to create a whole new language, it's very simple.&lt;br /&gt;
&lt;br /&gt;
First, you'd need a whole new language_RACE file, such as language_LIZARDMAN.txt, along with &amp;quot;language_LIZARDMAN&amp;quot; at the top of the file proceeded by [OBJECT:LANGUAGE] and [TRANSLATION:LIZARDMAN]. After that, it's just a matter of copy-pasting one of the existing language lists and editing the finished 'translated' word. That's it! Then just add the translation link to your civ in entity_default.txt and it'll be added to the game on worldgen.&lt;br /&gt;
&lt;br /&gt;
(Note that the name of the file doesn't actually matter; however, it's good form to name the file after a creature if only that creature speaks the language)&lt;br /&gt;
&lt;br /&gt;
== Modding body parts ==&lt;br /&gt;
&lt;br /&gt;
Imagine you have this fantastic idea for a multi-tentacled winged spider-monster. Sounds great! But in order to make this a reality you may need to create a new set of body parts for it. That's no problem! Making body parts is easy, though it may look complicated at first. &lt;br /&gt;
&lt;br /&gt;
All of the default body definitions are located in body_default.txt and then linked to a creature in the creature's entry. We've talked about how bodyparts make up creatures earlier, in the creature section. You can mix and match them in the creature entry and it makes no difference, as long as they're there: each bodypart will link itself to the appropriate connection automatically when the creature is first created.&lt;br /&gt;
&lt;br /&gt;
Body parts work by sections: you can add as many sections as you want to a bodypart definition, but generally you should keep it fairly low for ease of use. Each body section entry is in the, very simple, format:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BODYNAME]&lt;br /&gt;
 [BP:TOKENID:name][TOKENSGOHERE][DEFAULT_RELSIZE:][CATEGORY:WHATEVER]&lt;br /&gt;
&lt;br /&gt;
The most important tokens are &amp;quot;CONTYPE&amp;quot; and &amp;quot;CON&amp;quot;: CONTYPE means the bodypart in question is connected to a certain ''type'' of bodypart, while CON means it's connected to a ''specific'' one. TOKENID is yet another identifier, which should be unique, as it's referenced every time something uses CON or BY_TOKEN. DEFAULT_RELSIZE defines, of course, what the bodypart's size is in relation to the other parts. CATEGORY defines a category for the part, which can be unique or shared with other parts. This is referenced whenever BY_CATEGORY is used.&lt;br /&gt;
&lt;br /&gt;
A list of bodypart tokens can be found [[body token|here]].&lt;br /&gt;
&lt;br /&gt;
Let's take a simple example, a head:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BASIC_HEAD]&lt;br /&gt;
 [BP:HD:head:STP][CONTYPE:UPPERBODY][HEAD][CATEGORY:HEAD]&lt;br /&gt;
 [DEFAULT_RELSIZE:300]&lt;br /&gt;
&lt;br /&gt;
It connects directly to an upper body.&lt;br /&gt;
&lt;br /&gt;
 [BODY:2EYES]&lt;br /&gt;
     [BP:REYE:right eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][RIGHT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
     [BP:LEYE:left eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][LEFT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
&lt;br /&gt;
These are a pair of eyes, connecting to the head.&lt;br /&gt;
&lt;br /&gt;
 [BODY:HUMANOID]&lt;br /&gt;
     [BP:UB:upper body:upper bodies][UPPERBODY][CATEGORY:BODY_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:LB:lower body:lower bodies][CON:UB][LOWERBODY][CATEGORY:BODY_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:HD:head:STP][CON:UB][HEAD][CATEGORY:HEAD]&lt;br /&gt;
         [DEFAULT_RELSIZE:300]&lt;br /&gt;
     [BP:RUA:right upper arm:STP][CON:UB][LIMB][RIGHT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LUA:left upper arm:STP][CON:UB][LIMB][LEFT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RLA:right lower arm:STP][CON:RUA][LIMB][RIGHT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LLA:left lower arm:STP][CON:LUA][LIMB][LEFT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RH:right hand:STP][CON:RLA][GRASP][RIGHT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:LH:left hand:STP][CON:LLA][GRASP][LEFT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:RUL:right upper leg:STP][CON:LB][LIMB][RIGHT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:LUL:left upper leg:STP][CON:LB][LIMB][LEFT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:RLL:right lower leg:STP][CON:RUL][LIMB][RIGHT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:LLL:left lower leg:STP][CON:LUL][LIMB][LEFT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:RF:right foot:right feet][CON:RLL][STANCE][RIGHT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
     [BP:LF:left foot:left feet][CON:LLL][STANCE][LEFT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
&lt;br /&gt;
An entire humanoid body. The foot bone's connected to the ankle bone...&lt;br /&gt;
&lt;br /&gt;
&amp;quot;BODYGLOSS&amp;quot; entries, which you can sometimes find applied to creature entries, are simply replacement words for specific part name strings in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in body_default.txt; you can then use this in a creature via &amp;quot;[BODYGLOSS:CLAW_HAND]&amp;quot; and it'll replace all instances of &amp;quot;hand&amp;quot; with &amp;quot;claw&amp;quot; in that creature. Be warned, however—if you were to, say make a bodygloss [BODYGLOSS:EARSTALK:ear:stalk:ears:stalk], it would not only change &amp;quot;ear&amp;quot; and &amp;quot;ears&amp;quot; to &amp;quot;stalk&amp;quot; and &amp;quot;stalks&amp;quot;, it would also change &amp;quot;h'''ear'''t&amp;quot; to &amp;quot;h'''stalk'''t&amp;quot;! For all intents and purposes the body part will still function as the proper part, though.&lt;br /&gt;
&lt;br /&gt;
== Modding plants ==&lt;br /&gt;
&lt;br /&gt;
Plants are, again, not unlike creatures. With what you've learned so far in regard to tokens and the materials system, running through the notes included in plant_standard.txt should explain most things. [[Plant token|Here's the list of plant-specific tokens]].&lt;br /&gt;
&lt;br /&gt;
Below is the [[plump helmet]] raw description:&lt;br /&gt;
&lt;br /&gt;
 [PLANT:MUSHROOM_HELMET_PLUMP]&lt;br /&gt;
 	[NAME:plump helmet][NAME_PLURAL:plump helmets][ADJ:plump helmet]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
 &lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
Let's look at this line by line:&amp;lt;br&amp;gt;&lt;br /&gt;
First, we define its file name. In this case it's MUSHROOM_HELMET_PLUMP. Next we define its in-game name (plump helmet) and its adjective for if you were to craft with it (e.g. plump helmet earrings).&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
&lt;br /&gt;
This defines the structure and material of the plant. It references STRUCTURAL_PLANT_TEMPLATE in the first line, so if you were to say, add wings to the template, the plump helmet plant would be winged. This is for the plant itself, not the end plump helmets.&lt;br /&gt;
&lt;br /&gt;
After that we get our edible tokens. These say that vermin can eat the plant, and it can be eaten raw or cooked by your dwarves. So if you wanted a plant vermin would leave alone, you'd remove the [EDIBLE_VERMIN] token.&lt;br /&gt;
&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
&lt;br /&gt;
Next, [PICKED_TILE:161] is the character (161 in this case) shown when the crop is harvested. See [[Main:Character table|character table]] for a table of usable tiles. [PICKED_COLOR:6:13:0] is the color used for the crop's tile when harvested. It's in a foreground:background:brightness format. See [[color]] for the colors usable.&lt;br /&gt;
&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
&lt;br /&gt;
[GROWDUR:300] is how long it takes for your crop to grow. There are 1008 growdur units in a season.&amp;lt;br&amp;gt;&lt;br /&gt;
[VALUE:2] Is the value of harvested plant (default 1). Appears to have no effect in version 0.31.&lt;br /&gt;
&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
&lt;br /&gt;
This defines the plant's alcohol states. [STATE_NAME_ADJ:ALL_SOLID:] is the frozen name, followed is the actual drink name, and then its boiling name. These are achieved by either Scorching or Freezing climates. [DISPLAY_COLOR] is, of course, color, and [EDIBLE_RAW] and [EDIBLE_COOKED] are saying you can drink the alcohol raw or cooked.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
&lt;br /&gt;
After that we get our seed template:&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
&lt;br /&gt;
And all this says is that the seeds may be eaten by vermin or cooked. Then it gives the name of our plant's seed, its plural name, its foreground, background, and brightness colors, followed by its seed material; said material should have [SEED_MAT] to permit proper stockpiling.&lt;br /&gt;
&lt;br /&gt;
And finally for the last chunk we have this:&lt;br /&gt;
&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
First we define what season(s) the plant may grow in, then we define how frequently this plant is generated in a particular area, followed by how many harvested crop items may come from 1 plant. [PREFSTRING:] is what your dwarves like about the plant, which in this case is the rounded tops. [WET][DRY] are the conditions under which the plant can grow. Wet means it can grow close to water, dry means it can grow away from water. This does not mean you can grow the plant on dry stone however. It is just for natural spawning of the plant.&amp;lt;br&amp;gt;&lt;br /&gt;
[BIOME] Is what biome the plant grows in. [UNDERGROUND_DEPTH:Minimum:Maximum] Is the highest and lowest cavern levels that the plant can appear in if its biome is subterranean. Dwarven civilizations will only export (via the embark screen or caravans) things that available at depth 1. Defaults to 0:0 (surface only).&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly, [SHRUB_TILE] is the character used for the naturally spawning shrub of this plant, [DEAD_SHRUB] is the dead shrub character. [SHRUB_COLOR] Is the shrub's color, and [DEAD_SHRUB_COLOR] is, of course, the dead shrub's color.&lt;br /&gt;
&lt;br /&gt;
While this may or may not look like a lot of tokens, it's very easy. Just copy an existing plant and edit it to your new plant.&amp;lt;br&amp;gt;&lt;br /&gt;
For the rest of the tokens, see [[plant token]].&lt;br /&gt;
&lt;br /&gt;
== Workshops ==&lt;br /&gt;
&lt;br /&gt;
Workshops are raw-designed pretty differently from everything else in the game, being buildable structures rather than items or methods to gain items. However, they are fairly simple. For example, here's the raw for the [[soap maker's workshop]]:&lt;br /&gt;
&lt;br /&gt;
 [BUILDING_WORKSHOP:SOAP_MAKER]&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
 	[BLOCK:1:0:0:1]&lt;br /&gt;
 	[BLOCK:2:0:0:1]&lt;br /&gt;
 	[BLOCK:3:0:0:0]&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	[TILE:0:2:' ':' ':'/']&lt;br /&gt;
 	[TILE:0:3:'-':' ':' ']&lt;br /&gt;
 	[COLOR:0:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:3:6:0:0:0:0:0:0:0:0]&lt;br /&gt;
 	[TILE:1:1:' ':' ':'=']&lt;br /&gt;
 	[TILE:1:2:'-':' ':8]&lt;br /&gt;
 	[TILE:1:3:' ':' ':150]&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:2:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:3:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[TILE:2:1:'-':' ':8]&lt;br /&gt;
 	[TILE:2:2:' ':' ':8]&lt;br /&gt;
 	[TILE:2:3:' ':150:' ']&lt;br /&gt;
 	[COLOR:2:1:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:3:0:0:0:6:0:0:0:0:0]&lt;br /&gt;
 	[TILE:3:1:150:' ':8]&lt;br /&gt;
 	[TILE:3:2:' ':' ':8]&lt;br /&gt;
 	[TILE:3:3:' ':240:' ']&lt;br /&gt;
 	[COLOR:3:1:6:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:2:0:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:3:0:0:0:7:0:1:0:0:0]&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
&lt;br /&gt;
A line-by-line breakdown:&lt;br /&gt;
&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
&lt;br /&gt;
These are the name of the workshop (&amp;quot;Soap Maker's Workshop&amp;quot;) and [[color]] of the workshop's name when examined with 'q' (White with a black background).&lt;br /&gt;
&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
&lt;br /&gt;
DIM refers to how large the workshop will be, in this case 3 wide, 3 tall. WORK_LOCATION tells where the creature using it (usually a dwarf) will work, numbered from the top right--in this case, 2:2, or the middle. Multiple work locations can be defined, even outside the dim.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
&lt;br /&gt;
These refer to the worker required to build it (soap maker) and the key used to build it in the workshop menu (capital S).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  	[BLOCK:1:0:0:1]&lt;br /&gt;
 	...&lt;br /&gt;
This is a bit more complex, and is where we get to the meaty part of workshop making--the tiles' properties. BLOCK refers to which tiles will be untraversable--1 means blocked, 0 means unblocked. The first number refers to row, and the next 3 refer to column, so 1:0:0:1 means that, on the first row, the first two tiles will be unblocked and the last will be blocked.&lt;br /&gt;
&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	...&lt;br /&gt;
The TILE token tells which tile will go where. note, however, that there are 5 entries here instead of 4. The first number, in this case, refers to build stage, numbered from 0 to 3; 3 or 1 is fully built (depending on whether there are stages), 0 is just placed, and 2 is always an intermediate stage, while 1 is usually an intermediate stage. Whether 1 is an intermediate stage or not depends on if there are a 2 and 3 stage; if 2 and 3 exist, 1 will be intermediate. The second number and beyond are similar to BLOCK; however, instead of 1s and 0s, you must input tiles. The tiles themselves can be given in quotes (as in ' ') or given as a number, which can be looked up [[Tilesets|here]]. Here, we have 150, which is û.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	...&lt;br /&gt;
Color is as TILE, but with colors instead of tiles; however, colors are made up of 3 numbers each or MAT. MAT refers to the color of the material used to make it; the 3 numbers refer to foreground:background:foreground brightness, and can be looked up [[Color|here]]. For example, 4:2:1 will give you bright red with a dark green background.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
These refer to items required to build the building. These are in the same format as [[Reaction|reaction reagents and products]]--quantity:[[Item token|item]]:[[Material token|material]]. You'll learn more about those on the article about [[Reaction|reactions]], though. The second BUILD_ITEM is special-- it uses modifiers exclusively to determine its requirements. BUILDMAT refers to wood logs, wood blocks, stone boulders, and stone blocks; WORTHLESS_STONE_ONLY means it can't use economic stone; CAN_USE_ARTIFACT means that it... can use artifacts. EMPTY, in the bucket's case, means that the bucket must be empty.&lt;br /&gt;
&lt;br /&gt;
More can be seen at the [[Building token|building tokens]] article.&lt;br /&gt;
&lt;br /&gt;
== Reactions ==&lt;br /&gt;
&lt;br /&gt;
An in-depth guide for reactions is available [[Reactions|here]].&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
As we've seen when talking about creatures, materials are vital. Materials show up in two forms: material templates, which generally show up in creatures, and specific materials (designated as &amp;quot;inorganic&amp;quot;), which are (by default, at least) consigned purely to metal and stone types.&lt;br /&gt;
&lt;br /&gt;
Let's take a look at METAL_TEMPLATE in material_template_default.txt. It's evident that most of the basic properties of metals are already defined in the template - it goes red and melts at a high enough temperature, it's heavy, and (as noted by the very bottom token) is a metal. We already know just how useful templates can be to creatures, and the same applies to other materials.&lt;br /&gt;
&lt;br /&gt;
Now let's take a look at inorganic_metal.txt. You can see that the metals here refer to the templates, and, just like we did with creatures, then modify the properties of that template and expand upon it.&lt;br /&gt;
&lt;br /&gt;
Finally, let's look at inorganic_stone_mineral.txt. Here we can see that in addition to the changes made to the template, there are also ENVIRONMENT tokens - these tell the game where to place these minerals during worldgen.&lt;br /&gt;
&lt;br /&gt;
[[material definition token|Here's a list of material tokens]]. It should also help you out with any modifications you want to make regarding those creature modifications we were making a while back. See, it all ties together in the end. The beauty of the current materials system is that there's actually very little difference between, say, leather and iron - they're fundamentally the same thing, just with different properties, which is how things really should be.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
The Hydling by Mysteryguye (annotated, updated and separated into blocks by Putnam)&lt;br /&gt;
&lt;br /&gt;
 [CREATURE:HYDLING]&lt;br /&gt;
 	[DESCRIPTION:A seven-headed small hairy thing, about the size of a dog. It is very loyal to its masters, and will promptly disembowel any enemy straying too close.]&lt;br /&gt;
 This is the description that shows up in-game when viewing the creature.&lt;br /&gt;
&lt;br /&gt;
 	[NAME:hydling:hydlings:hydlish] If there were a civ made of hydlings, it would appear as &amp;quot;hydlings&amp;quot; in the neighbors screen.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE_NAME:hydling:hydlings:hydlish]&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_TILE:'='][COLOR:2:0:1] Will appear as a light green &amp;quot;=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[PETVALUE:78][NATURAL] Creature is known to be naturally occurring by the game. Will cost 40 embark points to buy.&lt;br /&gt;
&lt;br /&gt;
 	[LARGE_ROAMING] Will spawn outdoors, wandering around.&lt;br /&gt;
&lt;br /&gt;
 	[COMMON_DOMESTIC][TRAINABLE][PET] Can be bought on embark as a pet, war animal, or hunting animal.&lt;br /&gt;
&lt;br /&gt;
 	[BONECARN] Can eat meat and bones only--no vegetables.&lt;br /&gt;
&lt;br /&gt;
 	[PREFSTRING:loyalty] Dwarves will like it for its loyalty.&lt;br /&gt;
&lt;br /&gt;
 	[LIKES_FIGHTING] Will attack rather than flee.&lt;br /&gt;
&lt;br /&gt;
 	[BODY:BASIC_2PARTBODY:7HEADNECKS:BASIC_FRONTLEGS:BASIC_REARLEGS:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:SPINE:BRAIN:SKULL:3TOES_FQ_REG:3TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_FANGS:RIBCAGE]&lt;br /&gt;
&lt;br /&gt;
 Has a lower body, upper body, 4 legs, a tail, ten eyes, ten ears, five noses, two lungs, a heart, guts, a pancreas etc., and 5 heads with all that goes with those.&lt;br /&gt;
&lt;br /&gt;
 	[BODYGLOSS:PAW] Feet will be called &amp;quot;paws&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_MATERIALS] Declares the standard materials that most creatures' tissues are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_TISSUES] This declares the tissues that the creature's tissue layers are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE] And this describes the tissue layers that the creature is made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR] Creature will be covered with a layer of fur.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE] And it'll have nails.&lt;br /&gt;
&lt;br /&gt;
 	[USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]&lt;br /&gt;
&lt;br /&gt;
 	[TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] On the toe, specifically.&lt;br /&gt;
&lt;br /&gt;
 	[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]&lt;br /&gt;
 	 [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]&lt;br /&gt;
 		[TL_MAJOR_ARTERIES] Heart and throat--called above--will cause heavy bleeding if ruptured.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS] Places eyes, ears and what have you into their correct placement, so that you don't have people punching out eyes from behind.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS] Sets the ribcage as being around lungs and heart.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE] Defines sinew so that...&lt;br /&gt;
 	[TENDONS:LOCAL_CREATURE_MAT:SINEW:200] Tendons&lt;br /&gt;
 	[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200] And ligaments can be defined.&lt;br /&gt;
&lt;br /&gt;
 	[HAS_NERVES] Creature has nerves, and as such can be disabled by severing them.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE] Defines the material BLOOD using the template BLOOD_TEMPLATE.&lt;br /&gt;
 	[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID] Defines the creature's BLOOD as being made of the above-defined BLOOD material in a LIQUID state.&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_CLASS:GENERAL_POISON] Creature can be affected by syndromes that affect GENERAL_POISON.&lt;br /&gt;
&lt;br /&gt;
 	[GETS_WOUND_INFECTIONS] Pretty much self-explanatory. Creature can get infected from wounds.&lt;br /&gt;
 	[GETS_INFECTIONS_FROM_ROT] And from necrosis.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE] Defines PUS using PUS_TEMPLATE.&lt;br /&gt;
 	[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID] Defines PUS as being made of PUS.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_SIZE:0:0:1000] Creature will be 1000 cubic centimeters at birth...&lt;br /&gt;
 	[BODY_SIZE:1:0:12500] 12500 cubic centimeters at 1 year old...&lt;br /&gt;
 	[BODY_SIZE:2:0:30000] and 30000 cubic centimeters at 2.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110] Creature can be anywhere from 90% to 110% as long as others.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] As above, but with height.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110] As above, but with broadness. This puts the minimum size of the creature (when fully grown) at 21870 and the maximum size at 39930.&lt;br /&gt;
&lt;br /&gt;
 	[MAXAGE:20:30] Creature will die of old age between the ages of 20 and 30, no later than 30, no sooner than 20.&lt;br /&gt;
&lt;br /&gt;
 	[CAN_DO_INTERACTION:MATERIAL_EMISSION] Creature can use the MATERIAL_EMISSION interaction.&lt;br /&gt;
 		[CDI:ADV_NAME:Hurl fireball] In adventurer mode, the MATERIAL_EMISSION interaction will appear as &amp;quot;Hurl fireball&amp;quot;.&lt;br /&gt;
 		[CDI:USAGE_HINT:ATTACK] Creature will use MATERIAL_EMISSION when it's attacking, on creatures that it's attacking.&lt;br /&gt;
 		[CDI:BP_REQUIRED:BY_CATEGORY:HEAD] Creature must have at least one HEAD to use MATERIAL_EMISSION.&lt;br /&gt;
 		[CDI:FLOW:FIREBALL] The MATERIAL_EMISSION will shoot a fireball.&lt;br /&gt;
 		[CDI:TARGET:C:LINE_OF_SIGHT] The target for the emission--a location--must be within the line of sight of the Hydling.&lt;br /&gt;
 		[CDI:TARGET_RANGE:C:15] And must be, at most, 15 tiles away.&lt;br /&gt;
 		[CDI:MAX_TARGET_NUMBER:C:1] The hydling can only shoot at one target at a time...&lt;br /&gt;
 		[CDI:WAIT_PERIOD:30] and only every 30 ticks (3 tenths of a second at 100 FPS)&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH] Defines a BITE attack that uses teeth.&lt;br /&gt;
 		[ATTACK_SKILL:BITE] Attack uses the BITE skill.&lt;br /&gt;
 		[ATTACK_VERB:nom:noms] &amp;quot;The Hydling noms the Elf in the left first toe, tearing the muscle!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Will use all of the tooth. Note that this can be more than 100.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] Will sink the tooth all the way in. This can also be more than 100.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an EDGE attack.&lt;br /&gt;
 		[ATTACK_PRIORITY:MAIN] Attack is of priority MAIN. Other option is SECOND.&lt;br /&gt;
 		[ATTACK_FLAG_CANLATCH] Attack can latch.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3] Takes 3 ticks to wind up attack and 3 to recover from it.&lt;br /&gt;
                [ATTACK_FLAG_INDEPENDENT_MULTIATTACK] Can use each head independently.&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:NAIL] As above, but for nail instead of teeth.&lt;br /&gt;
 		[ATTACK_SKILL:STANCE_STRIKE] Uses the kicking skill.&lt;br /&gt;
 		[ATTACK_VERB:slice:slices] &amp;quot;You slice the Elf in the left foot and the severed part sails off in an arc!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Uses the whole nail.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] The whole nail goes in.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an edge attack.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3]&lt;br /&gt;
 		[ATTACK_PRIORITY:SECOND]&lt;br /&gt;
&lt;br /&gt;
 	[CHILD:1] Hydling will become an adult at 1 year old.&lt;br /&gt;
&lt;br /&gt;
 	[GENERAL_CHILD_NAME:hydie:hydies] Children will appear as &amp;quot;hydies&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[DIURNAL] Is active during the daytime.&lt;br /&gt;
&lt;br /&gt;
 	[HOMEOTHERM:10070] Has a body temperature of 102 Fahrenheit.&lt;br /&gt;
&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] Can run at 25 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] Can swim at 10 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] Can crawl at 5 kph&lt;br /&gt;
 	[SWIMS_INNATE]Swims innately.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:FEMALE] Defines a caste called FEMALE.&lt;br /&gt;
 		[FEMALE] FEMALE caste is female.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:MALE] As above, but with male.&lt;br /&gt;
 		[MALE] See above.&lt;br /&gt;
&lt;br /&gt;
= Modding utilities =&lt;br /&gt;
&lt;br /&gt;
[http://www.bay12forums.com/smf/index.php?topic=28829.0 A list of many mods and community-developed utilities]&lt;br /&gt;
&lt;br /&gt;
{{Category|Modding}}&lt;br /&gt;
[[Category:v0.31:Guides]]&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223826</id>
		<title>Modding</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223826"/>
		<updated>2016-03-01T10:36:57Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Colons are full-stops, not half-stops.  Miscellaneous grammatical corrections were also made.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|14:13, 7 November 2013 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
This is intended to be a guide to inform those new to DF modding on what elements of the game can be modified, and how. After reading through this guide, a user should be capable of editing creatures, entities, materials ''et al'', and creating their own.&lt;br /&gt;
&lt;br /&gt;
Generally, breaking stuff is fine - nothing that can be changed will affect the DF executable, and new additions can be easily removed.&lt;br /&gt;
&lt;br /&gt;
This guide is based on [[40d:Modding guide|Teldin's guide]], originally created for version 0.27.176.39c. Per wiki tradition, it has been updated through all the major releases since then; hopefully it reflects current knowledge.&lt;br /&gt;
&lt;br /&gt;
'''See also:''' [[:Category:DF2014:Modding]]&lt;br /&gt;
&lt;br /&gt;
= Modding Guide =&lt;br /&gt;
&lt;br /&gt;
== Token Reference ==&lt;br /&gt;
&lt;br /&gt;
It's always good to refer to tokens on the wiki. Even experienced modders have to look up tokens! A list of articles about tokens can be found [http://dwarffortresswiki.org/index.php/Token here.]&lt;br /&gt;
&lt;br /&gt;
== Basics of DF modding ==&lt;br /&gt;
&lt;br /&gt;
All the base data that can be edited by prospective modders can be found in the \raw\ folder. This folder contains two subfolders: &amp;quot;graphics&amp;quot; (where you insert [[Graphics set repository|graphics sets]]), and &amp;quot;objects&amp;quot;, which contains all the data for generally everything in the game that is not hardcoded.&lt;br /&gt;
&lt;br /&gt;
Within the \raw\objects folder are a large number of text files - these are the [[raw file|raw files]], and editing them is quite easy - you can also create your own if you wish. For now, take a look at one of the existing files. For example if you open creature_standard.txt it should look something like this:&lt;br /&gt;
&lt;br /&gt;
 creature_standard&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:CREATURE]&lt;br /&gt;
 &lt;br /&gt;
 [CREATURE:DWARF]&lt;br /&gt;
     [DESCRIPTION:A short, sturdy creature fond of drink and industry.]&lt;br /&gt;
     [NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CASTE_NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CREATURE_TILE:1][COLOR:3:0:0]&lt;br /&gt;
     [CREATURE_SOLDIER_TILE:2]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
As you can see, each file comprises a header string stating the file name, a second header stating the type of object data it contains, followed by the contents of the file itself. These are all necessary elements of the file, and without them, the file won't be parsed correctly by the game. You may have also noticed the file naming scheme - this is also important; files containing creatures have names starting with &amp;quot;creature_&amp;quot;, entity file names must begin with &amp;quot;entity_&amp;quot;, etc..&lt;br /&gt;
&lt;br /&gt;
Below the headers, there begins a list of entries. Each entry is made up of its own header (in this case, &amp;quot;[CREATURE:DWARF]&amp;quot;), again stating the type of object, and then the object's unique identifier - if an identifier isn't unique, the game will mess up and you'll get some serious, and potentially very trippy, errors. Below that, we have the body of the entry, which determines the entry's specific properties.&lt;br /&gt;
&lt;br /&gt;
The body of an entry is made up of a series of &amp;quot;tokens&amp;quot;, which are essentially flags that can be added or removed to affect the entry's attributes. Most of these effects are hardcoded: for example, it's possible to make a creature only eat meat with the [CARNIVOROUS] token, but it's impossible to create your own token detailing a specific diet for the creature.&lt;br /&gt;
&lt;br /&gt;
Before we continue, a few key things to remember when modding the raw files:&lt;br /&gt;
&lt;br /&gt;
* Try to avoid modifying the existing raw files when adding objects. It makes removing mods far easier.&lt;br /&gt;
* When adding files, all you need to include to ensure proper references are maintained is the token identifier's.  The game will load up all *.txt in the raw folder, and searches through them by tokens.  For example: You can add a new pair of leather boots and not even have to add it to the item_shoes.txt file, but rather make your own file, say item_shoes_new.txt and ensure you have the token listed, ex. [ITEM_SHOES:ITEM_SHOES_BOOTS_NEW], that's how the game will look for the item.&lt;br /&gt;
* If you want to edit an already-existing creature, always back up the files you plan on editing to a different location. Since v0.31.22, the game no longer loads backup files, but duplicate entries are still a very bad thing.&lt;br /&gt;
* When a new world is generated, all the raw files get copied into a \raw\ folder within the applicable save folder. If you want to change something within a world that's already been generated, you'll have to edit those files, not the ones in ~DF\raw\objects.&lt;br /&gt;
* There's nothing stopping you from just copying an existing creature/entity/whatever, changing the identifier, and modifying it. This can save you a lot of time, especially when it comes to entities... which are coincidentally what we'll be talking about next.&lt;br /&gt;
&lt;br /&gt;
== Modding civilizations (entities) ==&lt;br /&gt;
&lt;br /&gt;
Entities - the objects that determine how civilizations work - are stored in entity_default.txt (though, like all other files, you may add more). They follow the same format as any other raw file:&lt;br /&gt;
&lt;br /&gt;
 entity_default&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:ENTITY]&lt;br /&gt;
 &lt;br /&gt;
 [ENTITY:ENTITYNAME]&lt;br /&gt;
     [CREATURE:CREATURETYPE]&lt;br /&gt;
     [TRANSLATION:LANGUAGETYPE]&lt;br /&gt;
     [BIOME_SUPPORT:BIOMETOKEN:FREQENCY]&lt;br /&gt;
     ...[OTHER TAGS]...&lt;br /&gt;
&lt;br /&gt;
Most of the time, it doesn't matter which order these tokens are in or where they're placed so long as they're below the &amp;quot;ENTITY:&amp;quot; identifier, but there are some important exceptions in the case of other files, especially creatures, which can contain a lot of &amp;quot;nested&amp;quot; tokens.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[CREATURE:]&amp;quot; links the civilization with a specific creature defined in a creature file. This is the creature that'll be making up the entity's population, and will therefore be the creature you'll be playing as in fortress or adventure mode if the entity is a playable one. For example, if you wanted to do something silly, you could switch the &amp;quot;CREATURE:DWARF&amp;quot; entry in entity_default.txt with &amp;quot;CREATURE:ELF&amp;quot; and you would be marching elves around in fortress mode, although they would still use dwarven technology and language and names and so forth.&lt;br /&gt;
&lt;br /&gt;
Oh, and before you get any funny ideas - it ''is'' possible to define more than one creature for a civ, but that won't work in quite the way you probably expect; later on, in the creature section, you'll learn about castes, which will provide a much more viable alternative, so try to bear with us until then.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[TRANSLATION:]&amp;quot; defines the language file that the entity will be using, which will determine what their untranslated words are for things. This doesn't determine which words they use for naming things, only the way those words are spelled. The default language files are HUMAN, DWARF, ELF, and GOBLIN.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[BIOME_SUPPORT:]&amp;quot; defines the biomes that civs will attempt to settle in. The &amp;quot;FREQUENCY&amp;quot; value determines the likelihood of them building there, but also raises an important point:  Most of the values you'll be setting for things are relative to each other. If one were to type:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:1]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:2]&lt;br /&gt;
&lt;br /&gt;
This would have very much the same effect as:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:5]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:10]&lt;br /&gt;
&lt;br /&gt;
This holds true for a lot of values throughout the files, excluding when it simply doesn't make sense, such as in materials.&lt;br /&gt;
&lt;br /&gt;
You can find many details about the rest of the civilization tokens [[entity token|here]]. Besides those mentioned, some fundamental ones are the CIV_CONTROLLABLE token, which lets you control the civ in fortress mode, the INDIV_CONTROLLABLE token, which allows you to play the civ in adventure mode as an outsider, and the ADVENTURE_TIER token, which allows you to play a civ native (non-outsider) in adventure mode. Other tokens that you should pay attention to are START_BIOME and the ones regarding sites, but in general, you can just run through the aforementioned list and add or remove what you want.&lt;br /&gt;
&lt;br /&gt;
If you have more than one civ with the CIV_CONTROLLABLE token, all the available civs from those entities will appear in the group selection section on the embark screen. It may not be immediately obvious from which species each civ may be - while this can be determined from legends mode, the topmost species in the &amp;quot;neighbors&amp;quot; display in the embark screen is always the same as the currently selected species; if your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a civ (and therefore a species if there is more than one) at random.&lt;br /&gt;
&lt;br /&gt;
You can also attempt to discern the civ yourself by the names it uses - this is the realm of &amp;quot;symbols&amp;quot;, collections of words centered around a specific concept. The civ will use the words comprising whatever symbols are applicable to it for various things. This association might be a little obfuscating at first, so I'll run through it. Let's refer to the DWARF entity:&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:WAR:NAME_WAR]&lt;br /&gt;
 [SUBSELECT_SYMBOL:WAR:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:BATTLE:NAME_BATTLE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:BATTLE:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:SIEGE:NAME_SIEGE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:SIEGE:VIOLENT]&lt;br /&gt;
&lt;br /&gt;
Here we can see that dwarves will generally name their wars first after words in the &amp;quot;NAME_WAR&amp;quot; symbol group, and then after words in the &amp;quot;VIOLENT&amp;quot; symbol group. This might, for example, result in a war being named &amp;quot;The War of Carnage&amp;quot;. The symbols used for the other types of conflict are arrayed in a similar fashion. It would be trivial to replace the instances of VIOLENT with, say, PEACE and end up with a battle called &amp;quot;The Clash of Calm&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:ROAD:NAME_ROAD]&lt;br /&gt;
 [SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]&lt;br /&gt;
 [SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]&lt;br /&gt;
 [SELECT_SYMBOL:WALL:NAME_WALL]&lt;br /&gt;
&lt;br /&gt;
The above applies here. Dwarves are fond of naming their roads and tunnels after roads and tunnels.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:ARTIFICE]&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:EARTH]&lt;br /&gt;
 [CULL_SYMBOL:ALL:DOMESTIC]&lt;br /&gt;
 [CULL_SYMBOL:ALL:SUBORDINATE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:EVIL]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UNTOWARD]&lt;br /&gt;
 [CULL_SYMBOL:ALL:FLOWERY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATIVE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UGLY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATOR]&lt;br /&gt;
&lt;br /&gt;
This section deals with everything else. The things that haven't already been dealt with (hence the &amp;quot;REMAINING&amp;quot;) - such as site names, kingdom names, the names of individuals, and such - will have names from the ARTIFICE and EARTH symbol groups. After that the dwarf entity is told to cull all innapropriate symbols - this applies to everything (hence the &amp;quot;ALL&amp;quot;) so if the game happens to choose a symbol associated with, say, EVIL for one of the battles, it'll scrap that name and try again. This sort of thing adds a lot of flavour to DF's entities and can account for a lot of a civ's perceived personality.&lt;br /&gt;
&lt;br /&gt;
Another basic thing to note:  Any entity token that's dealing with weapons, armor, clothing, etc., will state the items that the civ can build natively, not necessarily the ones they can wear or use. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them. &lt;br /&gt;
&lt;br /&gt;
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's &amp;quot;ENTITY:&amp;quot; identifier! This can be anything so long as it's not already existing.&lt;br /&gt;
&lt;br /&gt;
At the end of some of the default entries you'll find a list of positions, both ones that'll directly affect you in fort mode (such as nobles) and ones that'll primarily affect worldgen and adventure mode. A list of the tokens applicable to positions can be found [[position token|here]]; they don't require a great deal of explanation.&lt;br /&gt;
&lt;br /&gt;
== Modding the creatures ==&lt;br /&gt;
&lt;br /&gt;
Creature modding is great fun. You can change nearly any aspect of a creature or make your own completely from scratch.&lt;br /&gt;
&lt;br /&gt;
Modding creatures is very similar to modding civs: it's just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all of the information about each and every non-random creature in the game, from animals to dwarves to goblins to even caravan wagons. A lot of the creature tokens are fairly self-explanatory; you can find a list of such tokens [[creature token|here]]. But before you start creating your own creatures, you'll want to learn how the tissues system works.&lt;br /&gt;
&lt;br /&gt;
=== Creature materials and tissues ===&lt;br /&gt;
&lt;br /&gt;
In the most basic sense, a creature is a series of bodyparts. These parts are defined in their own file, and we'll talk about them later. As a specific aspect of how creatures work which throws off a lot of prospective modders is the relationship between bodyparts, tissues, and materials. We're going to show you part of the creature entry for a bronze colossus (bear with us):&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [TISSUE:BRONZE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
At the top, we can see the &amp;quot;BODY:&amp;quot; token, followed by a list of bodyparts. As you've probably guessed, these parts make up the physical form of the colossus. But the colossus has to be made out of something - it has to have tissues. And those tissues also have to be made out of something - in this case, bronze.&lt;br /&gt;
&lt;br /&gt;
Below the BODY token you'll see a TISSUE token, followed by an identifier, much like the others we've seen. The TISSUE block is determining how the tissue works, and which purposes it'll serve. As the colossus is just going to be made out of this one tissue, this tissue needs to act like bone, muscle, and everything else combined, hence the MUSCULAR, FUNCTIONAL and STRUCTURAL tokens. The tissue also references a material - INORGANIC:BRONZE - the properties of which are declared in the inorganic materials file, and the tissue is subsequently made out of this material. With us so far?&lt;br /&gt;
&lt;br /&gt;
Below the tissue definition is the TISSUE_LAYER line. TISSUE_LAYER allows you to control where each tissue is applied. Its first argument defines if it's to search by bodypart category (BY_CATEGORY), bodypart type (BY_TYPE), or look for a specific part (BY_TOKEN). That's followed by the parts argument itself, which is in this case ALL (so the game's looking for parts in all categories, which is to say, every bodypart). This is followed by the tissue to be applied, BRONZE. So the TISSUE_LAYER token is telling the game to select all bodyparts in every category and make them out of the tissue &amp;quot;BRONZE&amp;quot;. The colossus is now made of bronze.&lt;br /&gt;
&lt;br /&gt;
By now you're probably thinking &amp;quot;Wow, if this was for a creature made out of however many tissues, this would be amazingly longwinded&amp;quot;. And you're right. Luckily, there are two methods by which we can speed things up a lot.&lt;br /&gt;
&lt;br /&gt;
Firstly, there are material and tissue templates. Let's say you were going to make a lot of creatures out of bronze, and you didn't want to have to copy and paste the bronze tissue all over the place. Instead, you create a tissue template. This goes, as you've probably guessed, in a tissue template file.&lt;br /&gt;
&lt;br /&gt;
 [TISSUE_TEMPLATE:BRONZE_TEMPLATE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
&lt;br /&gt;
Now, instead of applying the tissue to each and every bronze creature you're making, you can just refer to the template:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [USE_TISSUE_TEMPLATE:BRONZE:BRONZE_TEMPLATE]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Material templates work in the same way, but refer to materials instead of tissues.&lt;br /&gt;
&lt;br /&gt;
However, if we're looking at something like a dwarf, even with the templates, editing can get very slow indeed:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BONE:BONE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:CARTILAGE:CARTILAGE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:TOOTH:TOOTH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:EYE:EYE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:NERVE:NERVE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BRAIN:BRAIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LUNG:LUNG_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HEART:HEART_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LIVER:LIVER_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:GUT:GUT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:STOMACH:STOMACH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:PANCREAS:PANCREAS_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SPLEEN:SPLEEN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:KIDNEY:KIDNEY_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This is where body detail plans come in. Detail plans, of course, have their own file, and they are designed to help automate some of the more common processes in creature creation. The first entry in b_detail_plan_default.txt does exactly what we've been trying to do above: it takes all the common materials and shoves them into one plan, which can be referenced with a single token.&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Much easier. But what about the TISSUE_LAYER tokens? Will we have to type out all of those manually?&lt;br /&gt;
&lt;br /&gt;
Nope, detail plans have that covered as well. It's possible to place variable arguments into a detail plan. For example:&lt;br /&gt;
&lt;br /&gt;
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_UPPER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_LOWER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM_UPPER:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:NOSE:ARG5:4:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
First an argument is placed in the plan (ARG1, ARG2 etc.), followed by the thickness of the tissue that will be inserted in place of the argument. So when we reference the VERTEBRATE_TISSUE_LAYERS plan, we'll be able to do something like this:&lt;br /&gt;
&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
&lt;br /&gt;
ARG1 in the detail plan is replaced by SKIN, the first tissue we entered. ARG2 is replaced by FAT, ARG3 by muscle, ARG4 by bone, and ARG5 by CARTILAGE. Hence, our creature's bodypart designated as BODY is made up of SKIN with thickness 1, FAT with thickness 5, and MUSCLE with thickness 50. Its nose is made up of SKIN (thickness 1) and CARTILAGE (thickness 4).&lt;br /&gt;
&lt;br /&gt;
Things left out of the body plans aside, our dwarf's entire body, material, tissue and tissue layer tokens have been boiled down to this:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This can save you a lot of time and space if you're making lots of changes common to many creatures. In general, if you're making a creature that's fleshy or chitinous, there's detail plans already included in the game to help you out. You should only have to resort to declaring tissues individually (like our bronze colossus) if you're doing something really out-of-the-ordinary.&lt;br /&gt;
&lt;br /&gt;
Another great thing about templates (and so, detail plans) is that they can be modified after being declared. Let's say we wanted our dwarves to be perpetually on fire (don't ask). We declare the body stuff normally:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We then select the appropriate material:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We don't want them burning to death, so we'll need to stop that from happening:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     [SELECT_MATERIAL:ALL]&lt;br /&gt;
         [HEATDAM_POINT:NONE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Note that this makes use of DF's built-in temperature scale. You can read more about that [[Temperature|on this page]]. We're also referencing material tokens, which we haven't gone over yet - we'll talk about making your own materials later.&lt;br /&gt;
&lt;br /&gt;
=== Creature castes ===&lt;br /&gt;
&lt;br /&gt;
Another potentially extremely powerful part of the creature raws is the caste system. The caste system handles both true biological castes and lesser variations, such as sexes.&lt;br /&gt;
&lt;br /&gt;
To understand the true potential of the caste system, we only need to take a look at the raws for antmen, found in creature_subterrenean.txt:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [CASTE:WORKER]&lt;br /&gt;
         [CASTE_NAME:worker ant woman:worker ant women:worker ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:10000]&lt;br /&gt;
     [CASTE:SOLDIER]&lt;br /&gt;
         [CASTE_NAME:soldier ant woman:soldier ant women:soldier ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:1000]&lt;br /&gt;
     [CASTE:DRONE]&lt;br /&gt;
         [MALE]&lt;br /&gt;
         [CASTE_NAME:drone ant man:drone ant men:drone ant man]&lt;br /&gt;
         [POP_RATIO:5]&lt;br /&gt;
     [CASTE:QUEEN]&lt;br /&gt;
         [FEMALE]&lt;br /&gt;
         [CASTE_NAME:queen ant woman:queen ant women:queen ant woman]&lt;br /&gt;
         [POP_RATIO:1]&lt;br /&gt;
     [SELECT_CASTE:WORKER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:SOLDIER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:QUEEN]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
     [SELECT_CASTE:DRONE]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH:2WINGS]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
         [FLIER]&lt;br /&gt;
     [SELECT_CASTE:ALL]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_MATERIALS]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_TISSUES]&lt;br /&gt;
         [BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]&lt;br /&gt;
         [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]&lt;br /&gt;
         [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]&lt;br /&gt;
             [ATTACK_SKILL:GRASP_STRIKE]&lt;br /&gt;
             [ATTACK_VERB:punch:punches]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
It's evident that the process of creating and editing castes is comparable to the modifications we were making to tissues and materials earlier: A caste is declared, and modifications to the base creature are made. Declared castes can be selected and subsequently modified, again, just like tissues and materials.&lt;br /&gt;
&lt;br /&gt;
In this case, each caste is declared, given its own name, and a POP_RATIO, which determines how commonly a birth results in that caste - for every 10000 workers born, there'll be an average of 1000 soldiers, 5 drones and one queen. You've probably also noticed that the DRONE and QUEEN castes have the MALE and FEMALE tokens respectively - these tokens determine how breeding works. A creature without both a MALE caste and a FEMALE caste will be unable to breed (no asexual creatures yet, unfortunately). As they lack FEMALE, the workers and soldiers are unable to breed with the male drones.&lt;br /&gt;
&lt;br /&gt;
After this, there are some modifications to bodyparts. In this case, the drones have wings and the FLIER token, which the other castes lack. It's entirely possible for creatures of different castes to have completely different body stuctures, even to the extent that they don't resemble each other at all. If you read the section of this guide that dealt with entities, you may remember a passing mention of multi-creature civilisations and how they don't quite work as you may think they would. The castes system is your workaround. You could create a caste that is, for all intents and purposes, a human, and another caste of the same creature that acts exactly like a giant cave spider, put the creature in a civ, and get a human-spider civ. The only flaw in this approach is that the castes will interbreed.&lt;br /&gt;
&lt;br /&gt;
That's the most complex components of creature creation out of the way. You should find the rest trivial by comparison.&lt;br /&gt;
&lt;br /&gt;
== Modding items ==&lt;br /&gt;
&lt;br /&gt;
Items are fairly simple to deal with. By default, each item type is contained in its own file; this may help make browsing for a specific item easier, but from a purely technical point of view, it's possible to throw all items into one file. Unfortunately, item tokens don't seem to be especially well-documented (at least not as well as the other object types), but you should be able to figure out most things by way of our explanations and your assumptions.&lt;br /&gt;
&lt;br /&gt;
Let's look at the entry for, of course, the thong:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_PANTS:ITEM_PANTS_THONG]&lt;br /&gt;
 [NAME:thong:thongs]&lt;br /&gt;
 [LAYER:UNDER]&lt;br /&gt;
 [COVERAGE:25]&lt;br /&gt;
 [LAYER_SIZE:10]&lt;br /&gt;
 [LAYER_PERMIT:30]&lt;br /&gt;
 [MATERIAL_SIZE:1]&lt;br /&gt;
 [SOFT]&lt;br /&gt;
 [LEATHER]&lt;br /&gt;
 [STRUCTURAL_ELASTICITY_WOVEN_THREAD]&lt;br /&gt;
&lt;br /&gt;
Most of these are pretty obvious if one compares them to the other entries in the file. There's a layer for the item, determining where it's worn; a coverage value to determine how well it protects you from cold and other things; a size token to determine how much it counts for when it's under something else; a layer permit token to determine how much can be worn under it; and a material size token to determine how much raw material it takes to make it.&lt;br /&gt;
&lt;br /&gt;
Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere. Simple! These tokens work by tying into material properties - some materials are designated as suitable for making hard items, some for soft, etc..&lt;br /&gt;
&lt;br /&gt;
Weapons involve a little more detail:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_WEAPON:ITEM_WEAPON_SWORD_2H]&lt;br /&gt;
 [NAME:two-handed sword:two-handed swords]&lt;br /&gt;
 [SIZE:900]&lt;br /&gt;
 [SKILL:SWORD]&lt;br /&gt;
 [TWO_HANDED:67500]&lt;br /&gt;
 [MINIMUM_SIZE:62500]&lt;br /&gt;
 [MATERIAL_SIZE:5]&lt;br /&gt;
 [ATTACK:EDGE:100000:8000:slash:slashes:NO_SUB:1250]&lt;br /&gt;
 [ATTACK:EDGE:50:4000:stab:stabs:NO_SUB:1000]&lt;br /&gt;
 [ATTACK:BLUNT:100000:8000:slap:slaps:flat:1250]&lt;br /&gt;
 [ATTACK:BLUNT:100:1000:strike:strikes:pommel:1000]&lt;br /&gt;
&lt;br /&gt;
SIZE determines how heavy the weapon is. This has a substantial effect on weapon effectiveness. SKILL determines which skill is used in using the weapon; a list of skills can be found [[skill token|on this page]]. MINIMUM_SIZE determines the minimum size a creature must be before the weapon can be wielded, while TWO_HANDED determines how large a creature must be in order to wield the weapon with one hand.&lt;br /&gt;
&lt;br /&gt;
Attacks take a little more explanation. The first value determines the contact area of the weapon's attack; this should be high for slashing weapons and low for bludgeoning, piercing and poking ones. The second value determines how deep the weapon penetrates - for BLUNT attacks this value is ignored as they're not supposed to penetrate anyway, but in the case of EDGE attacks it should generally be lower for slashing attacks and higher for stabbing attacks.&lt;br /&gt;
&lt;br /&gt;
Following these are the nouns and verb used; they should be self-explanatory. Finally, we have the velocity modifier, which has a multiplying effect on the weapon's size for the purposes of determining how powerful it is in combat.&lt;br /&gt;
&lt;br /&gt;
Other, more miscellaneous items are generally simple and shouldn't require any further explanation.&lt;br /&gt;
&lt;br /&gt;
Once you've made an item, you just add it to the civ entry so a civilization can actually craft it, and it's done.&lt;br /&gt;
&lt;br /&gt;
== Modding language files ==&lt;br /&gt;
&lt;br /&gt;
Let's say you added a whole new species. Sure, you could just swipe one of the existing translation files and steal their language for your species, but that's the lazy way! If you want to create a whole new language, it's very simple.&lt;br /&gt;
&lt;br /&gt;
First, you'd need a whole new language_RACE file, such as language_LIZARDMAN.txt, along with &amp;quot;language_LIZARDMAN&amp;quot; at the top of the file proceeded by [OBJECT:LANGUAGE] and [TRANSLATION:LIZARDMAN]. After that, it's just a matter of copy-pasting one of the existing language lists and editing the finished 'translated' word. That's it! Then just add the translation link to your civ in entity_default.txt and it'll be added to the game on worldgen.&lt;br /&gt;
&lt;br /&gt;
(Note that the name of the file doesn't actually matter; however, it's good form to name the file after a creature if only that creature speaks the language)&lt;br /&gt;
&lt;br /&gt;
== Modding body parts ==&lt;br /&gt;
&lt;br /&gt;
Imagine you have this fantastic idea for a multi-tentacled winged spider-monster. Sounds great! But in order to make this a reality you may need to create a new set of body parts for it. That's no problem! Making body parts is easy, though it may look complicated at first. &lt;br /&gt;
&lt;br /&gt;
All of the default body definitions are located in body_default.txt and then linked to a creature in the creature's entry. We've talked about how bodyparts make up creatures earlier, in the creature section. You can mix and match them in the creature entry and it makes no difference, as long as they're there: each bodypart will link itself to the appropriate connection automatically when the creature is first created.&lt;br /&gt;
&lt;br /&gt;
Body parts work by sections: you can add as many sections as you want to a bodypart definition, but generally you should keep it fairly low for ease of use. Each body section entry is in the, very simple, format:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BODYNAME]&lt;br /&gt;
 [BP:TOKENID:name][TOKENSGOHERE][DEFAULT_RELSIZE:][CATEGORY:WHATEVER]&lt;br /&gt;
&lt;br /&gt;
The most important tokens are &amp;quot;CONTYPE&amp;quot; and &amp;quot;CON&amp;quot;: CONTYPE means the bodypart in question is connected to a certain ''type'' of bodypart, while CON means it's connected to a ''specific'' one. TOKENID is yet another identifier, which should be unique, as it's referenced every time something uses CON or BY_TOKEN. DEFAULT_RELSIZE defines, of course, what the bodypart's size is in relation to the other parts. CATEGORY defines a category for the part, which can be unique or shared with other parts. This is referenced whenever BY_CATEGORY is used.&lt;br /&gt;
&lt;br /&gt;
A list of bodypart tokens can be found [[body token|here]].&lt;br /&gt;
&lt;br /&gt;
Let's take a simple example, a head:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BASIC_HEAD]&lt;br /&gt;
 [BP:HD:head:STP][CONTYPE:UPPERBODY][HEAD][CATEGORY:HEAD]&lt;br /&gt;
 [DEFAULT_RELSIZE:300]&lt;br /&gt;
&lt;br /&gt;
It connects directly to an upper body.&lt;br /&gt;
&lt;br /&gt;
 [BODY:2EYES]&lt;br /&gt;
     [BP:REYE:right eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][RIGHT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
     [BP:LEYE:left eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][LEFT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
&lt;br /&gt;
These are a pair of eyes, connecting to the head.&lt;br /&gt;
&lt;br /&gt;
 [BODY:HUMANOID]&lt;br /&gt;
     [BP:UB:upper body:upper bodies][UPPERBODY][CATEGORY:BODY_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:LB:lower body:lower bodies][CON:UB][LOWERBODY][CATEGORY:BODY_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:HD:head:STP][CON:UB][HEAD][CATEGORY:HEAD]&lt;br /&gt;
         [DEFAULT_RELSIZE:300]&lt;br /&gt;
     [BP:RUA:right upper arm:STP][CON:UB][LIMB][RIGHT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LUA:left upper arm:STP][CON:UB][LIMB][LEFT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RLA:right lower arm:STP][CON:RUA][LIMB][RIGHT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LLA:left lower arm:STP][CON:LUA][LIMB][LEFT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RH:right hand:STP][CON:RLA][GRASP][RIGHT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:LH:left hand:STP][CON:LLA][GRASP][LEFT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:RUL:right upper leg:STP][CON:LB][LIMB][RIGHT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:LUL:left upper leg:STP][CON:LB][LIMB][LEFT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:RLL:right lower leg:STP][CON:RUL][LIMB][RIGHT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:LLL:left lower leg:STP][CON:LUL][LIMB][LEFT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:RF:right foot:right feet][CON:RLL][STANCE][RIGHT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
     [BP:LF:left foot:left feet][CON:LLL][STANCE][LEFT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
&lt;br /&gt;
An entire humanoid body. The foot bone's connected to the ankle bone...&lt;br /&gt;
&lt;br /&gt;
&amp;quot;BODYGLOSS&amp;quot; entries, which you can sometimes find applied to creature entries, are simply replacement words for specific part name strings in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in body_default.txt; you can then use this in a creature via &amp;quot;[BODYGLOSS:CLAW_HAND]&amp;quot; and it'll replace all instances of &amp;quot;hand&amp;quot; with &amp;quot;claw&amp;quot; in that creature. Be warned, however—if you were to, say make a bodygloss [BODYGLOSS:EARSTALK:ear:stalk:ears:stalk], it would not only change &amp;quot;ear&amp;quot; and &amp;quot;ears&amp;quot; to &amp;quot;stalk&amp;quot; and &amp;quot;stalks&amp;quot;, it would also change &amp;quot;h'''ear'''t&amp;quot; to &amp;quot;h'''stalk'''t&amp;quot;! For all intents and purposes the body part will still function as the proper part, though.&lt;br /&gt;
&lt;br /&gt;
== Modding plants ==&lt;br /&gt;
&lt;br /&gt;
Plants are, again, not unlike creatures. With what you've learned so far in regard to tokens and the materials system, running through the notes included in plant_standard.txt should explain most things. [[Plant token|Here's the list of plant-specific tokens]].&lt;br /&gt;
&lt;br /&gt;
Below is the [[plump helmet]] raw description:&lt;br /&gt;
&lt;br /&gt;
 [PLANT:MUSHROOM_HELMET_PLUMP]&lt;br /&gt;
 	[NAME:plump helmet][NAME_PLURAL:plump helmets][ADJ:plump helmet]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
 &lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
Let's look at this line by line:&amp;lt;br&amp;gt;&lt;br /&gt;
First, we define its file name. In this case it's MUSHROOM_HELMET_PLUMP. Next we define its in-game name (plump helmet) and its adjective for if you were to craft with it (e.g. plump helmet earrings).&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
&lt;br /&gt;
This defines the structure and material of the plant. It references STRUCTURAL_PLANT_TEMPLATE in the first line, so if you were to say, add wings to the template, the plump helmet plant would be winged. This is for the plant itself, not the end plump helmets.&lt;br /&gt;
&lt;br /&gt;
After that we get our edible tokens. These say that vermin can eat the plant, and it can be eaten raw or cooked by your dwarves. So if you wanted a plant vermin would leave alone, you'd remove the [EDIBLE_VERMIN] token.&lt;br /&gt;
&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
&lt;br /&gt;
Next, [PICKED_TILE:161] is the character (161 in this case) shown when the crop is harvested. See [[Main:Character table|character table]] for a table of usable tiles. [PICKED_COLOR:6:13:0] is the color used for the crop's tile when harvested. It's in a foreground:background:brightness format. See [[color]] for the colors usable.&lt;br /&gt;
&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
&lt;br /&gt;
[GROWDUR:300] is how long it takes for your crop to grow. There are 1008 growdur units in a season.&amp;lt;br&amp;gt;&lt;br /&gt;
[VALUE:2] Is the value of harvested plant (default 1). Appears to have no effect in version 0.31.&lt;br /&gt;
&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
&lt;br /&gt;
This defines the plant's alcohol states. [STATE_NAME_ADJ:ALL_SOLID:] is the frozen name, followed is the actual drink name, and then its boiling name. These are achieved by either Scorching or Freezing climates. [DISPLAY_COLOR] is, of course, color, and [EDIBLE_RAW] and [EDIBLE_COOKED] are saying you can drink the alcohol raw or cooked.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
&lt;br /&gt;
After that we get our seed template:&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
&lt;br /&gt;
And all this says is that the seeds may be eaten by vermin or cooked. Then it gives the name of our plant's seed, its plural name, its foreground, background, and brightness colors, followed by its seed material; said material should have [SEED_MAT] to permit proper stockpiling.&lt;br /&gt;
&lt;br /&gt;
And finally for the last chunk we have this:&lt;br /&gt;
&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
First we define what season(s) the plant may grow in, then we define how frequently this plant is generated in a particular area, followed by how many harvested crop items may come from 1 plant. [PREFSTRING:] is what your dwarves like about the plant, which in this case is the rounded tops. [WET][DRY] are the conditions under which the plant can grow. Wet means it can grow close to water, dry means it can grow away from water. This does not mean you can grow the plant on dry stone however. It is just for natural spawning of the plant.&amp;lt;br&amp;gt;&lt;br /&gt;
[BIOME] Is what biome the plant grows in. [UNDERGROUND_DEPTH:Minimum:Maximum] Is the highest and lowest cavern levels that the plant can appear in if its biome is subterranean. Dwarven civilizations will only export (via the embark screen or caravans) things that available at depth 1. Defaults to 0:0 (surface only).&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly, [SHRUB_TILE] is the character used for the naturally spawning shrub of this plant, [DEAD_SHRUB] is the dead shrub character. [SHRUB_COLOR] Is the shrub's color, and [DEAD_SHRUB_COLOR] is, of course, the dead shrub's color.&lt;br /&gt;
&lt;br /&gt;
While this may or may not look like a lot of tokens, it's very easy. Just copy an existing plant and edit it to your new plant.&amp;lt;br&amp;gt;&lt;br /&gt;
For the rest of the tokens, see [[plant token]].&lt;br /&gt;
&lt;br /&gt;
== Workshops ==&lt;br /&gt;
&lt;br /&gt;
Workshops are raw-designed pretty differently from everything else in the game, being buildable structures rather than items or methods to gain items. However, they are fairly simple. For example, here's the raw for the [[soap maker's workshop]]:&lt;br /&gt;
&lt;br /&gt;
 [BUILDING_WORKSHOP:SOAP_MAKER]&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
 	[BLOCK:1:0:0:1]&lt;br /&gt;
 	[BLOCK:2:0:0:1]&lt;br /&gt;
 	[BLOCK:3:0:0:0]&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	[TILE:0:2:' ':' ':'/']&lt;br /&gt;
 	[TILE:0:3:'-':' ':' ']&lt;br /&gt;
 	[COLOR:0:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:3:6:0:0:0:0:0:0:0:0]&lt;br /&gt;
 	[TILE:1:1:' ':' ':'=']&lt;br /&gt;
 	[TILE:1:2:'-':' ':8]&lt;br /&gt;
 	[TILE:1:3:' ':' ':150]&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:2:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:3:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[TILE:2:1:'-':' ':8]&lt;br /&gt;
 	[TILE:2:2:' ':' ':8]&lt;br /&gt;
 	[TILE:2:3:' ':150:' ']&lt;br /&gt;
 	[COLOR:2:1:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:3:0:0:0:6:0:0:0:0:0]&lt;br /&gt;
 	[TILE:3:1:150:' ':8]&lt;br /&gt;
 	[TILE:3:2:' ':' ':8]&lt;br /&gt;
 	[TILE:3:3:' ':240:' ']&lt;br /&gt;
 	[COLOR:3:1:6:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:2:0:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:3:0:0:0:7:0:1:0:0:0]&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
&lt;br /&gt;
A line-by-line breakdown:&lt;br /&gt;
&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
&lt;br /&gt;
These are the name of the workshop (&amp;quot;Soap Maker's Workshop&amp;quot;) and [[color]] of the workshop's name when examined with 'q' (White with a black background).&lt;br /&gt;
&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
&lt;br /&gt;
DIM refers to how large the workshop will be, in this case 3 wide, 3 tall. WORK_LOCATION tells where the creature using it (usually a dwarf) will work, numbered from the top right--in this case, 2:2, or the middle. Multiple work locations can be defined, even outside the dim.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
&lt;br /&gt;
These refer to the worker required to build it (soap maker) and the key used to build it in the workshop menu (capital S).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  	[BLOCK:1:0:0:1]&lt;br /&gt;
 	...&lt;br /&gt;
This is a bit more complex, and is where we get to the meaty part of workshop making--the tiles' properties. BLOCK refers to which tiles will be untraversable--1 means blocked, 0 means unblocked. The first number refers to row, and the next 3 refer to column, so 1:0:0:1 means that, on the first row, the first two tiles will be unblocked and the last will be blocked.&lt;br /&gt;
&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	...&lt;br /&gt;
The TILE token tells which tile will go where. note, however, that there are 5 entries here instead of 4. The first number, in this case, refers to build stage, numbered from 0 to 3; 3 or 1 is fully built (depending on whether there are stages), 0 is just placed, and 2 is always an intermediate stage, while 1 is usually an intermediate stage. Whether 1 is an intermediate stage or not depends on if there are a 2 and 3 stage; if 2 and 3 exist, 1 will be intermediate. The second number and beyond are similar to BLOCK; however, instead of 1s and 0s, you must input tiles. The tiles themselves can be given in quotes (as in ' ') or given as a number, which can be looked up [[Tilesets|here]]. Here, we have 150, which is û.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	...&lt;br /&gt;
Color is as TILE, but with colors instead of tiles; however, colors are made up of 3 numbers each or MAT. MAT refers to the color of the material used to make it; the 3 numbers refer to foreground:background:foreground brightness, and can be looked up [[Color|here]]. For example, 4:2:1 will give you bright red with a dark green background.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
These refer to items required to build the building. These are in the same format as [[Reaction|reaction reagents and products]]--quantity:[[Item token|item]]:[[Material token|material]]. You'll learn more about those on the article about [[Reaction|reactions]], though. The second BUILD_ITEM is special-- it uses modifiers exclusively to determine its requirements. BUILDMAT refers to wood logs, wood blocks, stone boulders, and stone blocks; WORTHLESS_STONE_ONLY means it can't use economic stone; CAN_USE_ARTIFACT means that it... can use artifacts. EMPTY, in the bucket's case, means that the bucket must be empty.&lt;br /&gt;
&lt;br /&gt;
More can be seen at the [[Building token|building tokens]] article.&lt;br /&gt;
&lt;br /&gt;
== Reactions ==&lt;br /&gt;
&lt;br /&gt;
An in-depth guide for reactions is available [[Reactions|here]].&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
As we've seen when talking about creatures, materials are vital. Materials show up in two forms: material templates, which generally show up in creatures, and specific materials (designated as &amp;quot;inorganic&amp;quot;), which are (by default, at least) consigned purely to metal and stone types.&lt;br /&gt;
&lt;br /&gt;
Let's take a look at METAL_TEMPLATE in material_template_default.txt. It's evident that most of the basic properties of metals are already defined in the template - it goes red and melts at a high enough temperature, it's heavy, and (as noted by the very bottom token) is a metal. We already know just how useful templates can be to creatures, and the same applies to other materials.&lt;br /&gt;
&lt;br /&gt;
Now let's take a look at inorganic_metal.txt. You can see that the metals here refer to the templates, and, just like we did with creatures, then modify the properties of that template and expand upon it.&lt;br /&gt;
&lt;br /&gt;
Finally, let's look at inorganic_stone_mineral.txt. Here we can see that in addition to the changes made to the template, there are also ENVIRONMENT tokens - these tell the game where to place these minerals during worldgen.&lt;br /&gt;
&lt;br /&gt;
[[material definition token|Here's a list of material tokens]]. It should also help you out with any modifications you want to make regarding those creature modifications we were making a while back. See, it all ties together in the end. The beauty of the current materials system is that there's actually very little difference between, say, leather and iron - they're fundamentally the same thing, just with different properties, which is how things really should be.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
The Hydling by Mysteryguye (annotated, updated and separated into blocks by Putnam)&lt;br /&gt;
&lt;br /&gt;
 [CREATURE:HYDLING]&lt;br /&gt;
 	[DESCRIPTION:A seven-headed small hairy thing, about the size of a dog. It is very loyal to its masters, and will promptly disembowel any enemy straying too close.]&lt;br /&gt;
 This is the description that shows up in-game when viewing the creature.&lt;br /&gt;
&lt;br /&gt;
 	[NAME:hydling:hydlings:hydlish] If there were a civ made of hydlings, it would appear as &amp;quot;hydlings&amp;quot; in the neighbors screen.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE_NAME:hydling:hydlings:hydlish]&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_TILE:'='][COLOR:2:0:1] Will appear as a light green &amp;quot;=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[PETVALUE:78][NATURAL] Creature is known to be naturally occurring by the game. Will cost 40 embark points to buy.&lt;br /&gt;
&lt;br /&gt;
 	[LARGE_ROAMING] Will spawn outdoors, wandering around.&lt;br /&gt;
&lt;br /&gt;
 	[COMMON_DOMESTIC][TRAINABLE][PET] Can be bought on embark as a pet, war animal, or hunting animal.&lt;br /&gt;
&lt;br /&gt;
 	[BONECARN] Can eat meat and bones only--no vegetables.&lt;br /&gt;
&lt;br /&gt;
 	[PREFSTRING:loyalty] Dwarves will like it for its loyalty.&lt;br /&gt;
&lt;br /&gt;
 	[LIKES_FIGHTING] Will attack rather than flee.&lt;br /&gt;
&lt;br /&gt;
 	[BODY:BASIC_2PARTBODY:7HEADNECKS:BASIC_FRONTLEGS:BASIC_REARLEGS:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:SPINE:BRAIN:SKULL:3TOES_FQ_REG:3TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_FANGS:RIBCAGE]&lt;br /&gt;
&lt;br /&gt;
 Has a lower body, upper body, 4 legs, a tail, ten eyes, ten ears, five noses, two lungs, a heart, guts, a pancreas etc., and 5 heads with all that goes with those.&lt;br /&gt;
&lt;br /&gt;
 	[BODYGLOSS:PAW] Feet will be called &amp;quot;paws&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_MATERIALS] Declares the standard materials that most creatures' tissues are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_TISSUES] This declares the tissues that the creature's tissue layers are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE] And this describes the tissue layers that the creature is made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR] Creature will be covered with a layer of fur.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE] And it'll have nails.&lt;br /&gt;
&lt;br /&gt;
 	[USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]&lt;br /&gt;
&lt;br /&gt;
 	[TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] On the toe, specifically.&lt;br /&gt;
&lt;br /&gt;
 	[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]&lt;br /&gt;
 	 [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]&lt;br /&gt;
 		[TL_MAJOR_ARTERIES] Heart and throat--called above--will cause heavy bleeding if ruptured.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS] Places eyes, ears and what have you into their correct placement, so that you don't have people punching out eyes from behind.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS] Sets the ribcage as being around lungs and heart.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE] Defines sinew so that...&lt;br /&gt;
 	[TENDONS:LOCAL_CREATURE_MAT:SINEW:200] Tendons&lt;br /&gt;
 	[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200] And ligaments can be defined.&lt;br /&gt;
&lt;br /&gt;
 	[HAS_NERVES] Creature has nerves, and as such can be disabled by severing them.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE] Defines the material BLOOD using the template BLOOD_TEMPLATE.&lt;br /&gt;
 	[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID] Defines the creature's BLOOD as being made of the above-defined BLOOD material in a LIQUID state.&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_CLASS:GENERAL_POISON] Creature can be affected by syndromes that affect GENERAL_POISON.&lt;br /&gt;
&lt;br /&gt;
 	[GETS_WOUND_INFECTIONS] Pretty much self-explanatory. Creature can get infected from wounds.&lt;br /&gt;
 	[GETS_INFECTIONS_FROM_ROT] And from necrosis.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE] Defines PUS using PUS_TEMPLATE.&lt;br /&gt;
 	[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID] Defines PUS as being made of PUS.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_SIZE:0:0:1000] Creature will be 1000 cubic centimeters at birth...&lt;br /&gt;
 	[BODY_SIZE:1:0:12500] 12500 cubic centimeters at 1 year old...&lt;br /&gt;
 	[BODY_SIZE:2:0:30000] and 30000 cubic centimeters at 2.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110] Creature can be anywhere from 90% to 110% as long as others.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] As above, but with height.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110] As above, but with broadness. This puts the minimum size of the creature (when fully grown) at 21870 and the maximum size at 39930.&lt;br /&gt;
&lt;br /&gt;
 	[MAXAGE:20:30] Creature will die of old age between the ages of 20 and 30, no later than 30, no sooner than 20.&lt;br /&gt;
&lt;br /&gt;
 	[CAN_DO_INTERACTION:MATERIAL_EMISSION] Creature can use the MATERIAL_EMISSION interaction.&lt;br /&gt;
 		[CDI:ADV_NAME:Hurl fireball] In adventurer mode, the MATERIAL_EMISSION interaction will appear as &amp;quot;Hurl fireball&amp;quot;.&lt;br /&gt;
 		[CDI:USAGE_HINT:ATTACK] Creature will use MATERIAL_EMISSION when it's attacking, on creatures that it's attacking.&lt;br /&gt;
 		[CDI:BP_REQUIRED:BY_CATEGORY:HEAD] Creature must have at least one HEAD to use MATERIAL_EMISSION.&lt;br /&gt;
 		[CDI:FLOW:FIREBALL] The MATERIAL_EMISSION will shoot a fireball.&lt;br /&gt;
 		[CDI:TARGET:C:LINE_OF_SIGHT] The target for the emission--a location--must be within the line of sight of the Hydling.&lt;br /&gt;
 		[CDI:TARGET_RANGE:C:15] And must be, at most, 15 tiles away.&lt;br /&gt;
 		[CDI:MAX_TARGET_NUMBER:C:1] The hydling can only shoot at one target at a time...&lt;br /&gt;
 		[CDI:WAIT_PERIOD:30] and only every 30 ticks (3 tenths of a second at 100 FPS)&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH] Defines a BITE attack that uses teeth.&lt;br /&gt;
 		[ATTACK_SKILL:BITE] Attack uses the BITE skill.&lt;br /&gt;
 		[ATTACK_VERB:nom:noms] &amp;quot;The Hydling noms the Elf in the left first toe, tearing the muscle!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Will use all of the tooth. Note that this can be more than 100.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] Will sink the tooth all the way in. This can also be more than 100.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an EDGE attack.&lt;br /&gt;
 		[ATTACK_PRIORITY:MAIN] Attack is of priority MAIN. Other option is SECOND.&lt;br /&gt;
 		[ATTACK_FLAG_CANLATCH] Attack can latch.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3] Takes 3 ticks to wind up attack and 3 to recover from it.&lt;br /&gt;
                [ATTACK_FLAG_INDEPENDENT_MULTIATTACK] Can use each head independently.&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:NAIL] As above, but for nail instead of teeth.&lt;br /&gt;
 		[ATTACK_SKILL:STANCE_STRIKE] Uses the kicking skill.&lt;br /&gt;
 		[ATTACK_VERB:slice:slices] &amp;quot;You slice the Elf in the left foot and the severed part sails off in an arc!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Uses the whole nail.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] The whole nail goes in.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an edge attack.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3]&lt;br /&gt;
 		[ATTACK_PRIORITY:SECOND]&lt;br /&gt;
&lt;br /&gt;
 	[CHILD:1] Hydling will become an adult at 1 year old.&lt;br /&gt;
&lt;br /&gt;
 	[GENERAL_CHILD_NAME:hydie:hydies] Children will appear as &amp;quot;hydies&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[DIURNAL] Is active during the daytime.&lt;br /&gt;
&lt;br /&gt;
 	[HOMEOTHERM:10070] Has a body temperature of 102 Fahrenheit.&lt;br /&gt;
&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] Can run at 25 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] Can swim at 10 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] Can crawl at 5 kph&lt;br /&gt;
 	[SWIMS_INNATE]Swims innately.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:FEMALE] Defines a caste called FEMALE.&lt;br /&gt;
 		[FEMALE] FEMALE caste is female.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:MALE] As above, but with male.&lt;br /&gt;
 		[MALE] See above.&lt;br /&gt;
&lt;br /&gt;
= Modding utilities =&lt;br /&gt;
&lt;br /&gt;
[http://www.bay12forums.com/smf/index.php?topic=28829.0 A list of many mods and community-developed utilities]&lt;br /&gt;
&lt;br /&gt;
{{Category|Modding}}&lt;br /&gt;
[[Category:v0.31:Guides]]&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223825</id>
		<title>Modding</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Modding&amp;diff=223825"/>
		<updated>2016-03-01T10:33:34Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Colons are full-stops, not half-stops.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|14:13, 7 November 2013 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
This is intended to be a guide to inform those new to DF modding on what elements of the game can be modified, and how. After reading through this guide, a user should be capable of editing creatures, entities, materials ''et al'', and creating their own.&lt;br /&gt;
&lt;br /&gt;
Generally, breaking stuff is fine - nothing that can be changed will affect the DF executable, and new additions can be easily removed.&lt;br /&gt;
&lt;br /&gt;
This guide is based on [[40d:Modding guide|Teldin's guide]], originally created for version 0.27.176.39c. Per wiki tradition, it has been updated through all the major releases since then; hopefully it reflects current knowledge.&lt;br /&gt;
&lt;br /&gt;
'''See also:''' [[:Category:DF2014:Modding]]&lt;br /&gt;
&lt;br /&gt;
= Modding Guide =&lt;br /&gt;
&lt;br /&gt;
== Token Reference ==&lt;br /&gt;
&lt;br /&gt;
It's always good to refer to tokens on the wiki. Even experienced modders have to look up tokens! A list of articles about tokens can be found [http://dwarffortresswiki.org/index.php/Token here.]&lt;br /&gt;
&lt;br /&gt;
== Basics of DF modding ==&lt;br /&gt;
&lt;br /&gt;
All the base data that can be edited by prospective modders can be found in the \raw\ folder. This folder contains two subfolders: &amp;quot;graphics&amp;quot; (where you insert [[Graphics set repository|graphics sets]]), and &amp;quot;objects&amp;quot;, which contains all the data for generally everything in the game that is not hardcoded.&lt;br /&gt;
&lt;br /&gt;
Within the \raw\objects folder are a large number of text files - these are the [[raw file|raw files]], and editing them is quite easy - you can also create your own if you wish. For now, take a look at one of the existing files. For example if you open creature_standard.txt it should look something like this:&lt;br /&gt;
&lt;br /&gt;
 creature_standard&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:CREATURE]&lt;br /&gt;
 &lt;br /&gt;
 [CREATURE:DWARF]&lt;br /&gt;
     [DESCRIPTION:A short, sturdy creature fond of drink and industry.]&lt;br /&gt;
     [NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CASTE_NAME:dwarf:dwarves:dwarven]&lt;br /&gt;
     [CREATURE_TILE:1][COLOR:3:0:0]&lt;br /&gt;
     [CREATURE_SOLDIER_TILE:2]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
As you can see, each file comprises a header string stating the file name, a second header stating the type of object data it contains, followed by the contents of the file itself. These are all necessary elements of the file, and without them, the file won't be parsed correctly by the game. You may have also noticed the file naming scheme - this is also important; files containing creatures have names starting with &amp;quot;creature_&amp;quot;, entity file names must begin with &amp;quot;entity_&amp;quot;, etc..&lt;br /&gt;
&lt;br /&gt;
Below the headers, there begins a list of entries. Each entry is made up of its own header (in this case, &amp;quot;[CREATURE:DWARF]&amp;quot;), again stating the type of object, and then the object's unique identifier - if an identifier isn't unique, the game will mess up and you'll get some serious, and potentially very trippy, errors. Below that, we have the body of the entry, which determines the entry's specific properties.&lt;br /&gt;
&lt;br /&gt;
The body of an entry is made up of a series of &amp;quot;tokens&amp;quot;, which are essentially flags that can be added or removed to affect the entry's attributes. Most of these effects are hardcoded: for example, it's possible to make a creature only eat meat with the [CARNIVOROUS] token, but it's impossible to create your own token detailing a specific diet for the creature.&lt;br /&gt;
&lt;br /&gt;
Before we continue, a few key things to remember when modding the raw files:&lt;br /&gt;
&lt;br /&gt;
* Try to avoid modifying the existing raw files when adding objects. It makes removing mods far easier.&lt;br /&gt;
* When adding files, all you need to include to ensure proper references are maintained is the token identifier's.  The game will load up all *.txt in the raw folder, and searches through them by tokens.  For example: You can add a new pair of leather boots and not even have to add it to the item_shoes.txt file, but rather make your own file, say item_shoes_new.txt and ensure you have the token listed, ex. [ITEM_SHOES:ITEM_SHOES_BOOTS_NEW], that's how the game will look for the item.&lt;br /&gt;
* If you want to edit an already-existing creature, always back up the files you plan on editing to a different location. Since v0.31.22, the game no longer loads backup files, but duplicate entries are still a very bad thing.&lt;br /&gt;
* When a new world is generated, all the raw files get copied into a \raw\ folder within the applicable save folder. If you want to change something within a world that's already been generated, you'll have to edit those files, not the ones in ~DF\raw\objects.&lt;br /&gt;
* There's nothing stopping you from just copying an existing creature/entity/whatever, changing the identifier, and modifying it. This can save you a lot of time, especially when it comes to entities... which are coincidentally what we'll be talking about next.&lt;br /&gt;
&lt;br /&gt;
== Modding civilizations (entities) ==&lt;br /&gt;
&lt;br /&gt;
Entities - the objects that determine how civilizations work - are stored in entity_default.txt (though, like all other files, you may add more). They follow the same format as any other raw file:&lt;br /&gt;
&lt;br /&gt;
 entity_default&lt;br /&gt;
 &lt;br /&gt;
 [OBJECT:ENTITY]&lt;br /&gt;
 &lt;br /&gt;
 [ENTITY:ENTITYNAME]&lt;br /&gt;
     [CREATURE:CREATURETYPE]&lt;br /&gt;
     [TRANSLATION:LANGUAGETYPE]&lt;br /&gt;
     [BIOME_SUPPORT:BIOMETOKEN:FREQENCY]&lt;br /&gt;
     ...[OTHER TAGS]...&lt;br /&gt;
&lt;br /&gt;
Most of the time, it doesn't matter which order these tokens are in or where they're placed so long as they're below the &amp;quot;ENTITY:&amp;quot; identifier, but there are some important exceptions in the case of other files, especially creatures, which can contain a lot of &amp;quot;nested&amp;quot; tokens.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[CREATURE:]&amp;quot; links the civilization with a specific creature defined in a creature file. This is the creature that'll be making up the entity's population, and will therefore be the creature you'll be playing as in fortress or adventure mode if the entity is a playable one. For example, if you wanted to do something silly, you could switch the &amp;quot;CREATURE:DWARF&amp;quot; entry in entity_default.txt with &amp;quot;CREATURE:ELF&amp;quot; and you would be marching elves around in fortress mode, although they would still use dwarven technology and language and names and so forth.&lt;br /&gt;
&lt;br /&gt;
Oh, and before you get any funny ideas - it ''is'' possible to define more than one creature for a civ, but that won't work in quite the way you probably expect; later on, in the creature section, you'll learn about castes, which will provide a much more viable alternative, so try to bear with us until then.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[TRANSLATION:]&amp;quot; defines the language file that the entity will be using, which will determine what their untranslated words are for things. This doesn't determine which words they use for naming things, only the way those words are spelled. The default language files are HUMAN, DWARF, ELF, and GOBLIN.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;[BIOME_SUPPORT:]&amp;quot; defines the biomes that civs will attempt to settle in. The &amp;quot;FREQUENCY&amp;quot; value determines the likelihood of them building there, but also raises an important point: most of the values you'll be setting for things are relative to each other. If one was to type:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:1]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:2]&lt;br /&gt;
&lt;br /&gt;
This would have very much the same effect as:&lt;br /&gt;
&lt;br /&gt;
 [BIOME_SUPPORT:ANY_FOREST:5]&lt;br /&gt;
 [BIOME_SUPPORT:SAVANNA:10]&lt;br /&gt;
&lt;br /&gt;
This holds true for a lot of values throughout the files, excluding when it simply doesn't make sense, such as in materials.&lt;br /&gt;
&lt;br /&gt;
You can find many details about the rest of the civilization tokens [[entity token|here]]. Besides those mentioned, some fundamental ones are the CIV_CONTROLLABLE token, which lets you control the civ in fortress mode, the INDIV_CONTROLLABLE token, which allows you to play the civ in adventure mode as an outsider, and the ADVENTURE_TIER token, which allows you to play a civ native (non-outsider) in adventure mode. Other tokens that you should pay attention to are START_BIOME and the ones regarding sites, but in general, you can just run through the aforementioned list and add or remove what you want.&lt;br /&gt;
&lt;br /&gt;
If you have more than one civ with the CIV_CONTROLLABLE token, all the available civs from those entities will appear in the group selection section on the embark screen. It may not be immediately obvious from which species each civ may be - while this can be determined from legends mode, the topmost species in the &amp;quot;neighbors&amp;quot; display in the embark screen is always the same as the currently selected species; if your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a civ (and therefore a species if there is more than one) at random.&lt;br /&gt;
&lt;br /&gt;
You can also attempt to discern the civ yourself by the names it uses - this is the realm of &amp;quot;symbols&amp;quot;, collections of words centered around a specific concept. The civ will use the words comprising whatever symbols are applicable to it for various things. This association might be a little obfuscating at first, so I'll run through it. Let's refer to the DWARF entity:&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:WAR:NAME_WAR]&lt;br /&gt;
 [SUBSELECT_SYMBOL:WAR:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:BATTLE:NAME_BATTLE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:BATTLE:VIOLENT]&lt;br /&gt;
 [SELECT_SYMBOL:SIEGE:NAME_SIEGE]&lt;br /&gt;
 [SUBSELECT_SYMBOL:SIEGE:VIOLENT]&lt;br /&gt;
&lt;br /&gt;
Here we can see that dwarves will generally name their wars first after words in the &amp;quot;NAME_WAR&amp;quot; symbol group, and then after words in the &amp;quot;VIOLENT&amp;quot; symbol group. This might, for example, result in a war being named &amp;quot;The War of Carnage&amp;quot;. The symbols used for the other types of conflict are arrayed in a similar fashion. It would be trivial to replace the instances of VIOLENT with, say, PEACE and end up with a battle called &amp;quot;The Clash of Calm&amp;quot; or something.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:ROAD:NAME_ROAD]&lt;br /&gt;
 [SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]&lt;br /&gt;
 [SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]&lt;br /&gt;
 [SELECT_SYMBOL:WALL:NAME_WALL]&lt;br /&gt;
&lt;br /&gt;
The above applies here. Dwarves are fond of naming their roads and tunnels after roads and tunnels.&lt;br /&gt;
&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:ARTIFICE]&lt;br /&gt;
 [SELECT_SYMBOL:REMAINING:EARTH]&lt;br /&gt;
 [CULL_SYMBOL:ALL:DOMESTIC]&lt;br /&gt;
 [CULL_SYMBOL:ALL:SUBORDINATE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:EVIL]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UNTOWARD]&lt;br /&gt;
 [CULL_SYMBOL:ALL:FLOWERY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATIVE]&lt;br /&gt;
 [CULL_SYMBOL:ALL:UGLY]&lt;br /&gt;
 [CULL_SYMBOL:ALL:NEGATOR]&lt;br /&gt;
&lt;br /&gt;
This section deals with everything else. The things that haven't already been dealt with (hence the &amp;quot;REMAINING&amp;quot;) - such as site names, kingdom names, the names of individuals, and such - will have names from the ARTIFICE and EARTH symbol groups. After that the dwarf entity is told to cull all innapropriate symbols - this applies to everything (hence the &amp;quot;ALL&amp;quot;) so if the game happens to choose a symbol associated with, say, EVIL for one of the battles, it'll scrap that name and try again. This sort of thing adds a lot of flavour to DF's entities and can account for a lot of a civ's perceived personality.&lt;br /&gt;
&lt;br /&gt;
Another basic thing to note: any entity token that's dealing with weapons, armor, clothing, etc., will state the items that the civ can build natively, not necessarily the ones they can wear or use. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them. &lt;br /&gt;
&lt;br /&gt;
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's &amp;quot;ENTITY:&amp;quot; identifier! This can be anything so long as it's not already existing.&lt;br /&gt;
&lt;br /&gt;
At the end of some of the default entries you'll find a list of positions, both ones that'll directly affect you in fort mode (such as nobles) and ones that'll primarily affect worldgen and adventure mode. A list of the tokens applicable to positions can be found [[position token|here]]; they don't require a great deal of explanation.&lt;br /&gt;
&lt;br /&gt;
== Modding the creatures ==&lt;br /&gt;
&lt;br /&gt;
Creature modding is great fun. You can change nearly any aspect of a creature or make your own completely from scratch.&lt;br /&gt;
&lt;br /&gt;
Modding creatures is very similar to modding civs: it's just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all of the information about each and every non-random creature in the game, from animals to dwarves to goblins to even caravan wagons. A lot of the creature tokens are fairly self-explanatory; you can find a list of such tokens [[creature token|here]]. But before you start creating your own creatures, you'll want to learn how the tissues system works.&lt;br /&gt;
&lt;br /&gt;
=== Creature materials and tissues ===&lt;br /&gt;
&lt;br /&gt;
In the most basic sense, a creature is a series of bodyparts. These parts are defined in their own file, and we'll talk about them later. As a specific aspect of how creatures work which throws off a lot of prospective modders is the relationship between bodyparts, tissues, and materials. We're going to show you part of the creature entry for a bronze colossus (bear with us):&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [TISSUE:BRONZE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
At the top, we can see the &amp;quot;BODY:&amp;quot; token, followed by a list of bodyparts. As you've probably guessed, these parts make up the physical form of the colossus. But the colossus has to be made out of something - it has to have tissues. And those tissues also have to be made out of something - in this case, bronze.&lt;br /&gt;
&lt;br /&gt;
Below the BODY token you'll see a TISSUE token, followed by an identifier, much like the others we've seen. The TISSUE block is determining how the tissue works, and which purposes it'll serve. As the colossus is just going to be made out of this one tissue, this tissue needs to act like bone, muscle, and everything else combined, hence the MUSCULAR, FUNCTIONAL and STRUCTURAL tokens. The tissue also references a material - INORGANIC:BRONZE - the properties of which are declared in the inorganic materials file, and the tissue is subsequently made out of this material. With us so far?&lt;br /&gt;
&lt;br /&gt;
Below the tissue definition is the TISSUE_LAYER line. TISSUE_LAYER allows you to control where each tissue is applied. Its first argument defines if it's to search by bodypart category (BY_CATEGORY), bodypart type (BY_TYPE), or look for a specific part (BY_TOKEN). That's followed by the parts argument itself, which is in this case ALL (so the game's looking for parts in all categories, which is to say, every bodypart). This is followed by the tissue to be applied, BRONZE. So the TISSUE_LAYER token is telling the game to select all bodyparts in every category and make them out of the tissue &amp;quot;BRONZE&amp;quot;. The colossus is now made of bronze.&lt;br /&gt;
&lt;br /&gt;
By now you're probably thinking &amp;quot;Wow, if this was for a creature made out of however many tissues, this would be amazingly longwinded&amp;quot;. And you're right. Luckily, there are two methods by which we can speed things up a lot.&lt;br /&gt;
&lt;br /&gt;
Firstly, there are material and tissue templates. Let's say you were going to make a lot of creatures out of bronze, and you didn't want to have to copy and paste the bronze tissue all over the place. Instead, you create a tissue template. This goes, as you've probably guessed, in a tissue template file.&lt;br /&gt;
&lt;br /&gt;
 [TISSUE_TEMPLATE:BRONZE_TEMPLATE]&lt;br /&gt;
     [TISSUE_NAME:bronze:bronze]&lt;br /&gt;
     [TISSUE_MATERIAL:INORGANIC:BRONZE]&lt;br /&gt;
     [MUSCULAR]&lt;br /&gt;
     [FUNCTIONAL]&lt;br /&gt;
     [STRUCTURAL]&lt;br /&gt;
     [RELATIVE_THICKNESS:1]&lt;br /&gt;
     [CONNECTS]&lt;br /&gt;
     [TISSUE_SHAPE:LAYER]&lt;br /&gt;
&lt;br /&gt;
Now, instead of applying the tissue to each and every bronze creature you're making, you can just refer to the template:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 [BODY:HUMANOID:2EYES:2EARS:NOSE:HUMANOID_JOINTS:5FINGERS:5TOES]&lt;br /&gt;
 [NO_THOUGHT_CENTER_FOR_MOVEMENT]&lt;br /&gt;
 [USE_TISSUE_TEMPLATE:BRONZE:BRONZE_TEMPLATE]&lt;br /&gt;
 [TISSUE_LAYER:BY_CATEGORY:ALL:BRONZE]&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Material templates work in the same way, but refer to materials instead of tissues.&lt;br /&gt;
&lt;br /&gt;
However, if we're looking at something like a dwarf, even with the templates, editing can get very slow indeed:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BONE:BONE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:CARTILAGE:CARTILAGE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:TOOTH:TOOTH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:EYE:EYE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:NERVE:NERVE_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:BRAIN:BRAIN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LUNG:LUNG_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:HEART:HEART_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:LIVER:LIVER_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:GUT:GUT_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:STOMACH:STOMACH_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:PANCREAS:PANCREAS_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:SPLEEN:SPLEEN_TEMPLATE]&lt;br /&gt;
     [USE_MATERIAL_TEMPLATE:KIDNEY:KIDNEY_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:SKIN:SKIN_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:FAT:FAT_TEMPLATE]&lt;br /&gt;
     [USE_TISSUE_TEMPLATE:MUSCLE:MUSCLE_TEMPLATE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This is where body detail plans come in. Detail plans, of course, have their own file, and they are designed to help automate some of the more common processes in creature creation. The first entry in b_detail_plan_default.txt does exactly what we've been trying to do above: it takes all the common materials and shoves them into one plan, which can be referenced with a single token.&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Much easier. But what about the TISSUE_LAYER tokens? Will we have to type out all of those manually?&lt;br /&gt;
&lt;br /&gt;
Nope, detail plans have that covered as well. It's possible to place variable arguments into a detail plan. For example:&lt;br /&gt;
&lt;br /&gt;
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_UPPER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:BODY_LOWER:ARG3:50:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:ARM_UPPER:ARG4:25:ARG3:25:ARG2:5:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
     [BP_LAYERS:BY_CATEGORY:NOSE:ARG5:4:ARG1:1]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
First an argument is placed in the plan (ARG1, ARG2 etc.), followed by the thickness of the tissue that will be inserted in place of the argument. So when we reference the VERTEBRATE_TISSUE_LAYERS plan, we'll be able to do something like this:&lt;br /&gt;
&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
&lt;br /&gt;
ARG1 in the detail plan is replaced by SKIN, the first tissue we entered. ARG2 is replaced by FAT, ARG3 by muscle, ARG4 by bone, and ARG5 by CARTILAGE. Hence, our creature's bodypart designated as BODY is made up of SKIN with thickness 1, FAT with thickness 5, and MUSCLE with thickness 50. Its nose is made up of SKIN (thickness 1) and CARTILAGE (thickness 4).&lt;br /&gt;
&lt;br /&gt;
Things left out of the body plans aside, our dwarf's entire body, material, tissue and tissue layer tokens have been boiled down to this:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
This can save you a lot of time and space if you're making lots of changes common to many creatures. In general, if you're making a creature that's fleshy or chitinous, there's detail plans already included in the game to help you out. You should only have to resort to declaring tissues individually (like our bronze colossus) if you're doing something really out-of-the-ordinary.&lt;br /&gt;
&lt;br /&gt;
Another great thing about templates (and so, detail plans) is that they can be modified after being declared. Let's say we wanted our dwarves to be perpetually on fire (don't ask). We declare the body stuff normally:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We then select the appropriate material:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
We don't want them burning to death, so we'll need to stop that from happening:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:&lt;br /&gt;
     THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_MATERIALS]&lt;br /&gt;
     [BODY_DETAIL_PLAN:STANDARD_TISSUES]&lt;br /&gt;
     [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]&lt;br /&gt;
     [SELECT_MATERIAL:SKIN]&lt;br /&gt;
         [MAT_FIXED_TEMP:10600]&lt;br /&gt;
     [SELECT_MATERIAL:ALL]&lt;br /&gt;
         [HEATDAM_POINT:NONE]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
Note that this makes use of DF's built-in temperature scale. You can read more about that [[Temperature|on this page]]. We're also referencing material tokens, which we haven't gone over yet - we'll talk about making your own materials later.&lt;br /&gt;
&lt;br /&gt;
=== Creature castes ===&lt;br /&gt;
&lt;br /&gt;
Another potentially extremely powerful part of the creature raws is the caste system. The caste system handles both true biological castes and lesser variations, such as sexes.&lt;br /&gt;
&lt;br /&gt;
To understand the true potential of the caste system, we only need to take a look at the raws for antmen, found in creature_subterrenean.txt:&lt;br /&gt;
&lt;br /&gt;
     ...&lt;br /&gt;
     [CASTE:WORKER]&lt;br /&gt;
         [CASTE_NAME:worker ant woman:worker ant women:worker ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:10000]&lt;br /&gt;
     [CASTE:SOLDIER]&lt;br /&gt;
         [CASTE_NAME:soldier ant woman:soldier ant women:soldier ant woman]&lt;br /&gt;
         Female, but non-breeding.&lt;br /&gt;
         [POP_RATIO:1000]&lt;br /&gt;
     [CASTE:DRONE]&lt;br /&gt;
         [MALE]&lt;br /&gt;
         [CASTE_NAME:drone ant man:drone ant men:drone ant man]&lt;br /&gt;
         [POP_RATIO:5]&lt;br /&gt;
     [CASTE:QUEEN]&lt;br /&gt;
         [FEMALE]&lt;br /&gt;
         [CASTE_NAME:queen ant woman:queen ant women:queen ant woman]&lt;br /&gt;
         [POP_RATIO:1]&lt;br /&gt;
     [SELECT_CASTE:WORKER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:SOLDIER]&lt;br /&gt;
      [SELECT_ADDITIONAL_CASTE:QUEEN]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
     [SELECT_CASTE:DRONE]&lt;br /&gt;
         [BODY:HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH:2WINGS]&lt;br /&gt;
         [BODYGLOSS:INSECT_UPPERBODY:INSECT_LOWERBODY]&lt;br /&gt;
         [FLIER]&lt;br /&gt;
     [SELECT_CASTE:ALL]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_MATERIALS]&lt;br /&gt;
         [BODY_DETAIL_PLAN:CHITIN_TISSUES]&lt;br /&gt;
         [BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]&lt;br /&gt;
         [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]&lt;br /&gt;
         [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]&lt;br /&gt;
             [ATTACK_SKILL:GRASP_STRIKE]&lt;br /&gt;
             [ATTACK_VERB:punch:punches]&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
It's evident that the process of creating and editing castes is comparable to the modifications we were making to tissues and materials earlier: A caste is declared, and modifications to the base creature are made. Declared castes can be selected and subsequently modified, again, just like tissues and materials.&lt;br /&gt;
&lt;br /&gt;
In this case, each caste is declared, given its own name, and a POP_RATIO, which determines how commonly a birth results in that caste - for every 10000 workers born, there'll be an average of 1000 soldiers, 5 drones and one queen. You've probably also noticed that the DRONE and QUEEN castes have the MALE and FEMALE tokens respectively - these tokens determine how breeding works. A creature without both a MALE caste and a FEMALE caste will be unable to breed (no asexual creatures yet, unfortunately). As they lack FEMALE, the workers and soldiers are unable to breed with the male drones.&lt;br /&gt;
&lt;br /&gt;
After this, there are some modifications to bodyparts. In this case, the drones have wings and the FLIER token, which the other castes lack. It's entirely possible for creatures of different castes to have completely different body stuctures, even to the extent that they don't resemble each other at all. If you read the section of this guide that dealt with entities, you may remember a passing mention of multi-creature civilisations and how they don't quite work as you may think they would. The castes system is your workaround. You could create a caste that is, for all intents and purposes, a human, and another caste of the same creature that acts exactly like a giant cave spider, put the creature in a civ, and get a human-spider civ. The only flaw in this approach is that the castes will interbreed.&lt;br /&gt;
&lt;br /&gt;
That's the most complex components of creature creation out of the way. You should find the rest trivial by comparison.&lt;br /&gt;
&lt;br /&gt;
== Modding items ==&lt;br /&gt;
&lt;br /&gt;
Items are fairly simple to deal with. By default, each item type is contained in its own file; this may help make browsing for a specific item easier, but from a purely technical point of view, it's possible to throw all items into one file. Unfortunately, item tokens don't seem to be especially well-documented (at least not as well as the other object types), but you should be able to figure out most things by way of our explanations and your assumptions.&lt;br /&gt;
&lt;br /&gt;
Let's look at the entry for, of course, the thong:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_PANTS:ITEM_PANTS_THONG]&lt;br /&gt;
 [NAME:thong:thongs]&lt;br /&gt;
 [LAYER:UNDER]&lt;br /&gt;
 [COVERAGE:25]&lt;br /&gt;
 [LAYER_SIZE:10]&lt;br /&gt;
 [LAYER_PERMIT:30]&lt;br /&gt;
 [MATERIAL_SIZE:1]&lt;br /&gt;
 [SOFT]&lt;br /&gt;
 [LEATHER]&lt;br /&gt;
 [STRUCTURAL_ELASTICITY_WOVEN_THREAD]&lt;br /&gt;
&lt;br /&gt;
Most of these are pretty obvious if one compares them to the other entries in the file. There's a layer for the item, determining where it's worn; a coverage value to determine how well it protects you from cold and other things; a size token to determine how much it counts for when it's under something else; a layer permit token to determine how much can be worn under it; and a material size token to determine how much raw material it takes to make it.&lt;br /&gt;
&lt;br /&gt;
Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere. Simple! These tokens work by tying into material properties - some materials are designated as suitable for making hard items, some for soft, etc..&lt;br /&gt;
&lt;br /&gt;
Weapons involve a little more detail:&lt;br /&gt;
&lt;br /&gt;
 [ITEM_WEAPON:ITEM_WEAPON_SWORD_2H]&lt;br /&gt;
 [NAME:two-handed sword:two-handed swords]&lt;br /&gt;
 [SIZE:900]&lt;br /&gt;
 [SKILL:SWORD]&lt;br /&gt;
 [TWO_HANDED:67500]&lt;br /&gt;
 [MINIMUM_SIZE:62500]&lt;br /&gt;
 [MATERIAL_SIZE:5]&lt;br /&gt;
 [ATTACK:EDGE:100000:8000:slash:slashes:NO_SUB:1250]&lt;br /&gt;
 [ATTACK:EDGE:50:4000:stab:stabs:NO_SUB:1000]&lt;br /&gt;
 [ATTACK:BLUNT:100000:8000:slap:slaps:flat:1250]&lt;br /&gt;
 [ATTACK:BLUNT:100:1000:strike:strikes:pommel:1000]&lt;br /&gt;
&lt;br /&gt;
SIZE determines how heavy the weapon is. This has a substantial effect on weapon effectiveness. SKILL determines which skill is used in using the weapon; a list of skills can be found [[skill token|on this page]]. MINIMUM_SIZE determines the minimum size a creature must be before the weapon can be wielded, while TWO_HANDED determines how large a creature must be in order to wield the weapon with one hand.&lt;br /&gt;
&lt;br /&gt;
Attacks take a little more explanation. The first value determines the contact area of the weapon's attack; this should be high for slashing weapons and low for bludgeoning, piercing and poking ones. The second value determines how deep the weapon penetrates - for BLUNT attacks this value is ignored as they're not supposed to penetrate anyway, but in the case of EDGE attacks it should generally be lower for slashing attacks and higher for stabbing attacks.&lt;br /&gt;
&lt;br /&gt;
Following these are the nouns and verb used; they should be self-explanatory. Finally, we have the velocity modifier, which has a multiplying effect on the weapon's size for the purposes of determining how powerful it is in combat.&lt;br /&gt;
&lt;br /&gt;
Other, more miscellaneous items are generally simple and shouldn't require any further explanation.&lt;br /&gt;
&lt;br /&gt;
Once you've made an item, you just add it to the civ entry so a civilization can actually craft it, and it's done.&lt;br /&gt;
&lt;br /&gt;
== Modding language files ==&lt;br /&gt;
&lt;br /&gt;
Let's say you added a whole new species. Sure, you could just swipe one of the existing translation files and steal their language for your species, but that's the lazy way! If you want to create a whole new language, it's very simple.&lt;br /&gt;
&lt;br /&gt;
First, you'd need a whole new language_RACE file, such as language_LIZARDMAN.txt, along with &amp;quot;language_LIZARDMAN&amp;quot; at the top of the file proceeded by [OBJECT:LANGUAGE] and [TRANSLATION:LIZARDMAN]. After that, it's just a matter of copy-pasting one of the existing language lists and editing the finished 'translated' word. That's it! Then just add the translation link to your civ in entity_default.txt and it'll be added to the game on worldgen.&lt;br /&gt;
&lt;br /&gt;
(Note that the name of the file doesn't actually matter; however, it's good form to name the file after a creature if only that creature speaks the language)&lt;br /&gt;
&lt;br /&gt;
== Modding body parts ==&lt;br /&gt;
&lt;br /&gt;
Imagine you have this fantastic idea for a multi-tentacled winged spider-monster. Sounds great! But in order to make this a reality you may need to create a new set of body parts for it. That's no problem! Making body parts is easy, though it may look complicated at first. &lt;br /&gt;
&lt;br /&gt;
All of the default body definitions are located in body_default.txt and then linked to a creature in the creature's entry. We've talked about how bodyparts make up creatures earlier, in the creature section. You can mix and match them in the creature entry and it makes no difference, as long as they're there: each bodypart will link itself to the appropriate connection automatically when the creature is first created.&lt;br /&gt;
&lt;br /&gt;
Body parts work by sections: you can add as many sections as you want to a bodypart definition, but generally you should keep it fairly low for ease of use. Each body section entry is in the, very simple, format:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BODYNAME]&lt;br /&gt;
 [BP:TOKENID:name][TOKENSGOHERE][DEFAULT_RELSIZE:][CATEGORY:WHATEVER]&lt;br /&gt;
&lt;br /&gt;
The most important tokens are &amp;quot;CONTYPE&amp;quot; and &amp;quot;CON&amp;quot;: CONTYPE means the bodypart in question is connected to a certain ''type'' of bodypart, while CON means it's connected to a ''specific'' one. TOKENID is yet another identifier, which should be unique, as it's referenced every time something uses CON or BY_TOKEN. DEFAULT_RELSIZE defines, of course, what the bodypart's size is in relation to the other parts. CATEGORY defines a category for the part, which can be unique or shared with other parts. This is referenced whenever BY_CATEGORY is used.&lt;br /&gt;
&lt;br /&gt;
A list of bodypart tokens can be found [[body token|here]].&lt;br /&gt;
&lt;br /&gt;
Let's take a simple example, a head:&lt;br /&gt;
&lt;br /&gt;
 [BODY:BASIC_HEAD]&lt;br /&gt;
 [BP:HD:head:STP][CONTYPE:UPPERBODY][HEAD][CATEGORY:HEAD]&lt;br /&gt;
 [DEFAULT_RELSIZE:300]&lt;br /&gt;
&lt;br /&gt;
It connects directly to an upper body.&lt;br /&gt;
&lt;br /&gt;
 [BODY:2EYES]&lt;br /&gt;
     [BP:REYE:right eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][RIGHT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
     [BP:LEYE:left eye:STP][CONTYPE:HEAD][SIGHT][EMBEDDED][SMALL][LEFT][CATEGORY:EYE]&lt;br /&gt;
         [DEFAULT_RELSIZE:5]&lt;br /&gt;
&lt;br /&gt;
These are a pair of eyes, connecting to the head.&lt;br /&gt;
&lt;br /&gt;
 [BODY:HUMANOID]&lt;br /&gt;
     [BP:UB:upper body:upper bodies][UPPERBODY][CATEGORY:BODY_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:LB:lower body:lower bodies][CON:UB][LOWERBODY][CATEGORY:BODY_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:1000]&lt;br /&gt;
     [BP:HD:head:STP][CON:UB][HEAD][CATEGORY:HEAD]&lt;br /&gt;
         [DEFAULT_RELSIZE:300]&lt;br /&gt;
     [BP:RUA:right upper arm:STP][CON:UB][LIMB][RIGHT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LUA:left upper arm:STP][CON:UB][LIMB][LEFT][CATEGORY:ARM_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RLA:right lower arm:STP][CON:RUA][LIMB][RIGHT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:LLA:left lower arm:STP][CON:LUA][LIMB][LEFT][CATEGORY:ARM_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:200]&lt;br /&gt;
     [BP:RH:right hand:STP][CON:RLA][GRASP][RIGHT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:LH:left hand:STP][CON:LLA][GRASP][LEFT][CATEGORY:HAND]&lt;br /&gt;
         [DEFAULT_RELSIZE:80]&lt;br /&gt;
     [BP:RUL:right upper leg:STP][CON:LB][LIMB][RIGHT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:LUL:left upper leg:STP][CON:LB][LIMB][LEFT][CATEGORY:LEG_UPPER]&lt;br /&gt;
         [DEFAULT_RELSIZE:500]&lt;br /&gt;
     [BP:RLL:right lower leg:STP][CON:RUL][LIMB][RIGHT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:LLL:left lower leg:STP][CON:LUL][LIMB][LEFT][CATEGORY:LEG_LOWER]&lt;br /&gt;
         [DEFAULT_RELSIZE:400]&lt;br /&gt;
     [BP:RF:right foot:right feet][CON:RLL][STANCE][RIGHT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
     [BP:LF:left foot:left feet][CON:LLL][STANCE][LEFT][CATEGORY:FOOT]&lt;br /&gt;
         [DEFAULT_RELSIZE:120]&lt;br /&gt;
&lt;br /&gt;
An entire humanoid body. The foot bone's connected to the ankle bone...&lt;br /&gt;
&lt;br /&gt;
&amp;quot;BODYGLOSS&amp;quot; entries, which you can sometimes find applied to creature entries, are simply replacement words for specific part name strings in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in body_default.txt; you can then use this in a creature via &amp;quot;[BODYGLOSS:CLAW_HAND]&amp;quot; and it'll replace all instances of &amp;quot;hand&amp;quot; with &amp;quot;claw&amp;quot; in that creature. Be warned, however—if you were to, say make a bodygloss [BODYGLOSS:EARSTALK:ear:stalk:ears:stalk], it would not only change &amp;quot;ear&amp;quot; and &amp;quot;ears&amp;quot; to &amp;quot;stalk&amp;quot; and &amp;quot;stalks&amp;quot;, it would also change &amp;quot;h'''ear'''t&amp;quot; to &amp;quot;h'''stalk'''t&amp;quot;! For all intents and purposes the body part will still function as the proper part, though.&lt;br /&gt;
&lt;br /&gt;
== Modding plants ==&lt;br /&gt;
&lt;br /&gt;
Plants are, again, not unlike creatures. With what you've learned so far in regard to tokens and the materials system, running through the notes included in plant_standard.txt should explain most things. [[Plant token|Here's the list of plant-specific tokens]].&lt;br /&gt;
&lt;br /&gt;
Below is the [[plump helmet]] raw description:&lt;br /&gt;
&lt;br /&gt;
 [PLANT:MUSHROOM_HELMET_PLUMP]&lt;br /&gt;
 	[NAME:plump helmet][NAME_PLURAL:plump helmets][ADJ:plump helmet]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
 &lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
Let's look at this line by line:&amp;lt;br&amp;gt;&lt;br /&gt;
First, we define its file name. In this case it's MUSHROOM_HELMET_PLUMP. Next we define its in-game name (plump helmet) and its adjective for if you were to craft with it (e.g. plump helmet earrings).&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 	[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]&lt;br /&gt;
&lt;br /&gt;
This defines the structure and material of the plant. It references STRUCTURAL_PLANT_TEMPLATE in the first line, so if you were to say, add wings to the template, the plump helmet plant would be winged. This is for the plant itself, not the end plump helmets.&lt;br /&gt;
&lt;br /&gt;
After that we get our edible tokens. These say that vermin can eat the plant, and it can be eaten raw or cooked by your dwarves. So if you wanted a plant vermin would leave alone, you'd remove the [EDIBLE_VERMIN] token.&lt;br /&gt;
&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
&lt;br /&gt;
Next, [PICKED_TILE:161] is the character (161 in this case) shown when the crop is harvested. See [[Main:Character table|character table]] for a table of usable tiles. [PICKED_COLOR:6:13:0] is the color used for the crop's tile when harvested. It's in a foreground:background:brightness format. See [[color]] for the colors usable.&lt;br /&gt;
&lt;br /&gt;
 	[PICKED_TILE:161][PICKED_COLOR:6:13:0]&lt;br /&gt;
&lt;br /&gt;
[GROWDUR:300] is how long it takes for your crop to grow. There are 1008 growdur units in a season.&amp;lt;br&amp;gt;&lt;br /&gt;
[VALUE:2] Is the value of harvested plant (default 1). Appears to have no effect in version 0.31.&lt;br /&gt;
&lt;br /&gt;
 	[GROWDUR:300][VALUE:2]&lt;br /&gt;
&lt;br /&gt;
This defines the plant's alcohol states. [STATE_NAME_ADJ:ALL_SOLID:] is the frozen name, followed is the actual drink name, and then its boiling name. These are achieved by either Scorching or Freezing climates. [DISPLAY_COLOR] is, of course, color, and [EDIBLE_RAW] and [EDIBLE_COOKED] are saying you can drink the alcohol raw or cooked.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]&lt;br /&gt;
 		[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:LIQUID:dwarven wine]&lt;br /&gt;
 		[STATE_NAME_ADJ:GAS:boiling dwarven wine]&lt;br /&gt;
 		[MATERIAL_VALUE:2]&lt;br /&gt;
 		[DISPLAY_COLOR:5:0:0]&lt;br /&gt;
 		[EDIBLE_RAW]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 		[PREFIX:NONE]&lt;br /&gt;
 	[DRINK:LOCAL_PLANT_MAT:DRINK]&lt;br /&gt;
&lt;br /&gt;
After that we get our seed template:&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]&lt;br /&gt;
 		[MATERIAL_VALUE:1]&lt;br /&gt;
 		[EDIBLE_VERMIN]&lt;br /&gt;
 		[EDIBLE_COOKED]&lt;br /&gt;
 	[SEED:plump helmet spawn:plump helmet spawn:4:0:1:LOCAL_PLANT_MAT:SEED]&lt;br /&gt;
&lt;br /&gt;
And all this says is that the seeds may be eaten by vermin or cooked. Then it gives the name of our plant's seed, its plural name, its foreground, background, and brightness colors, followed by its seed material; said material should have [SEED_MAT] to permit proper stockpiling.&lt;br /&gt;
&lt;br /&gt;
And finally for the last chunk we have this:&lt;br /&gt;
&lt;br /&gt;
 	[SPRING][SUMMER][AUTUMN][WINTER]&lt;br /&gt;
 	[FREQUENCY:100]&lt;br /&gt;
 	[CLUSTERSIZE:5]&lt;br /&gt;
 	[PREFSTRING:rounded tops]&lt;br /&gt;
 	[WET][DRY]&lt;br /&gt;
 	[BIOME:SUBTERRANEAN_WATER]&lt;br /&gt;
 	[UNDERGROUND_DEPTH:1:3]&lt;br /&gt;
 	[SHRUB_TILE:142]&lt;br /&gt;
 	[DEAD_SHRUB_TILE:28]&lt;br /&gt;
 	[SHRUB_COLOR:5:13:0]&lt;br /&gt;
 	[DEAD_SHRUB_COLOR:5:6:0]&lt;br /&gt;
&lt;br /&gt;
First we define what season(s) the plant may grow in, then we define how frequently this plant is generated in a particular area, followed by how many harvested crop items may come from 1 plant. [PREFSTRING:] is what your dwarves like about the plant, which in this case is the rounded tops. [WET][DRY] are the conditions under which the plant can grow. Wet means it can grow close to water, dry means it can grow away from water. This does not mean you can grow the plant on dry stone however. It is just for natural spawning of the plant.&amp;lt;br&amp;gt;&lt;br /&gt;
[BIOME] Is what biome the plant grows in. [UNDERGROUND_DEPTH:Minimum:Maximum] Is the highest and lowest cavern levels that the plant can appear in if its biome is subterranean. Dwarven civilizations will only export (via the embark screen or caravans) things that available at depth 1. Defaults to 0:0 (surface only).&amp;lt;br&amp;gt;&lt;br /&gt;
Lastly, [SHRUB_TILE] is the character used for the naturally spawning shrub of this plant, [DEAD_SHRUB] is the dead shrub character. [SHRUB_COLOR] Is the shrub's color, and [DEAD_SHRUB_COLOR] is, of course, the dead shrub's color.&lt;br /&gt;
&lt;br /&gt;
While this may or may not look like a lot of tokens, it's very easy. Just copy an existing plant and edit it to your new plant.&amp;lt;br&amp;gt;&lt;br /&gt;
For the rest of the tokens, see [[plant token]].&lt;br /&gt;
&lt;br /&gt;
== Workshops ==&lt;br /&gt;
&lt;br /&gt;
Workshops are raw-designed pretty differently from everything else in the game, being buildable structures rather than items or methods to gain items. However, they are fairly simple. For example, here's the raw for the [[soap maker's workshop]]:&lt;br /&gt;
&lt;br /&gt;
 [BUILDING_WORKSHOP:SOAP_MAKER]&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
 	[BLOCK:1:0:0:1]&lt;br /&gt;
 	[BLOCK:2:0:0:1]&lt;br /&gt;
 	[BLOCK:3:0:0:0]&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	[TILE:0:2:' ':' ':'/']&lt;br /&gt;
 	[TILE:0:3:'-':' ':' ']&lt;br /&gt;
 	[COLOR:0:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:0:3:6:0:0:0:0:0:0:0:0]&lt;br /&gt;
 	[TILE:1:1:' ':' ':'=']&lt;br /&gt;
 	[TILE:1:2:'-':' ':8]&lt;br /&gt;
 	[TILE:1:3:' ':' ':150]&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:2:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:1:3:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[TILE:2:1:'-':' ':8]&lt;br /&gt;
 	[TILE:2:2:' ':' ':8]&lt;br /&gt;
 	[TILE:2:3:' ':150:' ']&lt;br /&gt;
 	[COLOR:2:1:6:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:2:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	[COLOR:2:3:0:0:0:6:0:0:0:0:0]&lt;br /&gt;
 	[TILE:3:1:150:' ':8]&lt;br /&gt;
 	[TILE:3:2:' ':' ':8]&lt;br /&gt;
 	[TILE:3:3:' ':240:' ']&lt;br /&gt;
 	[COLOR:3:1:6:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:2:0:0:0:0:0:0:6:7:0]&lt;br /&gt;
 	[COLOR:3:3:0:0:0:7:0:1:0:0:0]&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
&lt;br /&gt;
A line-by-line breakdown:&lt;br /&gt;
&lt;br /&gt;
 	[NAME:Soap Maker's Workshop]&lt;br /&gt;
 	[NAME_COLOR:7:0:1]&lt;br /&gt;
&lt;br /&gt;
These are the name of the workshop (&amp;quot;Soap Maker's Workshop&amp;quot;) and [[color]] of the workshop's name when examined with 'q' (White with a black background).&lt;br /&gt;
&lt;br /&gt;
 	[DIM:3:3]&lt;br /&gt;
 	[WORK_LOCATION:2:2]&lt;br /&gt;
&lt;br /&gt;
DIM refers to how large the workshop will be, in this case 3 wide, 3 tall. WORK_LOCATION tells where the creature using it (usually a dwarf) will work, numbered from the top right--in this case, 2:2, or the middle. Multiple work locations can be defined, even outside the dim.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_LABOR:SOAP_MAKER]&lt;br /&gt;
 	[BUILD_KEY:CUSTOM_SHIFT_S]&lt;br /&gt;
&lt;br /&gt;
These refer to the worker required to build it (soap maker) and the key used to build it in the workshop menu (capital S).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  	[BLOCK:1:0:0:1]&lt;br /&gt;
 	...&lt;br /&gt;
This is a bit more complex, and is where we get to the meaty part of workshop making--the tiles' properties. BLOCK refers to which tiles will be untraversable--1 means blocked, 0 means unblocked. The first number refers to row, and the next 3 refer to column, so 1:0:0:1 means that, on the first row, the first two tiles will be unblocked and the last will be blocked.&lt;br /&gt;
&lt;br /&gt;
 	[TILE:0:1:' ':' ':150]&lt;br /&gt;
 	...&lt;br /&gt;
The TILE token tells which tile will go where. note, however, that there are 5 entries here instead of 4. The first number, in this case, refers to build stage, numbered from 0 to 3; 3 or 1 is fully built (depending on whether there are stages), 0 is just placed, and 2 is always an intermediate stage, while 1 is usually an intermediate stage. Whether 1 is an intermediate stage or not depends on if there are a 2 and 3 stage; if 2 and 3 exist, 1 will be intermediate. The second number and beyond are similar to BLOCK; however, instead of 1s and 0s, you must input tiles. The tiles themselves can be given in quotes (as in ' ') or given as a number, which can be looked up [[Tilesets|here]]. Here, we have 150, which is û.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 	[COLOR:1:1:0:0:0:0:0:0:6:0:0]&lt;br /&gt;
 	...&lt;br /&gt;
Color is as TILE, but with colors instead of tiles; however, colors are made up of 3 numbers each or MAT. MAT refers to the color of the material used to make it; the 3 numbers refer to foreground:background:foreground brightness, and can be looked up [[Color|here]]. For example, 4:2:1 will give you bright red with a dark green background.&lt;br /&gt;
&lt;br /&gt;
 	[BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]&lt;br /&gt;
 	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]&lt;br /&gt;
These refer to items required to build the building. These are in the same format as [[Reaction|reaction reagents and products]]--quantity:[[Item token|item]]:[[Material token|material]]. You'll learn more about those on the article about [[Reaction|reactions]], though. The second BUILD_ITEM is special-- it uses modifiers exclusively to determine its requirements. BUILDMAT refers to wood logs, wood blocks, stone boulders, and stone blocks; WORTHLESS_STONE_ONLY means it can't use economic stone; CAN_USE_ARTIFACT means that it... can use artifacts. EMPTY, in the bucket's case, means that the bucket must be empty.&lt;br /&gt;
&lt;br /&gt;
More can be seen at the [[Building token|building tokens]] article.&lt;br /&gt;
&lt;br /&gt;
== Reactions ==&lt;br /&gt;
&lt;br /&gt;
An in-depth guide for reactions is available [[Reactions|here]].&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
As we've seen when talking about creatures, materials are vital. Materials show up in two forms: material templates, which generally show up in creatures, and specific materials (designated as &amp;quot;inorganic&amp;quot;), which are (by default, at least) consigned purely to metal and stone types.&lt;br /&gt;
&lt;br /&gt;
Let's take a look at METAL_TEMPLATE in material_template_default.txt. It's evident that most of the basic properties of metals are already defined in the template - it goes red and melts at a high enough temperature, it's heavy, and (as noted by the very bottom token) is a metal. We already know just how useful templates can be to creatures, and the same applies to other materials.&lt;br /&gt;
&lt;br /&gt;
Now let's take a look at inorganic_metal.txt. You can see that the metals here refer to the templates, and, just like we did with creatures, then modify the properties of that template and expand upon it.&lt;br /&gt;
&lt;br /&gt;
Finally, let's look at inorganic_stone_mineral.txt. Here we can see that in addition to the changes made to the template, there are also ENVIRONMENT tokens - these tell the game where to place these minerals during worldgen.&lt;br /&gt;
&lt;br /&gt;
[[material definition token|Here's a list of material tokens]]. It should also help you out with any modifications you want to make regarding those creature modifications we were making a while back. See, it all ties together in the end. The beauty of the current materials system is that there's actually very little difference between, say, leather and iron - they're fundamentally the same thing, just with different properties, which is how things really should be.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
The Hydling by Mysteryguye (annotated, updated and separated into blocks by Putnam)&lt;br /&gt;
&lt;br /&gt;
 [CREATURE:HYDLING]&lt;br /&gt;
 	[DESCRIPTION:A seven-headed small hairy thing, about the size of a dog. It is very loyal to its masters, and will promptly disembowel any enemy straying too close.]&lt;br /&gt;
 This is the description that shows up in-game when viewing the creature.&lt;br /&gt;
&lt;br /&gt;
 	[NAME:hydling:hydlings:hydlish] If there were a civ made of hydlings, it would appear as &amp;quot;hydlings&amp;quot; in the neighbors screen.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE_NAME:hydling:hydlings:hydlish]&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_TILE:'='][COLOR:2:0:1] Will appear as a light green &amp;quot;=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[PETVALUE:78][NATURAL] Creature is known to be naturally occurring by the game. Will cost 40 embark points to buy.&lt;br /&gt;
&lt;br /&gt;
 	[LARGE_ROAMING] Will spawn outdoors, wandering around.&lt;br /&gt;
&lt;br /&gt;
 	[COMMON_DOMESTIC][TRAINABLE][PET] Can be bought on embark as a pet, war animal, or hunting animal.&lt;br /&gt;
&lt;br /&gt;
 	[BONECARN] Can eat meat and bones only--no vegetables.&lt;br /&gt;
&lt;br /&gt;
 	[PREFSTRING:loyalty] Dwarves will like it for its loyalty.&lt;br /&gt;
&lt;br /&gt;
 	[LIKES_FIGHTING] Will attack rather than flee.&lt;br /&gt;
&lt;br /&gt;
 	[BODY:BASIC_2PARTBODY:7HEADNECKS:BASIC_FRONTLEGS:BASIC_REARLEGS:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:SPINE:BRAIN:SKULL:3TOES_FQ_REG:3TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_FANGS:RIBCAGE]&lt;br /&gt;
&lt;br /&gt;
 Has a lower body, upper body, 4 legs, a tail, ten eyes, ten ears, five noses, two lungs, a heart, guts, a pancreas etc., and 5 heads with all that goes with those.&lt;br /&gt;
&lt;br /&gt;
 	[BODYGLOSS:PAW] Feet will be called &amp;quot;paws&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_MATERIALS] Declares the standard materials that most creatures' tissues are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_TISSUES] This declares the tissues that the creature's tissue layers are made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE] And this describes the tissue layers that the creature is made of.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR] Creature will be covered with a layer of fur.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE] And it'll have nails.&lt;br /&gt;
&lt;br /&gt;
 	[USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]&lt;br /&gt;
&lt;br /&gt;
 	[TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] On the toe, specifically.&lt;br /&gt;
&lt;br /&gt;
 	[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]&lt;br /&gt;
 	 [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]&lt;br /&gt;
 		[TL_MAJOR_ARTERIES] Heart and throat--called above--will cause heavy bleeding if ruptured.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS] Places eyes, ears and what have you into their correct placement, so that you don't have people punching out eyes from behind.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS] Sets the ribcage as being around lungs and heart.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE] Defines sinew so that...&lt;br /&gt;
 	[TENDONS:LOCAL_CREATURE_MAT:SINEW:200] Tendons&lt;br /&gt;
 	[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200] And ligaments can be defined.&lt;br /&gt;
&lt;br /&gt;
 	[HAS_NERVES] Creature has nerves, and as such can be disabled by severing them.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE] Defines the material BLOOD using the template BLOOD_TEMPLATE.&lt;br /&gt;
 	[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID] Defines the creature's BLOOD as being made of the above-defined BLOOD material in a LIQUID state.&lt;br /&gt;
&lt;br /&gt;
 	[CREATURE_CLASS:GENERAL_POISON] Creature can be affected by syndromes that affect GENERAL_POISON.&lt;br /&gt;
&lt;br /&gt;
 	[GETS_WOUND_INFECTIONS] Pretty much self-explanatory. Creature can get infected from wounds.&lt;br /&gt;
 	[GETS_INFECTIONS_FROM_ROT] And from necrosis.&lt;br /&gt;
&lt;br /&gt;
 	[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE] Defines PUS using PUS_TEMPLATE.&lt;br /&gt;
 	[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID] Defines PUS as being made of PUS.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_SIZE:0:0:1000] Creature will be 1000 cubic centimeters at birth...&lt;br /&gt;
 	[BODY_SIZE:1:0:12500] 12500 cubic centimeters at 1 year old...&lt;br /&gt;
 	[BODY_SIZE:2:0:30000] and 30000 cubic centimeters at 2.&lt;br /&gt;
&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110] Creature can be anywhere from 90% to 110% as long as others.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] As above, but with height.&lt;br /&gt;
 	[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110] As above, but with broadness. This puts the minimum size of the creature (when fully grown) at 21870 and the maximum size at 39930.&lt;br /&gt;
&lt;br /&gt;
 	[MAXAGE:20:30] Creature will die of old age between the ages of 20 and 30, no later than 30, no sooner than 20.&lt;br /&gt;
&lt;br /&gt;
 	[CAN_DO_INTERACTION:MATERIAL_EMISSION] Creature can use the MATERIAL_EMISSION interaction.&lt;br /&gt;
 		[CDI:ADV_NAME:Hurl fireball] In adventurer mode, the MATERIAL_EMISSION interaction will appear as &amp;quot;Hurl fireball&amp;quot;.&lt;br /&gt;
 		[CDI:USAGE_HINT:ATTACK] Creature will use MATERIAL_EMISSION when it's attacking, on creatures that it's attacking.&lt;br /&gt;
 		[CDI:BP_REQUIRED:BY_CATEGORY:HEAD] Creature must have at least one HEAD to use MATERIAL_EMISSION.&lt;br /&gt;
 		[CDI:FLOW:FIREBALL] The MATERIAL_EMISSION will shoot a fireball.&lt;br /&gt;
 		[CDI:TARGET:C:LINE_OF_SIGHT] The target for the emission--a location--must be within the line of sight of the Hydling.&lt;br /&gt;
 		[CDI:TARGET_RANGE:C:15] And must be, at most, 15 tiles away.&lt;br /&gt;
 		[CDI:MAX_TARGET_NUMBER:C:1] The hydling can only shoot at one target at a time...&lt;br /&gt;
 		[CDI:WAIT_PERIOD:30] and only every 30 ticks (3 tenths of a second at 100 FPS)&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH] Defines a BITE attack that uses teeth.&lt;br /&gt;
 		[ATTACK_SKILL:BITE] Attack uses the BITE skill.&lt;br /&gt;
 		[ATTACK_VERB:nom:noms] &amp;quot;The Hydling noms the Elf in the left first toe, tearing the muscle!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Will use all of the tooth. Note that this can be more than 100.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] Will sink the tooth all the way in. This can also be more than 100.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an EDGE attack.&lt;br /&gt;
 		[ATTACK_PRIORITY:MAIN] Attack is of priority MAIN. Other option is SECOND.&lt;br /&gt;
 		[ATTACK_FLAG_CANLATCH] Attack can latch.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3] Takes 3 ticks to wind up attack and 3 to recover from it.&lt;br /&gt;
                [ATTACK_FLAG_INDEPENDENT_MULTIATTACK] Can use each head independently.&lt;br /&gt;
&lt;br /&gt;
 	[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:NAIL] As above, but for nail instead of teeth.&lt;br /&gt;
 		[ATTACK_SKILL:STANCE_STRIKE] Uses the kicking skill.&lt;br /&gt;
 		[ATTACK_VERB:slice:slices] &amp;quot;You slice the Elf in the left foot and the severed part sails off in an arc!&amp;quot;&lt;br /&gt;
 		[ATTACK_CONTACT_PERC:100] Uses the whole nail.&lt;br /&gt;
 		[ATTACK_PENETRATION_PERC:100] The whole nail goes in.&lt;br /&gt;
 		[ATTACK_FLAG_EDGE] Attack is an edge attack.&lt;br /&gt;
                [ATTACK_PREPARE_AND_RECOVER:3:3]&lt;br /&gt;
 		[ATTACK_PRIORITY:SECOND]&lt;br /&gt;
&lt;br /&gt;
 	[CHILD:1] Hydling will become an adult at 1 year old.&lt;br /&gt;
&lt;br /&gt;
 	[GENERAL_CHILD_NAME:hydie:hydies] Children will appear as &amp;quot;hydies&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 	[DIURNAL] Is active during the daytime.&lt;br /&gt;
&lt;br /&gt;
 	[HOMEOTHERM:10070] Has a body temperature of 102 Fahrenheit.&lt;br /&gt;
&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:730:561:351:1900:2900] Can run at 25 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] Can swim at 10 kph&lt;br /&gt;
 	[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] Can crawl at 5 kph&lt;br /&gt;
 	[SWIMS_INNATE]Swims innately.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:FEMALE] Defines a caste called FEMALE.&lt;br /&gt;
 		[FEMALE] FEMALE caste is female.&lt;br /&gt;
&lt;br /&gt;
 	[CASTE:MALE] As above, but with male.&lt;br /&gt;
 		[MALE] See above.&lt;br /&gt;
&lt;br /&gt;
= Modding utilities =&lt;br /&gt;
&lt;br /&gt;
[http://www.bay12forums.com/smf/index.php?topic=28829.0 A list of many mods and community-developed utilities]&lt;br /&gt;
&lt;br /&gt;
{{Category|Modding}}&lt;br /&gt;
[[Category:v0.31:Guides]]&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223770</id>
		<title>Advanced world generation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223770"/>
		<updated>2016-02-29T10:56:12Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Punctuation/capitalisation corrections(commas and semicolons are not full stops, colons and periods are).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|18:16, 23 August 2014 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{old}}&lt;br /&gt;
&lt;br /&gt;
:''This article contains information on advanced world generation. For information on basic world generation, see [[World generation]].''&lt;br /&gt;
:''See [[World token]] to more easily find information by the names used in the world_gen.txt file.''&lt;br /&gt;
:''See [[World rejection]] for information on solving problems related to worlds always being rejected.''&lt;br /&gt;
:''See [[Worldgen examples]] for example worlds.''&lt;br /&gt;
&lt;br /&gt;
When you want more control of what your world looks like, it's time for '''advanced world generation'''. A detailed reference with advice is provided below. This article assumes that you are already familiar with [[World generation|'''basic''' world generation]]. If you are not then please read about that first.&lt;br /&gt;
&lt;br /&gt;
Once you select {{DFtext|Design New World With Advanced Parameters}} from the main menu, a screen that looks something like this will appear:&lt;br /&gt;
&lt;br /&gt;
[[File:AdvancedWorldGen.png‎]]&lt;br /&gt;
&lt;br /&gt;
This screen is relatively intuitive but some parts could use some explanation.&lt;br /&gt;
&lt;br /&gt;
== Parameter sets ==&lt;br /&gt;
&lt;br /&gt;
The list of already defined parameter sets is in the upper right corner. You can select the current set that you want to work with using the up and down directional keys.&lt;br /&gt;
&lt;br /&gt;
Hitting {{K|a}} will add a new set to the end of the list. You can also {{K|c}}opy an existing set to a new one allowing you to base a new set on an existing one. Using {{K|t}} you can change the name of the parameter set but note that this will not affect the name of the world that is generated.&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the &amp;lt;tt&amp;gt;data/init/world_gen.txt&amp;lt;/tt&amp;gt; file in the main DF directory. The {{K|F1}} and {{K|F6}} keys will load and save '''all''' of the parameter sets to this file. You will need to save the world gen parameters to this file before you hit {{K|Enter}} to generate the world.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; file can also be edited with a text editor. This is particularly useful because people will often post their parameter sets on the forum or wiki in text form. (See below for more info.) The {{K|F1}} key comes in handy when editing this file while the game is still running.&lt;br /&gt;
&lt;br /&gt;
To get the parameters used to generate a world you are already playing press {{K|ESC}} then choose export images; exporting any image will also create the world generation parameter file, for more information see this [http://www.bay12forums.com/smf/index.php?topic=101280.msg4512541#msg4512541 post]. &lt;br /&gt;
&lt;br /&gt;
The tokens used in &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; are at the bottom of each parameter description. Here's the one for title.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE:MEDIUM ISLAND]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World name ==&lt;br /&gt;
&lt;br /&gt;
As previously mentioned, the title of the parameter set doesn't affect the name of the world. You can force a particular name for your world using {{K|n}} or set it back to the default random setting using {{K|N}}.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME:Realm of Cheese Engravings]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| For a random name, simply don't use this token.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World dimensions ==&lt;br /&gt;
&lt;br /&gt;
The size of the map to be generated can be selected with {{K|u}} {{K|i}} {{K|o}} {{K|p}}. Larger maps take longer to generate and may limit [[Frames per second|FPS]] in game.&lt;br /&gt;
&lt;br /&gt;
Changing the dimensions of the world will reset the parameters because many of them have different defaults depending on the surface area available.&lt;br /&gt;
&lt;br /&gt;
Creating larger worlds does not necessarily mean longer world generation time. The essential factor for the duration is the history. If you restrict the number of historical events you can significantly speed up the process.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:&amp;lt;width&amp;gt;:&amp;lt;height&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:129:129]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Valid values are 17, 33, 65, 129, and 257. Others may not work.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Seed values ==&lt;br /&gt;
&lt;br /&gt;
The world generation process uses a PRNG (Pseudo Random Number Generator) algorithm. A PRNG will produce a sequence of numbers that &amp;quot;looks&amp;quot; random even though the actual sequence of numbers will always be the same if the PRNG is started with the same seed value. Basically this means that if you run world generation with a certain seed value on your computer, and someone else runs world generation with the same seed value on their computer, the same sequence of random numbers will be generated on both computers. The practical impact of this is that someone else can generate exactly the same world that you generated by entering the same seed value that you used.&lt;br /&gt;
&lt;br /&gt;
In older versions, the same seed value(s) produced identical worlds on every computer at any time (if other parameters were identical, too). In the current version, the seed values for the world itself and the names seem to produce the same result, but you will get changes in events cumulating to an different world-history at all. It seems like the history is random somhow and not completely connected to the seed. Keep this in mind if you want to regenerate a particular world.&lt;br /&gt;
&lt;br /&gt;
A specific seed value can be entered with {{K|s}}. This will change '''all''' of the seed values to the value you enter. If you need to enter different seed values for each type of seed, use {{K|e}}.&lt;br /&gt;
&lt;br /&gt;
In order to find out what seed values were used for the last world you generated you can look at this screen. If you want to be able to tell someone else how to generate exactly the same world that you just generated, they will need all of the seed value listed under Last Param Set.&lt;br /&gt;
&lt;br /&gt;
When generating a world using a seed, the way that the world is generated is also based at least in part on certain world tokens. As such you cannot for example change the minimum and maximum rainfall and get the same world but drier or wetter, instead a different world is generated. Saying that, it would also seem that certain small changes to these world tokens can occasionally generate a very similar world, however other tokens are more sensitive. For more information see the forum thread [http://www.bay12forums.com/smf/index.php?topic=112132.msg3404199#msg3404199 here].&lt;br /&gt;
&lt;br /&gt;
The following are tokens which appear to be involved in the implementation of the seed and are not safe to change:&lt;br /&gt;
&lt;br /&gt;
* [DIM:X:X] &lt;br /&gt;
* [ELEVATION:X:X:X:X]&lt;br /&gt;
* [RAINFALL:X:X:X:X] &lt;br /&gt;
* [TEMPERATURE:X:X:X:X]&lt;br /&gt;
* [DRAINAGE:X:X:X:X]&lt;br /&gt;
* [VOLCANISM:X:X:X:X]&lt;br /&gt;
* [SAVAGERY:X:X:X:X]&lt;br /&gt;
* [ELEVATION_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [RAIN_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [DRAINAGE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [TEMPERATURE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [SAVAGERY_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [VOLCANISM_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [PARTIAL_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [COMPLETE_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [HAVE_BOTTOM_LAYER_1:X]&lt;br /&gt;
* [MINERAL_SCARCITY:X] {{cite talk/this|Mineral scarcity}}&lt;br /&gt;
&lt;br /&gt;
Many other world parameters such as end year and embark points can however be changed without it having any effect on the geography of the world generated from the seed values.&lt;br /&gt;
&lt;br /&gt;
Normally you don't enter these seed values and the world generation process comes up with seed values based on some sort of &amp;quot;true&amp;quot; random information from things like random values in uninitialized memory, the current date/time, etc. If you have entered a seed value you can revert to all seeds being random using {{K|S}}.&lt;br /&gt;
&lt;br /&gt;
== Generating a world ==&lt;br /&gt;
&lt;br /&gt;
Unless you're using an already defined parameter set you will probably want to {{K|e}}dit the parameters. Select the set you want to edit using the up/down directional keys and press {{K|e}}. Information about each parameter is documented below.&lt;br /&gt;
&lt;br /&gt;
Once you are happy with the parameters you have set, hit {{K|Esc}} to get back to this screen, hit {{K|F6}} to save the values you just edited, and hit {{K|Enter}} to start. The rest of the process is the same as basic [[World generation]].&lt;br /&gt;
&lt;br /&gt;
The phases of the world generation process are (this order is not completely correct):&lt;br /&gt;
* Preparing elevation...&lt;br /&gt;
* Setting temperature...&lt;br /&gt;
* Running rivers...&lt;br /&gt;
* Forming lakes and minerals...&lt;br /&gt;
* Growing vegetation...&lt;br /&gt;
* Verifying terrain...&lt;br /&gt;
* Importing wildlife...&lt;br /&gt;
* Recounting legends...&lt;br /&gt;
* Placing civilizations...&lt;br /&gt;
* Making cave civilizations...&lt;br /&gt;
* Making cave pops...&lt;br /&gt;
* Placing other beasts...&lt;br /&gt;
* Placing megabeasts...&lt;br /&gt;
* Placing good/evil...&lt;br /&gt;
* Placing caves...&lt;br /&gt;
* Prehistory generation&lt;br /&gt;
* Finalizing civ mats...&lt;br /&gt;
* Finalizing art...&lt;br /&gt;
* Finalizing uniforms...&lt;br /&gt;
* Finalizing sites...&lt;br /&gt;
&lt;br /&gt;
== World painter ==&lt;br /&gt;
:''Main article: [[World painter]]&lt;br /&gt;
The '''world painter''' tool allows you to paint features onto a map that is then used when generating a world.  It is very difficult to use properly, and tends to result in endless rejected worlds, unless you loosen or remove the restrictions placed on biomes and civilizations in the advanced settings.  That being said it is also a very powerful tool, and allows you to generate worlds more to your liking.&lt;br /&gt;
&lt;br /&gt;
To access the world painter, hit {{k|e}} to start editing the advanced parameters and finally hit {{k|p}} to open world painter. How to use the world painter is not entirely obvious so please check out the [[World painter]] documentation to avoid frustration. (Losing may be fun, but frustration is not.)&lt;br /&gt;
&lt;br /&gt;
== Editing the parameters init file ==&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the ''data/init/[[world_gen.txt]]'' file, using [[world token]]s. You can copy and paste other player's sets of parameters into your ''world_gen.txt'' to use their parameter sets, and some are provided at [[Main:Pregenerated worlds|Pregenerated worlds]]. Another place to find parameter sets is the [http://www.bay12forums.com/smf/index.php?topic=101280.0 Worldgen cookbook] thread on the official forums.&lt;br /&gt;
&lt;br /&gt;
== Advanced parameters ==&lt;br /&gt;
&lt;br /&gt;
To access advanced parameters, press {{key|e}} when at the screen for creating new worlds with parameters screen. This will bring you to an editable list of various guidelines the world-gen process will use when creating your new world.&lt;br /&gt;
&lt;br /&gt;
The parameters are described below in the order that they appear in the list in the UI, not necessarily the other they appear in the configuration file. See [[world token]] for an index that will help you look things up by token name.&lt;br /&gt;
&lt;br /&gt;
There are essentially 4 types of controls for the generation of the surface map;&lt;br /&gt;
&lt;br /&gt;
Terrain Parameters, as described below, these 5 variables define the basic background world, how hot or cold it is, how much rainfall, how high the mountains are. The world automatically goes through the temperature range along the Y axis although sometimes it will be hotter in the north, other times in the south. Minima and maxima and X,Y variance can drastically alter the world. &lt;br /&gt;
&lt;br /&gt;
Weighted Meshes, these are a way to fine tune the amount of the 5 basic variables on the map. It can be used to set the specific distribution of different elevations or rainfall areas for example. &lt;br /&gt;
&lt;br /&gt;
Rejection Parameters, Dwarf Fortress has a belt and braces approach to world generation. The above controls allow you to shape the world then the rejection parameters throw it out if it isn't right! There are a number of rejection parameters for the number and degree of the 5 basic variables, for biome types etc. If the world does not meet the requirements of any one rejection parameter the world is rejected an re-randomised. Also see [http://dwarffortresswiki.org/index.php/DF2012:World_rejection World Rejection]&lt;br /&gt;
&lt;br /&gt;
The are also the feature placing options such as rivers, mountain peaks, volcanoes and oceans. These can cause rejections if the terrain parameters don't allow enough suitable locations for the features to be placed. &lt;br /&gt;
&lt;br /&gt;
If you are experimenting with world design, one method would be to disable the rejection parameters and use the first two control types. Otherwise any significant change will likely result in endless rejections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Seed values ===&lt;br /&gt;
&lt;br /&gt;
Here you can enter specific seed values for different parts of the world generation process. Different sequences of pseudorandom numbers are used for different parts, so you can use this to reproduce only the particular part of world generation from some previously generated world if you want.&lt;br /&gt;
&lt;br /&gt;
Normally you will want to leave all of these set to Random unless you're specifically trying to reproduce the results of another world generation run.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;4&amp;quot; |&lt;br /&gt;
For each of these not in the config file, a random seed will be used.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Embark Points ===&lt;br /&gt;
&lt;br /&gt;
This controls the number of points that you have for skills and equipment when you embark in fortress mode. Turning this value up will allow games started in this world to start with more skilled dwarves with better equipment. Normally you can do just fine by leaving this value set to default, but you might want to up it for experimental/testing purposes or to help dwarves survive in a particularly evil world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:1504]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== End year ===&lt;br /&gt;
&lt;br /&gt;
This is how many years of history are generated for the world. This is basically the same as the History parameter in basic world gen, except that you can enter an exact value for number of years. See [[World_generation#History|History]] for more info.&lt;br /&gt;
&lt;br /&gt;
History is divided into &amp;quot;ages&amp;quot; which are determined by the ''percentage'' of megabeasts and semi-megabeasts killed at various points. One can attempt to make a world go through the ages more quickly by pumping up the ratio of semimegabeast to megabeast caves, the former of which are usually more killable than the regular megabeasts. This will net you more &amp;quot;Age of Legends&amp;quot;, &amp;quot;Age of Heroes&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
For more information on the history aspect of the game, see [[Legends]] and [[Calendar#Ages|Ages]].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:1050]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Population cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This determines the maximum possible population of civilization member historical figures alive at a given time during worldgen. Not all members of a civilization are historical figures. This tag does not directly influence the total population of civilized beings as it once did when populations were all historical figures, so the description is a bit confusing. You can enter -1 to make the historical population unlimited.&lt;br /&gt;
&lt;br /&gt;
Each race may have up to 100 civilizations each, and each civilization a maximum population of 10,000. Civilizations, known as ''entities'' in the [[Raw file|raw files]], have 3 or 4 basic variables that will greatly affect their final placement on the world map. See [[Entity_token#Population|Population (Entity Token)]] for more information on interpreting/editing the raws if you need more precise control of civilization placement and total population numbers.&lt;br /&gt;
&lt;br /&gt;
Huge historical figure populations can cause the size of history data to explode, cause history generation to take forever, lower FPS, and generally slow down the game.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:15000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Site cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This controls the maximum number of towns and similar sites on the entire map. Raising the number will allow for more towns, etc. though the number of sites will ultimately still be limited by things like space, terrain, and population cap. &lt;br /&gt;
&lt;br /&gt;
Note that '''this parameter controls only &amp;quot;civilization&amp;quot; sites''' like towns.  Other sites such as lairs will be added on to this maximum.  After civilizations reach this cap, they will not spread out anymore to place new cities.&lt;br /&gt;
&lt;br /&gt;
By default, the raws limit each civilization site to a population of 120 regardless of the race of the civilization. Therefore, without editing the raws, the total population on the map can't go above site cap x 120.&lt;br /&gt;
&lt;br /&gt;
Increasing this too high can slow worldgen down by a lot, beware. Another effect can be goblins (or other civs) sometimes overwelming all other civs and/or flooding the world with their homes leaving no good places to build your fortress. If you choose a low cap to hasten world generation, the cap will be reached within years stopping expanson of all civs. If you want a good and long history you will have to adjust cap of sites and population as the number of civs many times to find one fullfilling your needs.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:1040]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Beast control ===&lt;br /&gt;
&lt;br /&gt;
These parameters don't usually matter too much, but may matter for small numbers of beasts.&lt;br /&gt;
&lt;br /&gt;
==== Percentage of Megabeasts and Titans Dead for Stoppage ====&lt;br /&gt;
&lt;br /&gt;
The world starts out with a certain number of powerful megabeast and titan entities in existence. If a percentage of the megabeast and titan population dies out during history generation, then history generation will stop early. For example, if the elimination value is 80%, and the generated history starts with 200 entities and 160 of those 200 entities are eliminated by historical events before the End Year is reached, history generation will stop early.&lt;br /&gt;
&lt;br /&gt;
If you want to end the creation of your world at the beginning at a certain age, choose the following values:&lt;br /&gt;
* Age of Legends: ~34%&lt;br /&gt;
* Age of Heroes: ~67%&lt;br /&gt;
If there are three or fewer titans or megabeasts in your world, the age will be given a special name reflecting the remaining megabeasts/titans, instead.&lt;br /&gt;
&lt;br /&gt;
==== Year to Begin Checking Megabeast Percentage ====&lt;br /&gt;
&lt;br /&gt;
The percentage of dead megabeasts and titans for stoppage will not be checked until this year is reached in history generation. This can be used to ensure that a world reaches a certain year even if all of the megabeasts in the world are slain earlier.&lt;br /&gt;
&lt;br /&gt;
If the number of living megabeasts and titans starts at or drops to less than four, then world generation will always stop if the current year is equal to or greater than the Year to Begin Checking Megabeast Percentage ''regardless'' of how many meagabeasts and titans are dead — Percentage of Megabeasts and Titans Dead for Stoppage is ignored. The number of megabeasts and titans at the start of the world is set by the sum of the [[Advanced_world_generation#Max_Megabeasts_Caves|Max Megabeasts Caves]] and [[Advanced_world_generation#Titan_Parameters|Titan Number]] parameters.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:&amp;lt;year&amp;gt;:&amp;lt;percentage or -1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:200:80]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Use -1 as percentage to disable. Year must still be at least 2.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cull Unimportant Historical Figures ===&lt;br /&gt;
&lt;br /&gt;
Whether or not the game ignores unimportant figures in history generation. The culling is many CPU-intensive steps in history generation but it saves memory and will speed up loading/saving games a bit. This does mean that the &amp;quot;unimportant&amp;quot; figures will not appear in Legends mode or in things like dwarf engravings, but they might not appear in engravings anyway.&lt;br /&gt;
&lt;br /&gt;
Unimportant figures are people or creatures who suffer early deaths, never having offspring or killing anything named during history generation. For example, residents of goblin towers may get murdered by demons at a young age. After culling unimportant figures, Legends mode would say something like the demon has killed &amp;quot;a creature at Eviltower in the year 102.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Reveal All Historical Events ===&lt;br /&gt;
&lt;br /&gt;
Setting this to Yes will allow access to all information about the history of the world in Legends mode. If set to No, then you will have to discover historical information in adventure mode or by instructing dwarves to make engravings.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY::1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Parameters ===&lt;br /&gt;
&lt;br /&gt;
These determine how random values for terrain elevation, rainfall, temperature, drainage, volcanism, and savagery are generated. What biomes exist are then determined by how these factors overlap with each other.&lt;br /&gt;
&lt;br /&gt;
==== Minima and Maxima ====&lt;br /&gt;
&lt;br /&gt;
These are the absolute minimum and maximum values that can ever be generated for a particular map square characteristic. Changing these can cause the occurrence of certain [[Biome|biomes]] to become impossible, so modify these with care. Because of this problem, you may want to use [[#Weighted Ranges|Weighted Ranges]] instead.&lt;br /&gt;
&lt;br /&gt;
By ''subtly'' tweaking the min and max values, vastly different maps can be made.&lt;br /&gt;
&lt;br /&gt;
==== X and Y Variance ====&lt;br /&gt;
&lt;br /&gt;
These control how wildly things like elevation and rainfall can vary between adjacent map squares. For example, if these values are set to the maximum of 3,200 for elevation then you will end up with more very low areas right next to very high areas. The number for X determines the east-west variance and the number for Y determines the north-south variance. By setting only one of these to a high value you can, for example, create horizontal or vertical bands of areas which are more similar to each other.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, raising both of these values will create a more random &amp;quot;patchwork&amp;quot; of many small biomes while setting both x and y values to 0 will cause every square on the map to use a single random value for the given characteristic.&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;patchwork&amp;quot; worlds to avoid being rejected, [[#Maximum_Number_of_Subregions|Maximum Number of Subregions]] will probably need to be increased from the default.&lt;br /&gt;
&lt;br /&gt;
==== Elevation ====&lt;br /&gt;
&lt;br /&gt;
This controls the range of terrain elevations that can occur in the world.&lt;br /&gt;
&lt;br /&gt;
Usually you just want to leave the min/max values alone. Raising the minimum elevation can, for example, make it impossible for oceans to exist. This does '''not''' directly control the number of available Z-levels at a particular site, though high maximum values may contribute to peaks which can raise the number of above ground Z-levels. In other words, a maximum elevation of 400 and minimum of 1 does not mean you get 400 Z-levels but it might increase the number of Z-levels somewhat in some regions compared to others.&lt;br /&gt;
&lt;br /&gt;
Raising the variance will result in a more bumpy uneven landscape.&lt;br /&gt;
&lt;br /&gt;
Some biomes/features that are impacted by elevation:&lt;br /&gt;
* A high minimum (above 99) means no oceans as they need elevations below 100.&lt;br /&gt;
* A low maximum (below 300) means no mountains as mountains need elevations above 300.&lt;br /&gt;
* River start locations need a minimum elevation of 300. Therefore, a world with a maximum elevation of 299 everywhere prevents river generation, but rivers can still occur if maximum elevation is set to 300.&lt;br /&gt;
*Mountain peaks can only form in squares with an elevation of 400.&lt;br /&gt;
&lt;br /&gt;
==== Rainfall ====&lt;br /&gt;
&lt;br /&gt;
Controls the amount of rainfall in each map square/area. Setting the minimum too high or the maximum too low can make the formation of certain biomes impossible. Rainfall causes it to [[Rain]] more in a given area, which can have various effects.&lt;br /&gt;
&lt;br /&gt;
Also makes more rivers appear on the world map.&lt;br /&gt;
&lt;br /&gt;
Note that if [[#Do Orographic Precipitation and Rain Shadows|orographic precipitation and rain shadows]] is on then mountains will cause additional variance in rainfall, so (for example) rainfall below the specified minimum can occur in the shadow of a mountain.  If you want the minimum and maximum for this parameter to be absolutely respected you must turn off the orographic precipitation option.&lt;br /&gt;
&lt;br /&gt;
==== Temperature ====&lt;br /&gt;
&lt;br /&gt;
These parameters control how hot or cold various areas will be. If you lower the minimum and maximum values, the world will be colder overall, for example. As with the others, changing these values too much could make it impossible for certain biomes to exist. See [[Climate]] for more info.&lt;br /&gt;
&lt;br /&gt;
[[Temperature]] is always influenced by elevation and, if [[Advanced_world_generation#Poles|Poles]] are enabled, latitude. So, the value from the temperature rolling process is ''not the absolute temperature value the region will get, but rather local variation.'' The &amp;quot;base&amp;quot; temperature for an area is derived from its latitude and elevation, and then the random value determined by these parameters are applied to it to make it vary a bit. The default values for the local variation are fairly small compared to the base temperature, which appears to be hard coded.&lt;br /&gt;
&lt;br /&gt;
==== Drainage ====&lt;br /&gt;
&lt;br /&gt;
Changing drainage parameters will change the way water-affected biomes are formed. Low drainage will contribute to the formation of [[Lake|lakes]], [[River|rivers]], and [[Swamp|swamps]]. High drainage will cause water to sink into the ground rather than sit on the surface, which is important for forming hills.&lt;br /&gt;
&lt;br /&gt;
Lower drainage values have been reported to contribute to the formation of thicker soil layers though it is currently unknown exactly how other factors (such as elevation or perhaps rain) impact soil formation.&lt;br /&gt;
&lt;br /&gt;
==== Volcanism ====&lt;br /&gt;
&lt;br /&gt;
Volcanism controls the occurrence of Igneous [[Layer|Layers]], and the formation of volcanoes. For a volcano to form, a square must have a volcanism value of 100 so reducing the maximum from 100 will make volcanoes impossible. Raising the minimum will increase the rarity of non-igneous layers.&lt;br /&gt;
&lt;br /&gt;
Setting minimum to high value is not a good way to produce multiple volcanoes as you are likely to get a &amp;quot;Volcanism not evenly distributed&amp;quot; rejection. Instead use the Minimum Number of Volcanoes parameter and possibly adjust the weighted ranges for volcanism as described below.&lt;br /&gt;
&lt;br /&gt;
==== Savagery ====&lt;br /&gt;
&lt;br /&gt;
These parameters control the level of [[Surroundings#Savage|savagery]] on the map. Raising the minimum savagery too high may make it impossible for certain races to exist, and similarly lowering the maximum too far can make it impossible for certain creatures to exist. The largest chance of having unusable maps comes from too high of a savagery value.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:1:400:401:401]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 400&amp;lt;br/&amp;gt;Maximum of 400 required for mountain peaks.&amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:25:75:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: -1000 to 1000 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100&amp;lt;br/&amp;gt;Maximum of 100 required for volcanoes. &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Mesh Sizes and Weights ===&lt;br /&gt;
&lt;br /&gt;
These parameters make it possible to influence the number of squares in a particular range without making conditions outside of that range impossible. For example, you can make it possible for many more low elevation squares to exist without making it impossible for high elevations to form. Changing these parameters is often preferable to simply changing the min/max values.&lt;br /&gt;
&lt;br /&gt;
The basic steps of applying weighted ranges are as follows:&lt;br /&gt;
&lt;br /&gt;
# Create a grid with 2&amp;lt;sup&amp;gt;''MeshSize'' - 1&amp;lt;/sup&amp;gt; tiles in both X and Y direction.&lt;br /&gt;
# Set the intersection points of the grid lines to a random value according to the weighted ranges.&lt;br /&gt;
# Smooth out the area between the intersection points.&lt;br /&gt;
# Add noise according to the variance parameters.&lt;br /&gt;
&lt;br /&gt;
Where ''MeshSize'' is the raw parameter value found in the world_gen.txt. See the image on the right for an example.&lt;br /&gt;
&lt;br /&gt;
[[File:World_map-large-32x32-elevation-mesh.png|thumb|300px|A large world generated with an Elevation Mesh Size of 32x32 and range weights set to 1:0:0:0:1 (i.e., only extreme high and low elevations). Note how the grid intersections are either set very high or very low and the space between them is smoothed out.]]&lt;br /&gt;
&lt;br /&gt;
==== Mesh Size ====&lt;br /&gt;
&lt;br /&gt;
Mesh size determines how many grid tiles there will be. Setting this to Ignore will cause the weighted range settings to be ignored for that terrain characteristic. As an example, setting it to 2x2 means the grid will be 2 times 2 tiles large and there will be 3 times 3 for a total of 9 intersection points. On a pocket world this means one grid tile will be 8 * 8 world tiles large whereas on a large world one grid tile will be 128 * 128 world tiles. Note that the highest possible value for a given world size will always make the grid tiles 8 * 8 world tiles large.&lt;br /&gt;
&lt;br /&gt;
==== Weighted Ranges ====&lt;br /&gt;
&lt;br /&gt;
If mesh size is set to something other than Ignore, these weights will be applied at the granularity of the selected mesh size for purposes of generating random values in each range. This allows random number generation to be non-linear for the given terrain characteristic.&lt;br /&gt;
&lt;br /&gt;
For example, if the Elevation Weighted Range parameters were set to (starting with the 0-20 range) 60:10:10:10:10 (these values do not have to add up to any particular number) and elevation min and max are set to 1 and 400 respectively then about 60% of the grid line intersection points (on average) will be set to an elevation in the range of 1-80 (0% to 20%), and the other ranges will be represented by around 10% of the intersection points each. The exact distribution is still left up to chance though ''on average'' it will be close to this specification.&lt;br /&gt;
&lt;br /&gt;
Weighted ranges do not make rejection checks, although they can be responsible for many rejections if you neglect to adjust or disable some of the [[#Minimum Number of Mid/Low/High Characteristic Squares|Minimum Number of Mid/Low/High Characteristic Squares]] for example.&lt;br /&gt;
&lt;br /&gt;
==== Interaction between Mesh Size and Variance ====&lt;br /&gt;
&lt;br /&gt;
The end result can vary greatly depending on how the corresponding [[#X_and_Y_Variance|X and Y Variance]] parameters are set. First of all, if the variance is too large the noise it adds can completely negate the effect of the weighted ranges. For instance, with a 2x2 mesh, the default variance parameters are high enough that usually the mesh grid can hardly be recognized. How strong the variance's effect is is also dependent on the mesh size. Having a larger mesh size (i.e. smaller grid tiles) means the variance also has to be higher for a visible effect. For instance, with a variance of 400, the effects are clearly visible with a 2x2 mesh and barely visible at all with a 8x8 mesh. Note that this effect is directly dependent on the mesh size and not, as one might expect on the actual size of the grid tiles. This means, that a large world with a 2x2 mesh will look essentially the same as a pocket world with a 2x2 mesh, only stretched to 256 times the size.&lt;br /&gt;
&lt;br /&gt;
Also see this [http://www.bay12forums.com/smf/index.php?topic=139916.0 forum post] for more details.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:2:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;6&amp;quot; | Valid mesh values:&lt;br /&gt;
&lt;br /&gt;
1 = Ignore&lt;br /&gt;
&lt;br /&gt;
2 = 2x2&lt;br /&gt;
&lt;br /&gt;
3 = 4x4&lt;br /&gt;
&lt;br /&gt;
4 = 8x8&lt;br /&gt;
&lt;br /&gt;
5 = 16x16&lt;br /&gt;
&lt;br /&gt;
6 = 32x32&lt;br /&gt;
&lt;br /&gt;
(limited by world size) &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:3:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:4:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:5:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Poles ===&lt;br /&gt;
&lt;br /&gt;
With this you can influence how polar regions are added. The poles can be on the north or south edge and the equator will be on the opposite edge or in the middle if there are two poles.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:&amp;lt;placement&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:NORTH]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Viable options: NONE, NORTH_OR_SOUTH, NORTH_AND_OR_SOUTH, NORTH, SOUTH, NORTH_AND_SOUTH&lt;br /&gt;
|}&lt;br /&gt;
=== Minimum Mountain Peak Number ===&lt;br /&gt;
&lt;br /&gt;
This will cause the world to be rejected if fewer than this many peaks (based on elevation) are present on the map. Elevations of 400 must be possible for mountain peaks to occur. If set to zero then worlds will not be rejected based on number of peaks.&lt;br /&gt;
&lt;br /&gt;
You may need to adjust elevation parameters, such as the highest weighted range, in order to get the desired number of elevation 400 squares needed for larger numbers of peaks. Like volcanoes, mountain peaks can make embark zones more interesting but other than that they don't appear to &amp;quot;do&amp;quot; anything special. Reportedly they do increase the highest Z-level above ground in all embark zones in the same region even if the selected embark zone does not include the peak.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Elevations of 400 must occur for peaks to form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Partial Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans touching an edge of the map. If set to zero then worlds will not be rejected based on this criterion. Setting both this parameter and Minimum Complete Edge Oceans to values that total more than 4 when added together may cause all worlds to be rejected as you can't have both a partial and complete edge ocean on a given edge.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Complete Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans which completely cover an edge of the map. Since a square map only has 4 edges, the maximum value possible is 4. If set to zero then worlds will not be rejected based on this criterion but still might end up with complete edge oceans by chance.&lt;br /&gt;
&lt;br /&gt;
Note that the ability for this many edge oceans to exist will be limited by elevation. Therefore to actually create large oceans you will probably need to change things like the Elevation Mesh Size and Weighted Ranges to increase the number and distribution of very low elevation squares on the map.&lt;br /&gt;
&lt;br /&gt;
Given appropriate weight, range, and variance values for things like elevation, a setting of:&lt;br /&gt;
*1 results in a world that seems like a chunk of coastline. One edge of the map will be completely underwater and there will be ocean taking up much of the map on that side.  Think the east or west coast of the United States, the north coast of Canada, or southern Europe.  If your edge ocean happens to pick your world's frozen side most of it will be glacier.&lt;br /&gt;
*2 results in another coastline along with the first one.  The map could end up looking something like Panama if the oceans pick opposite sides of the map.&lt;br /&gt;
*3 results in a peninsula, like Florida in the US.  There will be oceans surrounding 3 sides of the map, and land touching only one side of the map.&lt;br /&gt;
*4 results in one or more island(s) depending on things like elevation variance and weights. Regardless of whether you get one island or multiple islands, the entire map will be surrounded by water.&lt;br /&gt;
Unfortunately there's no easy way to control which oceans end up on which edges, except perhaps setting X and Y variance to different values.&lt;br /&gt;
&lt;br /&gt;
Edge oceans will take up part of the other edges too.  For example a full edge ocean on the east side will have part of the north and south sides underwater, but that does ''not'' add to the ''partial'' edge oceans count.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Volcano Number ===&lt;br /&gt;
&lt;br /&gt;
Worlds with less than this number of volcanoes will be rejected. Note that this will not just create this many volcanoes at random; there must be at least this many squares with a Volcanism of 100. Therefore adjusting Weighted Range for 80-100 to some higher value is recommended if you want to facilitate a large number of volcanoes. In addition, Maximum Volcanism must be set to 100 or squares with volcanism of 100 will be impossible making volcanoes impossible.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:15]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Volcanoes require a volcanism of 100 to occur.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Mineral Scarcity ===&lt;br /&gt;
&lt;br /&gt;
Controls the frequency at which minerals occur. Setting this value lower will increase the amount of ore present on a map, the number of different types of ore, and the number/types of gems. The default value will result in a maximum of 2-4 metal ores per map (assuming you choose a good embark location) which may be limiting until the economy is fully implemented and desired metals can be traded for.&lt;br /&gt;
&lt;br /&gt;
The options &amp;quot;Very Rare&amp;quot;, &amp;quot;Rare&amp;quot;, &amp;quot;Sparse&amp;quot;, &amp;quot;Frequent&amp;quot;, and &amp;quot;Everywhere&amp;quot; in the [[World_generation#Basic_World_Generation_Menu|basic world generation menu]] use the values 50000, 10000, 2500, 500 and 100 respectively.&lt;br /&gt;
&lt;br /&gt;
According to [http://www.bay12forums.com/smf/index.php?topic=79018.msg2063804#msg2063804 research] by Shandra in v0.31.25, this is the relationship between the value of this setting and the approximate number of gems and ore:&lt;br /&gt;
&lt;br /&gt;
[[File:MineralSetting_v25_limit10k.png]]&lt;br /&gt;
&lt;br /&gt;
This is for the same 8x8 embark region in a world which is otherwise the same except for the mineral scarcity parameter (although most of the detailed information comes from experiments with previous versions).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:2500]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 100 to 100,000&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
'''Note:''' as of v0.34, low mineral scarcity settings do not cause rejections.&lt;br /&gt;
&lt;br /&gt;
=== Max Megabeasts Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of megabeasts placed at the beginning of history. Megabeasts are hydras, bronze colossuses, rocs and dragons which are all placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415177#msg3415177 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. &lt;br /&gt;
&lt;br /&gt;
Increasing this value can lead to early extinction of civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:75]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Megabeasts count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Max Semi-Megabeast Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of semi-megabeasts placed at the beginning of history. Semi-megabeasts are giants, ettins, minotaurs, and cyclopes, which are placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415188#msg3415188 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:150]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Semimegabeasts do not count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Titan Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== Number ====&lt;br /&gt;
&lt;br /&gt;
This controls the number of titans that exist at the beginning of history[http://www.bay12forums.com/smf/index.php?topic=112465.msg3415203#msg3415203 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. The number of forgotten beasts is unaffected by this parameter [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415155#msg3415155 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:33]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Titans count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Attack Population Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once at least this many dwarves inhabit it, regardless of whether any other attack criteria have been met. This number defaults to 80 which isn't usually too difficult to deal with.&lt;br /&gt;
&lt;br /&gt;
==== Exported Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once you have exported at least this many [[Currency|dwarfbucks]] worth of merchandise, regardless of whether or not any other criteria have been met. This parameter defaults to None (disabled).&lt;br /&gt;
&lt;br /&gt;
==== Created Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once the fort's total wealth has reached this many [[Currency|dwarfbucks]] in value. This happens regardless of whether any of the other criteria, such as population, have been met; therefore, even with 1 dwarf, a fort could be attacked if the fort were worth at least this value.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:&amp;lt;population&amp;gt;:&amp;lt;exp wealth&amp;gt;:&amp;lt;created wealth&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:80:0:100000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = None (disabled). Only one requirement must be met for an attack.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Demon Types ===&lt;br /&gt;
&lt;br /&gt;
[[Demon|Demons]] are similar to titans and forgotten beasts in that they are procedurally generated, but unlike titans they are not unique. Thus many different types of demons will exist in the world but there will be many members of each type. Setting this to zero means no demons will exist, limiting the amount of fun you can have. Thanks to [[Underworld spire|certain fun things]], no demons also means no goblins.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:52]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Night Troll Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Night troll|night trolls]] that will exist in the world. These are also procedurally generated. Setting this to zero means that the world will have no night trolls.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:77]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Bogeyman Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Bogeyman|bogeyman]] forms that will exist in the world. Bogeyman are procedurally generated, though their forms do not vary by much. Setting this to zero, means that the world will have no bogeyman. Additionally setting this to zero will not allow custom bogeymen to appear in the world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:27]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Vampire Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Vampire|vampires]] that will exist in the world. Although they too are generated at the start of a new world, they generally no different from one another, with the biggest difference being what stat bonuses their vampirism gives {{verify}}. Setting this to zero means no vampires will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:72]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Werebeast Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Werebeast|werebeasts]] that can exist in the world. It is common for werebeasts, unlike vampires, to assume many different forms and variations, the most well known of these amount as different species of animal beasts. From lizards, to wolves, to maybe even bears. Setting this to zero means no werebeasts will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:58]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Secret Types ===&lt;br /&gt;
&lt;br /&gt;
The number of secrets that exist in the world. Currently, all secrets are secrets of life and death, and the ones holding these secrets are necromancers. Setting this to zero means that no [[necromancer]]s will appear.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:44]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Regional Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of interactions that can be caused in regions, which may incorporate evil rain and cloud types. Currently, only evil region interactions are generated this way.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Disturbance Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Mummy|disturbed dead]] {{verify}} that can exist in the world. Setting this to zero, while being as pointless as is, (since you're never forced to enter a tomb anyway), will most likely prevent any toilet roll spooks from appearing, but it may or may not also prevent the existence of the pyramids which house them too.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:10]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Cloud Types ===&lt;br /&gt;
&lt;br /&gt;
This number specifies [[Weather#Evil weather|the total amount of various face-melting, eye-boiling, and zombifyingly-fun]] clouds of pure evil may appear in your world. Setting this to zero means you no longer will ever have to deal with encroaching dust walls of doom in that world. I'd keep this value low...&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:45]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Rain Types ===&lt;br /&gt;
&lt;br /&gt;
The lesser of a relatively large group of evils... evil rain. This number states how many different types of green-ooze drenchers, disconcerting blood-showers, and sickly yellow slime-baths can occur in your world. Compared to evil clouds though, this one hardly is worth stressing out about, usually.... Setting this to zero means the only semi-solid to fully liquid liquids to fall from the sky will be pure H2O. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:352]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Generate Divine Materials ===&lt;br /&gt;
&lt;br /&gt;
This turns the generation of [[Divine_metal|divine metals]] on or off. It does not influence the creation of vaults.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Desired Good/Evil Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These values change the amount of [[Surroundings#Good|good or evil]] tiles on the map, depending on the size of the region they are being considered for.&lt;br /&gt;
&lt;br /&gt;
The exact size of small, medium, and large are:  Small is 1-24, medium is 25-99, and large is 100+, for any map size.  The counts used here will always be restricted to regions of the given size no matter how large the number.  Also, the count is more of a goal than a minimum or maximum.  As a result you can end up with many more or many fewer than the requested number of squares in some situations.&lt;br /&gt;
&lt;br /&gt;
In particular, if you have something like a case where only 3 large regions exists in a world, and you request &amp;quot;1 evil square&amp;quot; in large regions, you will end up with one of the large regions being ''entirely evil''.  So any non-zero value in one of these settings essentially means &amp;quot;force at least one region of this size to be all good/evil.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;evilness&amp;quot; of evil biomes is also impacted by savagery.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations can not exist in good and/or evil squares, so too many of one or the other may limit the size of certain types of civilizations.  Dwarves, for example, need non-aligned biomes.  Creating too many evil biomes seems to lead to the danger of an early extincion of many civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Set count to zero to disable for that region size.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Biome Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These numbers control whether or not a world will be rejected based on a lack of different [[biome|biomes]]. Raising these numbers will '''not''' automatically generate the given number of squares of the given biome! For a biome to exist, certain conditions like elevation and rainfall must exist.&lt;br /&gt;
&lt;br /&gt;
These parameters simply filter out worlds that (for example) randomly fail to have enough high elevation squares to support a given number of mountains, etc. Some settings may cause worlds to always be rejected. For example, if for some reason the maximum elevation parameter is set to a value below what will support mountain biomes, it will be impossible to satisfy a non-zero requirement for mountain squares. The same principle goes for other conditions and biomes such as low elevations and oceans, etc.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations require different biomes to exist (such as dwarves and mountains), so eliminating certain biomes will make it impossible for certain civilizations to form.&lt;br /&gt;
&lt;br /&gt;
These parameters often result in infinite world rejection problems. See [[World rejection]] for information on solving problems related to worlds always being rejected due to one or more of these parameters.&lt;br /&gt;
&lt;br /&gt;
0 means no minimum for rejection. Setting to 0 does not guarantee 0 squares of that biome.&lt;br /&gt;
&lt;br /&gt;
==== Biome Type Requirement Table ====&lt;br /&gt;
&lt;br /&gt;
Terrain requirements for various biomes are described below.{{Verify}} Note that some of the exact ranges are unknown.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Biome&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;  | Terrain Requirement&lt;br /&gt;
|-&lt;br /&gt;
! Elevation&lt;br /&gt;
! Rainfall&lt;br /&gt;
! Temperature&lt;br /&gt;
! Drainage&lt;br /&gt;
|-&lt;br /&gt;
| Swamp/Marsh&lt;br /&gt;
| 100-299&lt;br /&gt;
| 33-100&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-32&lt;br /&gt;
|-&lt;br /&gt;
| Desert/Badland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-9&lt;br /&gt;
| non-freezing&lt;br /&gt;
| note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Forest&lt;br /&gt;
| 100-299&lt;br /&gt;
| 66-100&lt;br /&gt;
| non-freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|-&lt;br /&gt;
| Mountains&lt;br /&gt;
| 300-400&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Ocean&lt;br /&gt;
| 0-99&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Glacier&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 80(?)-100&lt;br /&gt;
|-&lt;br /&gt;
| Tundra&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Grassland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Hills&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|}&lt;br /&gt;
note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; drainage: 00-32 sand desert, 33-49 rocky wasteland, 50-65 rocky wasteland but different characters/appearance, 66-100 badlands&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Square Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of squares of the given biome that must exist before things like erosion take place.&lt;br /&gt;
&lt;br /&gt;
One thing to keep in mind is the maximum number of squares on a map of a given size. If the total number of squares on a map is lower than the sum of all square count parameters then you will get infinite world rejection.&lt;br /&gt;
&lt;br /&gt;
To determine the number of squares on a map, just multiply the dimensions. In practice these parameters will need to sum to lower than the maximum because some space is needed for &amp;quot;slack&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Map Size&lt;br /&gt;
! Number of Squares&lt;br /&gt;
|-&lt;br /&gt;
| 17x17&lt;br /&gt;
| 289&lt;br /&gt;
|-&lt;br /&gt;
| 33x33&lt;br /&gt;
| 1089&lt;br /&gt;
|-&lt;br /&gt;
| 65x65&lt;br /&gt;
| 4225&lt;br /&gt;
|-&lt;br /&gt;
| 129x129&lt;br /&gt;
| 16614&lt;br /&gt;
|-&lt;br /&gt;
| 257x257&lt;br /&gt;
| 66049&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Region Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of regions of contiguous biome squares that must exist before other processes such as erosion take place.&lt;br /&gt;
&lt;br /&gt;
==== Minimum Final Region Count ====&lt;br /&gt;
&lt;br /&gt;
This many regions of the given biome must exist after erosion and similar phases of generation have been completed.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:4128:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:8256:9:9]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:8256:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
	&lt;br /&gt;
=== Erosion Cycle Count ===&lt;br /&gt;
&lt;br /&gt;
Tells the world-generator how long the world has to erode its tall peaks down to mountainsides during the 'running rivers...' stage of world creation. The higher this number, the less jagged the world will be, and the more wide the major rivers will be. If you use the maximum number, your mountains will dissolve before your eyes into plains which can lead to rejections if there aren't enough mountains to use for river start points and dwarven civilization origin points. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:250]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum/Desired River Start Locations ===&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of riverheads that must exist before and after erosion takes place. Worlds will be rejected if they fail to meet these numbers. As with minimum biome counts, raising this number doesn't automatically create this many riverheads. Other conditions like terrain and rainfall must exist for rivers to form.&lt;br /&gt;
&lt;br /&gt;
Extremely high pre-erosion values speed erosion greatly, while low post erosion values are useful for limiting rejects due to lack of river origin points. One can try the 800 value to get more lakes.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:&amp;lt;min pre-erosion&amp;gt;:&amp;lt;des post-erosion&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:200:400]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 800&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Periodically Erode Extreme Cliffs ===&lt;br /&gt;
&lt;br /&gt;
If enabled, makes every impassable rock wall into a series of ramps. Some prefer to pump up erosion to about 250, and turn the &amp;quot;Desired pre-erosion river count&amp;quot; to 0 for good erosion and no extra canyons.&lt;br /&gt;
&lt;br /&gt;
Normally this is set to Yes (1).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Do Orographic Precipitation and Rain Shadows ===&lt;br /&gt;
&lt;br /&gt;
Toggle that allows terrain height to affect rainfall. For example, moist air coming from the ocean blows over the land. As the terrain gets higher, it forces the moist air up, causing it to rain on the seaward side of a mountain. Eventually, all the rain has fallen if the mountain is tall enough. So, when the breeze goes over the top, there's no moisture left to fall on the other side, creating a rain-shadow. In the current version regions where drainage is above 50 will also create rain shadows, regardless of the underlying biome and elevation.{{cite forum|140685/5484064}} The rain shadows will always be created as if the wind is blowing from west to east.&lt;br /&gt;
&lt;br /&gt;
Turning this on should create a tendency for more extreme rainfall in regions, creating more forests, deserts, marshlands, and grasslands. Also note that it can create rainfall outside of min-max rainfall settings, so even in a world with a 0 max rainfall you may get rainfall biomes. Turning it off should result in more controllable, less complex rainfall conditions based on rainfall parameters as it adds a random element which can distort or otherwise mess up the climates on a pregenerated map.&lt;br /&gt;
&lt;br /&gt;
This should be disabled if you're importing a map or using a preset map file that has weather. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Maximum Number of Subregions ===&lt;br /&gt;
&lt;br /&gt;
This is the number of separate biomes (the flashing regions you see on embark when you hit F1, F2, etc. when there's more than one biome on the embark location) that are allowed to exist on the entire map.&lt;br /&gt;
&lt;br /&gt;
Setting this to very low values will result in numerous rejections depending on [[#X and Y Variance|variance parameters]]. If variance values are set to high numbers, many small biomes will be created causing rejection if this parameter value is not increased beyond the default.&lt;br /&gt;
&lt;br /&gt;
Increasing the value of this tag is often a must when generating &amp;quot;patchwork&amp;quot; worlds with lots of biome variance, but simply increasing it without increasing variance parameters will not guarantee more biomes.&lt;br /&gt;
&lt;br /&gt;
It is also interesting to note that the maximum subregions is 5000 which is more than the total number of squares for a pocket or small map. However for a medium or large map (16641 or 66049 squares) it quickly becomes a mere fraction of the total number of possible subregions. In fact it would be quite easy on a large map to end up with far too many subregions and get endless rejections of this type.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:2750]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 1 to 5000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cavern Parameters ===&lt;br /&gt;
[[Caverns]] are the hollow areas underground which dwarves tend to encounter when they're digging around.&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layer Number ====&lt;br /&gt;
&lt;br /&gt;
This parameter determines how many cavern systems will be generated, not including the Magma layer or the Bottom layer.  Defaults to three. Setting it to lower values could help FPS.&lt;br /&gt;
&lt;br /&gt;
'''Warning:'''&lt;br /&gt;
*Disabling caverns by setting this to 0 will make it impossible to grow any underground plants, as none will exist for your civilization to cultivate. (Underground plants will not be available on embark.)&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:3]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layout Parameters ====&lt;br /&gt;
&lt;br /&gt;
Open caverns and dense passageways are not mutually exclusive. When both are raised, bizarre results can occur, such as layers showing a combination of open caverns, a cluster of network passages, and natural walls sprinkling the inside of an otherwise open cavern. [http://www.bay12forums.com/smf/index.php?topic=76355.msg1936859#msg1936859 Reference]&lt;br /&gt;
&lt;br /&gt;
If you want the largest open spaces possible, then decrease the density and increase the openness. If you want a labyrinth of passageways, lower the openness and raise the passage density.&lt;br /&gt;
&lt;br /&gt;
Another interesting note about the cavern layers is that the seed and number of demon types affect the layout of the caverns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200 heights=200 perrow=2&amp;gt;&lt;br /&gt;
File:Open00Density100.jpg|Cavern slice with Openness of 0 and Density of 100&lt;br /&gt;
File:Open100Density00.jpg|Cavern slice with Openness of 100 and Density of 0&lt;br /&gt;
File:Open100Density100.jpg|Cavern slice with Openness of 100 and Density of 100&lt;br /&gt;
File:Open50Density50.jpg|Cavern slice with Openness of 50 and Density of 50&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Layer Openness Min/Max =====&lt;br /&gt;
&lt;br /&gt;
Dictates the size of cavern passages. When Passage Density (see below) is set to minimum (0), caverns will be open expanses. Raising the maximum will increase the size of the caverns.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Layer Passage Density Min/Max =====&lt;br /&gt;
&lt;br /&gt;
This determines how many passages form the cavern. If openness (see above) is set to minimum and density increased then you will get a maze like network of small criss-crossing passages. Raising the values further increases the number of the maze-like passages.&lt;br /&gt;
&lt;br /&gt;
Caverns will be large, open spaces at 0, and comprised of many small vertical shafts of rock at 100. Setting both values to be the same results in a uniform look for the caverns.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100 &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See [http://www.bay12forums.com/smf/index.php?topic=76355.0 this forum thread] for more information on openness and density including many more images.&lt;br /&gt;
&lt;br /&gt;
===== Layer Water min\max =====&lt;br /&gt;
&lt;br /&gt;
Determines how many caverns will have water at the bottom.  Note that, even at 100, there will be some amount of ground in caverns, but each cavern 'bubble' will contain some amount of water.&lt;br /&gt;
&lt;br /&gt;
At 0, there will be no water in your caverns.  This may impact future underground plant growth, although maps will still start with underground flora.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Magma Layer ====&lt;br /&gt;
&lt;br /&gt;
This parameter controls whether the [[magma sea]] exists.&lt;br /&gt;
&lt;br /&gt;
Setting 1/Yes causes the magma layer to exist, value 0/No prevents it. Appears not have impact on volcanoes, nor volcanism, so even if 0/No there will still be embark locations with magma. If a [[volcano]] exists, it appears to always tap the magma sea, but the magma sea will not be revealed by revealing the volcano.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Bottom Layer ====&lt;br /&gt;
&lt;br /&gt;
Determines if the space below the magma sea exists. If Yes the &amp;quot;HFS&amp;quot; layer is always present. Normally you want to leave this set to Yes for maximum fun.&lt;br /&gt;
&lt;br /&gt;
If enabled, this will force the magma layer above it. (Unknown whether this has any impact on occurrence of HFS &amp;quot;temple&amp;quot;.){{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Z Levels (Depth) Settings ===&lt;br /&gt;
&lt;br /&gt;
These parameters control the &amp;quot;thickness&amp;quot; of various &amp;quot;layers&amp;quot; on the map. Note that a &amp;quot;layer&amp;quot; in this case does not refer to one Z-level, but refers to a number of related Z-levels such as &amp;quot;levels above ground&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following table assumes that you have 3 cavern layers.  The Levels Above Layer settings control how many Z-Levels are above each layer.  A layer may itself consist of multiple Z-Levels (and almost always does).&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-style=&amp;quot;background:#F2F2F2;text-align:center;&amp;quot;&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;120&amp;quot;|Setting Name&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;200&amp;quot;|Token&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Ground&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_GROUND:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| The number of Z-Levels of air above the highest surface level.&amp;lt;br /&amp;gt;Has no impact on how many Z-levels deep the surface layer is.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above layer 1&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_1:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of stone above the first cavern layer.  Making this higher will guarantee ''at least'' this many levels to build your fortress, but will have no impact on how many z-levels thick the surface layer is.  Also, the top of a cavern may be higher than the rest of a cavern, so in practice there will be more &amp;quot;solid&amp;quot; levels than this above the cavern.&lt;br /&gt;
As for version 0.31.25 this setting is inaccurate. The actual number of z-levels may vary in a range of approx. ±5, which may result in non-existence of any solid z-levels between a surface layer and first cavern layer.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 2&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_2:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of second cavern and very bottom of first cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 3&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_3:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of third cavern and very bottom of second cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 4&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_4:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of earth between very highest magma and very bottom of third cavern.&amp;lt;br /&amp;gt;Spoiler Hidden (select invisible text to read): &amp;lt;span style='color:#eee;'&amp;gt;Making this high will give a large area for HFS veins, so that it never touches caverns, giving more to mine '''if''' it was impacting the cavern previously.&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 5&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_5:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Uncertain.  May control the number of levels of &amp;quot;Semi Molten Rock&amp;quot; between HFS and Magma, may control number of levels of magma, may impact both.&amp;lt;br /&amp;gt;In experimentation, the overall depth of all magma sea and semi-molten rock levels appears to increase, but not consistent enough to say for certain.&amp;lt;br /&amp;gt;Only valid if Magma Layer present.&amp;lt;br /&amp;gt;Spoiler Hidden:&amp;lt;span style='color:#eee;'&amp;gt;Often the HFS vein will only extend as high as the highest magma, making this the only guaranteed way to increase amount of HFS to mine, but unfortunately also creating enormous useless semi-molten z-levels&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| At Bottom&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_AT_BOTTOM:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Appears to be number of levels of HFS chamber.&amp;lt;br /&amp;gt;Only valid if Bottom Layer present.&amp;lt;br /&amp;gt;Often has no impact.&amp;lt;br /&amp;gt;Values larger than default results in strange things.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some implications:&lt;br /&gt;
* The number of surface layers (e.g. soil), at this time, can not be controlled.  For example, on a map with 1 layer of Peat, then a layer of Silt, then a layer of Obsidian, there is no control to let you increase either one to be, say, 20 z-levels. (though you may get lucky with the Obsidian).&lt;br /&gt;
* There can be multiple stone layers between the cavern and the surface.  So increasing Levels Above Layer 1 may give you more Conglomerate, or more Granite, and you have no control over which stone layer spans those Z-Levels.&lt;br /&gt;
* The layers shown on embark span across the cavern layers in an unknown and inconsistent way.  Sometimes those 10 different layers of stone are evenly distributed over your 400 z-level deep map, sometimes the first 9 get 1 z-level each and the last gets the other 391 levels.  No way to control found yet.&lt;br /&gt;
* The HFS temple, if present, will always extend into the rock layers, and appears to always make contact with the bottom cave.  Large values for levels above layer 5 and layer 4 can result in enormous temples, but the number of levels at the top (the part with undead) appears to be unaffected.&lt;br /&gt;
* Unconfirmed whether number of levels between caverns has any impact on cavern height.  There will be connecting ramps and/or shafts between cavern layers no matter how many levels are between them.&lt;br /&gt;
* '''Very Important''': These values appear to apply across a whole 16x16 Region, not just embark areas.  That means that if a 16x16 region is completely flat, but has one tall mountain in one far corner, even if you set Levels Above Ground low (e.g. 2 z-levels) you still have all the empty air of the highest mountain in every embark tile (e.g. 200 z-levels).  Also can happen to the semi-molten layer, and can lead to unexpected behavior.&lt;br /&gt;
* Very large values can cause strange things to happen.  Even more true for small values.&lt;br /&gt;
&lt;br /&gt;
=== Cave Parameters ===&lt;br /&gt;
&lt;br /&gt;
Caves are sort of like caverns except that they have a passage to the surface and are generally much smaller. Caves can connect to caverns if they are sufficiently deep.&lt;br /&gt;
&lt;br /&gt;
==== Minimum/Maximum Natural Cave Size ====&lt;br /&gt;
&lt;br /&gt;
These parameters appear to control the length and depth of caves.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 1 to 500&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:25]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Number of (Non-)Mountain Caves ====&lt;br /&gt;
&lt;br /&gt;
The number of caves that will be generated. Lurking kobolds set up shop in caves and store stolen items here. A setting of 0 in both will stop kobold civilizations from appearing.  Special note: a cave is not a lair.  &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 800&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Make Caves Visible ====&lt;br /&gt;
&lt;br /&gt;
If set to no (default) then the location of caves will not be marked on the map. If set to yes, caves will appear on the map as {{Raw Tile|•|#808080|#00DD00}} symbols so that they may be sought out or avoided as desired.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Allow Init Options to Show Tunnels ===&lt;br /&gt;
&lt;br /&gt;
This parameter doesn't do anything.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:&amp;lt;0-2&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No&amp;lt;br/&amp;gt;1 = Only in Finder&amp;lt;br/&amp;gt;2 = Always&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Civilizations ===&lt;br /&gt;
&lt;br /&gt;
This number of civilizations will be placed on the map before history generation begins. These civilizations may later die out due to historical events. The five races are dwarf, elf, human, goblin, and kobold; they will be placed in equal numbers until the quota has been reached. If there is an odd number of civs (not divisible by 5), then the remainder is distributed randomly. Kobold civs require caves to be placed; if no caves exist, then kobolds are skipped and will not appear. This does not cause rejections [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415125#msg3415125 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
Note that a high value here can cause lots of map rejections, particularly on smaller maps as there simply isn't enough room or regions to put them all in.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:40]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 300&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Playable Civilization Required ===&lt;br /&gt;
&lt;br /&gt;
If this is set to yes (default) then worlds will be rejected if no civilization with [[Entity token|CIV_CONTROLLABLE]] can be placed. In an unmodded game, only the dwarves have this token.&lt;br /&gt;
&lt;br /&gt;
If set to no, the result may be a world that cannot be played in Fortress Mode.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Number of Mid/Low/High Characteristic Squares ===&lt;br /&gt;
&lt;br /&gt;
Sets the minimum possible number of squares of certain ranges of each of the region qualities, such as elevation, rain, drainage, volcanism, savagery, and temperature. These need to be changed to reflect your regional meshes and weights. These are responsible for a HUGE number of map rejections. These values can all be set to 0 for much fewer map rejections, particularly in the case of more wacky, non-standard maps. &lt;br /&gt;
&lt;br /&gt;
These values will cause worlds to be rejected unless at least the given number of squares of the given type are randomly generated. Setting these values too high could result in worlds always being rejected if other parameters such as the maximum/minimums for elevation, etc., don't allow enough of those squares to get generated.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;5&amp;quot; | Minimum number of squares that must have low, medium, and high amounts of the given attribute.&amp;lt;br/&amp;gt;&lt;br /&gt;
0 = No minimum&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World rejection==&lt;br /&gt;
&lt;br /&gt;
:''Main article [[World rejection]]''&lt;br /&gt;
&lt;br /&gt;
If you are having the common problem of your generated worlds always being rejected by the world generator, see [[v0.31:World rejection|Solving World Rejection Problems (v0.31 page)]] as it contains many detailed suggestions on how to troubleshoot and solve these issues.&lt;br /&gt;
&lt;br /&gt;
== Default Worldgen Parameters ==&lt;br /&gt;
&lt;br /&gt;
There is no single default for each parameter. Several advanced world generation profiles come with the game by default. See [[world_gen.txt|Default world_gen.txt]] to take a look at this file.&lt;br /&gt;
&lt;br /&gt;
== Parameter Set Examples ==&lt;br /&gt;
&lt;br /&gt;
If you're trying to do something specific then the [[Worldgen examples|Worldgen examples]] might be helpful. These are complete parameter sets that can be copied directly into your ''world_gen.txt'' file and customized as desired.&lt;br /&gt;
If they have nothing for you try [[Worldgen Tricks|Worldgen Tricks]], for known tricks and tips on making a world just right for you.&lt;br /&gt;
&lt;br /&gt;
For many many more examples see:&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=101280 DF2012 (v0.34) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=140180 DF2014 (v0.40) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
&lt;br /&gt;
{{World}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223769</id>
		<title>Advanced world generation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223769"/>
		<updated>2016-02-29T10:51:09Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: &amp;quot;Many&amp;quot; is not a location.  Miscellaneous spelling and grammar-related corrections.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|18:16, 23 August 2014 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{old}}&lt;br /&gt;
&lt;br /&gt;
:''This article contains information on advanced world generation. For information on basic world generation, see [[World generation]].''&lt;br /&gt;
:''See [[World token]] to more easily find information by the names used in the world_gen.txt file.''&lt;br /&gt;
:''See [[World rejection]] for information on solving problems related to worlds always being rejected.''&lt;br /&gt;
:''See [[Worldgen examples]] for example worlds.''&lt;br /&gt;
&lt;br /&gt;
When you want more control of what your world looks like, it's time for '''advanced world generation'''. A detailed reference with advice is provided below. This article assumes that you are already familiar with [[World generation|'''basic''' world generation]]. If you are not then please read about that first.&lt;br /&gt;
&lt;br /&gt;
Once you select {{DFtext|Design New World With Advanced Parameters}} from the main menu, a screen that looks something like this will appear:&lt;br /&gt;
&lt;br /&gt;
[[File:AdvancedWorldGen.png‎]]&lt;br /&gt;
&lt;br /&gt;
This screen is relatively intuitive but some parts could use some explanation.&lt;br /&gt;
&lt;br /&gt;
== Parameter sets ==&lt;br /&gt;
&lt;br /&gt;
The list of already defined parameter sets is in the upper right corner. You can select the current set that you want to work with using the up and down directional keys.&lt;br /&gt;
&lt;br /&gt;
Hitting {{K|a}} will add a new set to the end of the list. You can also {{K|c}}opy an existing set to a new one allowing you to base a new set on an existing one. Using {{K|t}} you can change the name of the parameter set but note that this will not affect the name of the world that is generated.&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the &amp;lt;tt&amp;gt;data/init/world_gen.txt&amp;lt;/tt&amp;gt; file in the main DF directory. The {{K|F1}} and {{K|F6}} keys will load and save '''all''' of the parameter sets to this file. You will need to save the world gen parameters to this file before you hit {{K|Enter}} to generate the world.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; file can also be edited with a text editor. This is particularly useful because people will often post their parameter sets on the forum or wiki in text form. (See below for more info.) The {{K|F1}} key comes in handy when editing this file while the game is still running.&lt;br /&gt;
&lt;br /&gt;
To get the parameters used to generate a world you are already playing press {{K|ESC}} then choose export images; exporting any image will also create the world generation parameter file, for more information see this [http://www.bay12forums.com/smf/index.php?topic=101280.msg4512541#msg4512541 post]. &lt;br /&gt;
&lt;br /&gt;
The tokens used in &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; are at the bottom of each parameter description. Here's the one for title.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE:MEDIUM ISLAND]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World name ==&lt;br /&gt;
&lt;br /&gt;
As previously mentioned, the title of the parameter set doesn't affect the name of the world. You can force a particular name for your world using {{K|n}} or set it back to the default random setting using {{K|N}}.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME:Realm of Cheese Engravings]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| For a random name, simply don't use this token.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World dimensions ==&lt;br /&gt;
&lt;br /&gt;
The size of the map to be generated can be selected with {{K|u}} {{K|i}} {{K|o}} {{K|p}}. Larger maps take longer to generate and may limit [[Frames per second|FPS]] in game.&lt;br /&gt;
&lt;br /&gt;
Changing the dimensions of the world will reset the parameters because many of them have different defaults depending on the surface area available.&lt;br /&gt;
&lt;br /&gt;
Creating larger worlds does not necessarily mean longer world generation time. The essential factor for the duration is the history. If you restrict the number of historical events you can significantly speed up the process.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:&amp;lt;width&amp;gt;:&amp;lt;height&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:129:129]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Valid values are 17, 33, 65, 129, and 257. Others may not work.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Seed values ==&lt;br /&gt;
&lt;br /&gt;
The world generation process uses a PRNG (Pseudo Random Number Generator) algorithm. A PRNG will produce a sequence of numbers that &amp;quot;looks&amp;quot; random even though the actual sequence of numbers will always be the same if the PRNG is started with the same seed value. Basically this means that if you run world generation with a certain seed value on your computer, and someone else runs world generation with the same seed value on their computer, the same sequence of random numbers will be generated on both computers. The practical impact of this is that someone else can generate exactly the same world that you generated by entering the same seed value that you used.&lt;br /&gt;
&lt;br /&gt;
In older versions, the same seed value(s) produced identical worlds on every computer at any time (if other parameters were identical, too). In the current version, the seed values for the world itself and the names seem to produce the same result, but you will get changes in events cumulating to an different world-history at all. It seems like the history is random somhow and not completely connected to the seed. Keep this in mind if you want to regenerate a particular world.&lt;br /&gt;
&lt;br /&gt;
A specific seed value can be entered with {{K|s}}. This will change '''all''' of the seed values to the value you enter. If you need to enter different seed values for each type of seed, use {{K|e}}.&lt;br /&gt;
&lt;br /&gt;
In order to find out what seed values were used for the last world you generated you can look at this screen. If you want to be able to tell someone else how to generate exactly the same world that you just generated, they will need all of the seed value listed under Last Param Set.&lt;br /&gt;
&lt;br /&gt;
When generating a world using a seed, the way that the world is generated is also based at least in part on certain world tokens. As such you cannot for example change the minimum and maximum rainfall and get the same world but drier or wetter, instead a different world is generated. Saying that, it would also seem that certain small changes to these world tokens can occasionally generate a very similar world, however other tokens are more sensitive. For more information see the forum thread [http://www.bay12forums.com/smf/index.php?topic=112132.msg3404199#msg3404199 here].&lt;br /&gt;
&lt;br /&gt;
The following are tokens which appear to be involved in the implementation of the seed and are not safe to change:&lt;br /&gt;
&lt;br /&gt;
* [DIM:X:X] &lt;br /&gt;
* [ELEVATION:X:X:X:X]&lt;br /&gt;
* [RAINFALL:X:X:X:X] &lt;br /&gt;
* [TEMPERATURE:X:X:X:X]&lt;br /&gt;
* [DRAINAGE:X:X:X:X]&lt;br /&gt;
* [VOLCANISM:X:X:X:X]&lt;br /&gt;
* [SAVAGERY:X:X:X:X]&lt;br /&gt;
* [ELEVATION_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [RAIN_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [DRAINAGE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [TEMPERATURE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [SAVAGERY_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [VOLCANISM_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [PARTIAL_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [COMPLETE_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [HAVE_BOTTOM_LAYER_1:X]&lt;br /&gt;
* [MINERAL_SCARCITY:X] {{cite talk/this|Mineral scarcity}}&lt;br /&gt;
&lt;br /&gt;
Many other world parameters such as end year and embark points can however be changed without it having any effect on the geography of the world generated from the seed values.&lt;br /&gt;
&lt;br /&gt;
Normally you don't enter these seed values and the world generation process comes up with seed values based on some sort of &amp;quot;true&amp;quot; random information from things like random values in uninitialized memory, the current date/time, etc. If you have entered a seed value you can revert to all seeds being random using {{K|S}}.&lt;br /&gt;
&lt;br /&gt;
== Generating a world ==&lt;br /&gt;
&lt;br /&gt;
Unless you're using an already defined parameter set you will probably want to {{K|e}}dit the parameters. Select the set you want to edit using the up/down directional keys and press {{K|e}}. Information about each parameter is documented below.&lt;br /&gt;
&lt;br /&gt;
Once you are happy with the parameters you have set, hit {{K|Esc}} to get back to this screen, hit {{K|F6}} to save the values you just edited, and hit {{K|Enter}} to start. The rest of the process is the same as basic [[World generation]].&lt;br /&gt;
&lt;br /&gt;
The phases of the world generation process are (this order is not completely correct):&lt;br /&gt;
* Preparing elevation...&lt;br /&gt;
* Setting temperature...&lt;br /&gt;
* Running rivers...&lt;br /&gt;
* Forming lakes and minerals...&lt;br /&gt;
* Growing vegetation...&lt;br /&gt;
* Verifying terrain...&lt;br /&gt;
* Importing wildlife...&lt;br /&gt;
* Recounting legends...&lt;br /&gt;
* Placing civilizations...&lt;br /&gt;
* Making cave civilizations...&lt;br /&gt;
* Making cave pops...&lt;br /&gt;
* Placing other beasts...&lt;br /&gt;
* Placing megabeasts...&lt;br /&gt;
* Placing good/evil...&lt;br /&gt;
* Placing caves...&lt;br /&gt;
* Prehistory generation&lt;br /&gt;
* Finalizing civ mats...&lt;br /&gt;
* Finalizing art...&lt;br /&gt;
* Finalizing uniforms...&lt;br /&gt;
* Finalizing sites...&lt;br /&gt;
&lt;br /&gt;
== World painter ==&lt;br /&gt;
:''Main article: [[World painter]]&lt;br /&gt;
The '''world painter''' tool allows you to paint features onto a map that is then used when generating a world.  It is very difficult to use properly, and tends to result in endless rejected worlds, unless you loosen or remove the restrictions placed on biomes and civilizations in the advanced settings.  That being said it is also a very powerful tool, and allows you to generate worlds more to your liking.&lt;br /&gt;
&lt;br /&gt;
To access the world painter, hit {{k|e}} to start editing the advanced parameters and finally hit {{k|p}} to open world painter. How to use the world painter is not entirely obvious so please check out the [[World painter]] documentation to avoid frustration. (Losing may be fun, but frustration is not.)&lt;br /&gt;
&lt;br /&gt;
== Editing the parameters init file ==&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the ''data/init/[[world_gen.txt]]'' file, using [[world token]]s. You can copy and paste other player's sets of parameters into your ''world_gen.txt'' to use their parameter sets, and some are provided at [[Main:Pregenerated worlds|Pregenerated worlds]]. Another place to find parameter sets is the [http://www.bay12forums.com/smf/index.php?topic=101280.0 Worldgen cookbook] thread on the official forums.&lt;br /&gt;
&lt;br /&gt;
== Advanced parameters ==&lt;br /&gt;
&lt;br /&gt;
To access advanced parameters, press {{key|e}} when at the screen for creating new worlds with parameters screen. This will bring you to an editable list of various guidelines the world-gen process will use when creating your new world.&lt;br /&gt;
&lt;br /&gt;
The parameters are described below in the order that they appear in the list in the UI, not necessarily the other they appear in the configuration file. See [[world token]] for an index that will help you look things up by token name.&lt;br /&gt;
&lt;br /&gt;
There are essentially 4 types of controls for the generation of the surface map;&lt;br /&gt;
&lt;br /&gt;
Terrain Parameters, as described below, these 5 variables define the basic background world, how hot or cold it is, how much rainfall, how high the mountains are. The world automatically goes through the temperature range along the Y axis although sometimes it will be hotter in the north, other times in the south. Minima and maxima and X,Y variance can drastically alter the world. &lt;br /&gt;
&lt;br /&gt;
Weighted Meshes, these are a way to fine tune the amount of the 5 basic variables on the map. It can be used to set the specific distribution of different elevations or rainfall areas for example. &lt;br /&gt;
&lt;br /&gt;
Rejection Parameters, Dwarf Fortress has a belt and braces approach to world generation. The above controls allow you to shape the world then the rejection parameters throw it out if it isn't right! There are a number of rejection parameters for the number and degree of the 5 basic variables, for biome types etc. If the world does not meet the requirements of any one rejection parameter the world is rejected an re-randomised. Also see [http://dwarffortresswiki.org/index.php/DF2012:World_rejection World Rejection]&lt;br /&gt;
&lt;br /&gt;
The are also the feature placing options such as rivers, mountain peaks, volcanoes and oceans. These can cause rejections if the terrain parameters don't allow enough suitable locations for the features to be placed. &lt;br /&gt;
&lt;br /&gt;
If you are experimenting with world design, one method would be to disable the rejection parameters and use the first two control types. Otherwise any significant change will likely result in endless rejections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Seed values ===&lt;br /&gt;
&lt;br /&gt;
Here you can enter specific seed values for different parts of the world generation process. Different sequences of pseudorandom numbers are used for different parts, so you can use this to reproduce only the particular part of world generation from some previously generated world if you want.&lt;br /&gt;
&lt;br /&gt;
Normally you will want to leave all of these set to Random unless you're specifically trying to reproduce the results of another world generation run.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;4&amp;quot; |&lt;br /&gt;
For each of these not in the config file, a random seed will be used.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Embark Points ===&lt;br /&gt;
&lt;br /&gt;
This controls the number of points that you have for skills and equipment when you embark in fortress mode. Turning this value up will allow games started in this world to start with more skilled dwarves with better equipment. Normally you can do just fine by leaving this value set to default, but you might want to up it for experimental/testing purposes or to help dwarves survive in a particularly evil world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:1504]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== End year ===&lt;br /&gt;
&lt;br /&gt;
This is how many years of history are generated for the world. This is basically the same as the History parameter in basic world gen, except that you can enter an exact value for number of years. See [[World_generation#History|History]] for more info.&lt;br /&gt;
&lt;br /&gt;
History is divided into &amp;quot;ages&amp;quot; which are determined by the ''percentage'' of megabeasts and semi-megabeasts killed at various points. One can attempt to make a world go through the ages more quickly by pumping up the ratio of semimegabeast to megabeast caves, the former of which are usually more killable than the regular megabeasts. This will net you more &amp;quot;Age of Legends&amp;quot;, &amp;quot;Age of Heroes&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
For more information on the history aspect of the game, see [[Legends]] and [[Calendar#Ages|Ages]].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:1050]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Population cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This determines the maximum possible population of civilization member historical figures alive at a given time during worldgen. Not all members of a civilization are historical figures. This tag does not directly influence the total population of civilized beings as it once did when populations were all historical figures, so the description is a bit confusing. You can enter -1 to make the historical population unlimited.&lt;br /&gt;
&lt;br /&gt;
Each race may have up to 100 civilizations each, and each civilization a maximum population of 10,000. Civilizations, known as ''entities'' in the [[Raw file|raw files]], have 3 or 4 basic variables that will greatly affect their final placement on the world map. See [[Entity_token#Population|Population (Entity Token)]] for more information on interpreting/editing the raws if you need more precise control of civilization placement and total population numbers.&lt;br /&gt;
&lt;br /&gt;
Huge historical figure populations can cause the size of history data to explode, cause history generation to take forever, lower FPS, and generally slow down the game.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:15000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Site cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This controls the maximum number of towns and similar sites on the entire map. Raising the number will allow for more towns, etc. though the number of sites will ultimately still be limited by things like space, terrain, and population cap. &lt;br /&gt;
&lt;br /&gt;
Note that '''this parameter controls only &amp;quot;civilization&amp;quot; sites''' like towns.  Other sites such as lairs will be added on to this maximum.  After civilizations reach this cap, they will not spread out anymore to place new cities.&lt;br /&gt;
&lt;br /&gt;
By default, the raws limit each civilization site to a population of 120 regardless of the race of the civilization. Therefore, without editing the raws, the total population on the map can't go above site cap x 120.&lt;br /&gt;
&lt;br /&gt;
Increasing this too high can slow worldgen down by a lot, beware. Another effect can be goblins (or other civs) sometimes overwelming all other civs and/or flooding the world with their homes leaving no good places to build your fortress. If you choose a low cap to hasten world generation, the cap will be reached within years stopping expanson of all civs. If you want a good and long history you will have to adjust cap of sites and population as the number of civs many times to find one fullfilling your needs.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:1040]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Beast control ===&lt;br /&gt;
&lt;br /&gt;
These parameters don't usually matter too much, but may matter for small numbers of beasts.&lt;br /&gt;
&lt;br /&gt;
==== Percentage of Megabeasts and Titans Dead for Stoppage ====&lt;br /&gt;
&lt;br /&gt;
The world starts out with a certain number of powerful megabeast and titan entities in existence. If a percentage of the megabeast and titan population dies out during history generation, then history generation will stop early. For example, if the elimination value is 80%, and the generated history starts with 200 entities and 160 of those 200 entities are eliminated by historical events before the End Year is reached, history generation will stop early.&lt;br /&gt;
&lt;br /&gt;
If you want to end the creation of your world at the beginning at a certain age, choose the following values:&lt;br /&gt;
* Age of Legends: ~34%&lt;br /&gt;
* Age of Heroes: ~67%&lt;br /&gt;
If there are three or fewer titans or megabeasts in your world, the age will be given a special name reflecting the remaining megabeasts/titans, instead.&lt;br /&gt;
&lt;br /&gt;
==== Year to Begin Checking Megabeast Percentage ====&lt;br /&gt;
&lt;br /&gt;
The percentage of dead megabeasts and titans for stoppage will not be checked until this year is reached in history generation. This can be used to ensure that a world reaches a certain year even if all of the megabeasts in the world are slain earlier.&lt;br /&gt;
&lt;br /&gt;
If the number of living megabeasts and titans starts at or drops to less than four, then world generation will always stop if the current year is equal to or greater than the Year to Begin Checking Megabeast Percentage ''regardless'' of how many meagabeasts and titans are dead — Percentage of Megabeasts and Titans Dead for Stoppage is ignored. The number of megabeasts and titans at the start of the world is set by the sum of the [[Advanced_world_generation#Max_Megabeasts_Caves|Max Megabeasts Caves]] and [[Advanced_world_generation#Titan_Parameters|Titan Number]] parameters.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:&amp;lt;year&amp;gt;:&amp;lt;percentage or -1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:200:80]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Use -1 as percentage to disable. Year must still be at least 2.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cull Unimportant Historical Figures ===&lt;br /&gt;
&lt;br /&gt;
Whether or not the game ignores unimportant figures in history generation. The culling is many CPU-intensive steps in history generation but it saves memory and will speed up loading/saving games a bit. This does mean that the &amp;quot;unimportant&amp;quot; figures will not appear in Legends mode or in things like dwarf engravings, but they might not appear in engravings anyway.&lt;br /&gt;
&lt;br /&gt;
Unimportant figures are people or creatures who suffer early deaths, never having offspring or killing anything named during history generation. For example, residents of goblin towers may get murdered by demons at a young age. After culling unimportant figures, Legends mode would say something like the demon has killed &amp;quot;a creature at Eviltower in the year 102.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Reveal All Historical Events ===&lt;br /&gt;
&lt;br /&gt;
Setting this to Yes will allow access to all information about the history of the world in Legends mode. If set to No, then you will have to discover historical information in adventure mode or by instructing dwarves to make engravings.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY::1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Parameters ===&lt;br /&gt;
&lt;br /&gt;
These determine how random values for terrain elevation, rainfall, temperature, drainage, volcanism, and savagery are generated. What biomes exist are then determined by how these factors overlap with each other.&lt;br /&gt;
&lt;br /&gt;
==== Minima and Maxima ====&lt;br /&gt;
&lt;br /&gt;
These are the absolute minimum and maximum values that can ever be generated for a particular map square characteristic. Changing these can cause the occurrence of certain [[Biome|biomes]] to become impossible, so modify these with care. Because of this problem, you may want to use [[#Weighted Ranges|Weighted Ranges]] instead.&lt;br /&gt;
&lt;br /&gt;
By ''subtly'' tweaking the min and max values, vastly different maps can be made.&lt;br /&gt;
&lt;br /&gt;
==== X and Y Variance ====&lt;br /&gt;
&lt;br /&gt;
These control how wildly things like elevation and rainfall can vary between adjacent map squares. For example, if these values are set to the maximum of 3,200 for elevation then you will end up with more very low areas right next to very high areas. The number for X determines the east-west variance and the number for Y determines the north-south variance. By setting only one of these to a high value you can, for example, create horizontal or vertical bands of areas which are more similar to each other.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, raising both of these values will create a more random &amp;quot;patchwork&amp;quot; of many small biomes while setting both x and y values to 0 will cause every square on the map to use a single random value for the given characteristic.&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;patchwork&amp;quot; worlds to avoid being rejected, [[#Maximum_Number_of_Subregions|Maximum Number of Subregions]] will probably need to be increased from the default.&lt;br /&gt;
&lt;br /&gt;
==== Elevation ====&lt;br /&gt;
&lt;br /&gt;
This controls the range of terrain elevations that can occur in the world.&lt;br /&gt;
&lt;br /&gt;
Usually you just want to leave the min/max values alone. Raising the minimum elevation can, for example, make it impossible for oceans to exist. This does '''not''' directly control the number of available Z-levels at a particular site, though high maximum values may contribute to peaks which can raise the number of above ground Z-levels. In other words, a maximum elevation of 400 and minimum of 1 does not mean you get 400 Z-levels but it might increase the number of Z-levels somewhat in some regions compared to others.&lt;br /&gt;
&lt;br /&gt;
Raising the variance will result in a more bumpy uneven landscape.&lt;br /&gt;
&lt;br /&gt;
Some biomes/features that are impacted by elevation:&lt;br /&gt;
* A high minimum (above 99) means no oceans as they need elevations below 100.&lt;br /&gt;
* A low maximum (below 300) means no mountains as mountains need elevations above 300.&lt;br /&gt;
* River start locations need a minimum elevation of 300. Therefore, a world with a maximum elevation of 299 everywhere prevents river generation, but rivers can still occur if maximum elevation is set to 300.&lt;br /&gt;
*Mountain peaks can only form in squares with an elevation of 400.&lt;br /&gt;
&lt;br /&gt;
==== Rainfall ====&lt;br /&gt;
&lt;br /&gt;
Controls the amount of rainfall in each map square/area. Setting the minimum too high or the maximum too low can make the formation of certain biomes impossible. Rainfall causes it to [[Rain]] more in a given area, which can have various effects.&lt;br /&gt;
&lt;br /&gt;
Also makes more rivers appear on the world map.&lt;br /&gt;
&lt;br /&gt;
Note that if [[#Do Orographic Precipitation and Rain Shadows|orographic precipitation and rain shadows]] is on then mountains will cause additional variance in rainfall, so (for example) rainfall below the specified minimum can occur in the shadow of a mountain.  If you want the minimum and maximum for this parameter to be absolutely respected you must turn off the orographic precipitation option.&lt;br /&gt;
&lt;br /&gt;
==== Temperature ====&lt;br /&gt;
&lt;br /&gt;
These parameters control how hot or cold various areas will be. If you lower the minimum and maximum values, the world will be colder overall, for example. As with the others, changing these values too much could make it impossible for certain biomes to exist. See [[Climate]] for more info.&lt;br /&gt;
&lt;br /&gt;
[[Temperature]] is always influenced by elevation and, if [[Advanced_world_generation#Poles|Poles]] are enabled, latitude. So, the value from the temperature rolling process is ''not the absolute temperature value the region will get, but rather local variation.'' The &amp;quot;base&amp;quot; temperature for an area is derived from its latitude and elevation, and then the random value determined by these parameters are applied to it to make it vary a bit. The default values for the local variation are fairly small compared to the base temperature, which appears to be hard coded.&lt;br /&gt;
&lt;br /&gt;
==== Drainage ====&lt;br /&gt;
&lt;br /&gt;
Changing drainage parameters will change the way water-affected biomes are formed. Low drainage will contribute to the formation of [[Lake|lakes]], [[River|rivers]], and [[Swamp|swamps]]. High drainage will cause water to sink into the ground rather than sit on the surface, which is important for forming hills.&lt;br /&gt;
&lt;br /&gt;
Lower drainage values have been reported to contribute to the formation of thicker soil layers though it is currently unknown exactly how other factors (such as elevation or perhaps rain) impact soil formation.&lt;br /&gt;
&lt;br /&gt;
==== Volcanism ====&lt;br /&gt;
&lt;br /&gt;
Volcanism controls the occurrence of Igneous [[Layer|Layers]], and the formation of volcanoes. For a volcano to form, a square must have a volcanism value of 100 so reducing the maximum from 100 will make volcanoes impossible. Raising the minimum will increase the rarity of non-igneous layers.&lt;br /&gt;
&lt;br /&gt;
Setting minimum to high value is not a good way to produce multiple volcanoes as you are likely to get a &amp;quot;Volcanism not evenly distributed&amp;quot; rejection. Instead use the Minimum Number of Volcanoes parameter and possibly adjust the weighted ranges for volcanism as described below.&lt;br /&gt;
&lt;br /&gt;
==== Savagery ====&lt;br /&gt;
&lt;br /&gt;
These parameters control the level of [[Surroundings#Savage|savagery]] on the map. Raising the minimum savagery too high may make it impossible for certain races to exist, and similarly lowering the maximum too far can make it impossible for certain creatures to exist. The largest chance of having unusable maps comes from too high of a savagery value.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:1:400:401:401]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 400&amp;lt;br/&amp;gt;Maximum of 400 required for mountain peaks.&amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:25:75:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: -1000 to 1000 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100&amp;lt;br/&amp;gt;Maximum of 100 required for volcanoes. &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Mesh Sizes and Weights ===&lt;br /&gt;
&lt;br /&gt;
These parameters make it possible to influence the number of squares in a particular range without making conditions outside of that range impossible. For example, you can make it possible for many more low elevation squares to exist without making it impossible for high elevations to form. Changing these parameters is often preferable to simply changing the min/max values.&lt;br /&gt;
&lt;br /&gt;
The basic steps of applying weighted ranges are as follows:&lt;br /&gt;
&lt;br /&gt;
# Create a grid with 2&amp;lt;sup&amp;gt;''MeshSize'' - 1&amp;lt;/sup&amp;gt; tiles in both X and Y direction.&lt;br /&gt;
# Set the intersection points of the grid lines to a random value according to the weighted ranges.&lt;br /&gt;
# Smooth out the area between the intersection points.&lt;br /&gt;
# Add noise according to the variance parameters.&lt;br /&gt;
&lt;br /&gt;
Where ''MeshSize'' is the raw parameter value found in the world_gen.txt. See the image on the right for an example.&lt;br /&gt;
&lt;br /&gt;
[[File:World_map-large-32x32-elevation-mesh.png|thumb|300px|A large world generated with an Elevation Mesh Size of 32x32 and range weights set to 1:0:0:0:1 (i.e., only extreme high and low elevations). Note how the grid intersections are either set very high or very low and the space between them is smoothed out.]]&lt;br /&gt;
&lt;br /&gt;
==== Mesh Size ====&lt;br /&gt;
&lt;br /&gt;
Mesh size determines how many grid tiles there will be. Setting this to Ignore will cause the weighted range settings to be ignored for that terrain characteristic. As an example, setting it to 2x2 means the grid will be 2 times 2 tiles large and there will be 3 times 3 for a total of 9 intersection points. On a pocket world this means one grid tile will be 8 * 8 world tiles large whereas on a large world one grid tile will be 128 * 128 world tiles. Note that the highest possible value for a given world size will always make the grid tiles 8 * 8 world tiles large.&lt;br /&gt;
&lt;br /&gt;
==== Weighted Ranges ====&lt;br /&gt;
&lt;br /&gt;
If mesh size is set to something other than Ignore, these weights will be applied at the granularity of the selected mesh size for purposes of generating random values in each range. This allows random number generation to be non-linear for the given terrain characteristic.&lt;br /&gt;
&lt;br /&gt;
For example, if the Elevation Weighted Range parameters were set to (starting with the 0-20 range) 60:10:10:10:10 (these values do not have to add up to any particular number) and elevation min and max are set to 1 and 400 respectively then about 60% of the grid line intersection points (on average) will be set to an elevation in the range of 1-80 (0% to 20%), and the other ranges will be represented by around 10% of the intersection points each. The exact distribution is still left up to chance though ''on average'' it will be close to this specification.&lt;br /&gt;
&lt;br /&gt;
Weighted ranges do not make rejection checks, although they can be responsible for many rejections if you neglect to adjust or disable some of the [[#Minimum Number of Mid/Low/High Characteristic Squares|Minimum Number of Mid/Low/High Characteristic Squares]] for example.&lt;br /&gt;
&lt;br /&gt;
==== Interaction between Mesh Size and Variance ====&lt;br /&gt;
&lt;br /&gt;
The end result can vary greatly depending on how the corresponding [[#X_and_Y_Variance|X and Y Variance]] parameters are set. First of all, if the variance is too large the noise it adds can completely negate the effect of the weighted ranges. For instance, with a 2x2 mesh, the default variance parameters are high enough that usually the mesh grid can hardly be recognized. How strong the variance's effect is is also dependent on the mesh size. Having a larger mesh size (i.e. smaller grid tiles) means the variance also has to be higher for a visible effect. For instance, with a variance of 400, the effects are clearly visible with a 2x2 mesh and barely visible at all with a 8x8 mesh. Note that this effect is directly dependent on the mesh size and not, as one might expect on the actual size of the grid tiles. This means, that a large world with a 2x2 mesh will look essentially the same as a pocket world with a 2x2 mesh, only stretched to 256 times the size.&lt;br /&gt;
&lt;br /&gt;
Also see this [http://www.bay12forums.com/smf/index.php?topic=139916.0 forum post] for more details.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:2:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;6&amp;quot; | Valid mesh values:&lt;br /&gt;
&lt;br /&gt;
1 = Ignore&lt;br /&gt;
&lt;br /&gt;
2 = 2x2&lt;br /&gt;
&lt;br /&gt;
3 = 4x4&lt;br /&gt;
&lt;br /&gt;
4 = 8x8&lt;br /&gt;
&lt;br /&gt;
5 = 16x16&lt;br /&gt;
&lt;br /&gt;
6 = 32x32&lt;br /&gt;
&lt;br /&gt;
(limited by world size) &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:3:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:4:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:5:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Poles ===&lt;br /&gt;
&lt;br /&gt;
With this you can influence how polar regions are added. The poles can be on the north or south edge and the equator will be on the opposite edge or in the middle if there are two poles.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:&amp;lt;placement&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:NORTH]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Viable options: NONE, NORTH_OR_SOUTH, NORTH_AND_OR_SOUTH, NORTH, SOUTH, NORTH_AND_SOUTH&lt;br /&gt;
|}&lt;br /&gt;
=== Minimum Mountain Peak Number ===&lt;br /&gt;
&lt;br /&gt;
This will cause the world to be rejected if fewer than this many peaks (based on elevation) are present on the map. Elevations of 400 must be possible for mountain peaks to occur. If set to zero then worlds will not be rejected based on number of peaks.&lt;br /&gt;
&lt;br /&gt;
You may need to adjust elevation parameters, such as the highest weighted range, in order to get the desired number of elevation 400 squares needed for larger numbers of peaks. Like volcanoes, mountain peaks can make embark zones more interesting but other than that they don't appear to &amp;quot;do&amp;quot; anything special. Reportedly they do increase the highest Z-level above ground in all embark zones in the same region even if the selected embark zone does not include the peak.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Elevations of 400 must occur for peaks to form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Partial Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans touching an edge of the map. If set to zero then worlds will not be rejected based on this criterion. Setting both this parameter and Minimum Complete Edge Oceans to values that total more than 4 when added together may cause all worlds to be rejected as you can't have both a partial and complete edge ocean on a given edge.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Complete Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans which completely cover an edge of the map. Since a square map only has 4 edges, the maximum value possible is 4. If set to zero then worlds will not be rejected based on this criterion but still might end up with complete edge oceans by chance.&lt;br /&gt;
&lt;br /&gt;
Note that the ability for this many edge oceans to exist will be limited by elevation. Therefore to actually create large oceans you will probably need to change things like the Elevation Mesh Size and Weighted Ranges to increase the number and distribution of very low elevation squares on the map.&lt;br /&gt;
&lt;br /&gt;
Given appropriate weight, range, and variance values for things like elevation, a setting of:&lt;br /&gt;
*1 results in a world that seems like a chunk of coastline. One edge of the map will be completely underwater and there will be ocean taking up much of the map on that side.  Think the east or west coast of the United States, the north coast of Canada, or southern Europe.  If your edge ocean happens to pick your world's frozen side most of it will be glacier.&lt;br /&gt;
*2 results in another coastline along with the first one.  The map could end up looking something like Panama if the oceans pick opposite sides of the map.&lt;br /&gt;
*3 results in a peninsula, like Florida in the US.  There will be oceans surrounding 3 sides of the map, and land touching only one side of the map.&lt;br /&gt;
*4 results in one or more island(s) depending on things like elevation variance and weights. Regardless of whether you get one island or multiple islands, the entire map will be surrounded by water.&lt;br /&gt;
Unfortunately there's no easy way to control which oceans end up on which edges, except perhaps setting X and Y variance to different values.&lt;br /&gt;
&lt;br /&gt;
Edge oceans will take up part of the other edges too.  For example a full edge ocean on the east side will have part of the north and south sides underwater, but that does ''not'' add to the ''partial'' edge oceans count.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Volcano Number ===&lt;br /&gt;
&lt;br /&gt;
Worlds with less than this number of volcanoes will be rejected. Note that this will not just create this many volcanoes at random; there must be at least this many squares with a Volcanism of 100. Therefore adjusting Weighted Range for 80-100 to some higher value is recommended if you want to facilitate a large number of volcanoes. In addition, Maximum Volcanism must be set to 100 or squares with volcanism of 100 will be impossible making volcanoes impossible.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:15]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Volcanoes require a volcanism of 100 to occur.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Mineral Scarcity ===&lt;br /&gt;
&lt;br /&gt;
Controls the frequency at which minerals occur. Setting this value lower will increase the amount of ore present on a map, the number of different types of ore, and the number/types of gems. The default value will result in a maximum of 2-4 metal ores per map (assuming you choose a good embark location) which may be limiting until the economy is fully implemented and desired metals can be traded for.&lt;br /&gt;
&lt;br /&gt;
The options &amp;quot;Very Rare&amp;quot;, &amp;quot;Rare&amp;quot;, &amp;quot;Sparse&amp;quot;, &amp;quot;Frequent&amp;quot;, and &amp;quot;Everywhere&amp;quot; in the [[World_generation#Basic_World_Generation_Menu|basic world generation menu]] use the values 50000, 10000, 2500, 500 and 100 respectively.&lt;br /&gt;
&lt;br /&gt;
According to [http://www.bay12forums.com/smf/index.php?topic=79018.msg2063804#msg2063804 research] by Shandra in v0.31.25, this is the relationship between the value of this setting and the approximate number of gems and ore:&lt;br /&gt;
&lt;br /&gt;
[[File:MineralSetting_v25_limit10k.png]]&lt;br /&gt;
&lt;br /&gt;
This is for the same 8x8 embark region in a world which is otherwise the same except for the mineral scarcity parameter (although most of the detailed information comes from experiments with previous versions).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:2500]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 100 to 100,000&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
'''Note:''' as of v0.34, low mineral scarcity settings do not cause rejections.&lt;br /&gt;
&lt;br /&gt;
=== Max Megabeasts Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of megabeasts placed at the beginning of history. Megabeasts are hydras, bronze colossuses, rocs and dragons which are all placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415177#msg3415177 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. &lt;br /&gt;
&lt;br /&gt;
Increasing this value can lead to early extinction of civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:75]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Megabeasts count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Max Semi-Megabeast Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of semi-megabeasts placed at the beginning of history. Semi-megabeasts are giants, ettins, minotaurs, and cyclopes, which are placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415188#msg3415188 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:150]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Semimegabeasts do not count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Titan Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== Number ====&lt;br /&gt;
&lt;br /&gt;
This controls the number of titans that exist at the beginning of history[http://www.bay12forums.com/smf/index.php?topic=112465.msg3415203#msg3415203 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. The number of forgotten beasts is unaffected by this parameter [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415155#msg3415155 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:33]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Titans count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Attack Population Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once at least this many dwarves inhabit it, regardless of whether any other attack criteria have been met. This number defaults to 80 which isn't usually too difficult to deal with.&lt;br /&gt;
&lt;br /&gt;
==== Exported Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once you have exported at least this many [[Currency|dwarfbucks]] worth of merchandise, regardless of whether or not any other criteria have been met. This parameter defaults to None (disabled).&lt;br /&gt;
&lt;br /&gt;
==== Created Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once the fort's total wealth has reached this many [[Currency|dwarfbucks]] in value. This happens regardless of whether any of the other criteria, such as population, have been met; therefore, even with 1 dwarf, a fort could be attacked if the fort were worth at least this value.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:&amp;lt;population&amp;gt;:&amp;lt;exp wealth&amp;gt;:&amp;lt;created wealth&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:80:0:100000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = None (disabled). Only one requirement must be met for an attack.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Demon Types ===&lt;br /&gt;
&lt;br /&gt;
[[Demon|Demons]] are similar to titans and forgotten beasts in that they are procedurally generated, but unlike titans they are not unique. Thus many different types of demons will exist in the world but there will be many members of each type. Setting this to zero means no demons will exist, limiting the amount of fun you can have. Thanks to [[Underworld spire|certain fun things]], no demons also means no goblins.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:52]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Night Troll Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Night troll|night trolls]] that will exist in the world. These are also procedurally generated. Setting this to zero means that the world will have no night trolls.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:77]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Bogeyman Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Bogeyman|bogeyman]] forms that will exist in the world. Bogeyman are procedurally generated, though their forms do not vary by much. Setting this to zero, means that the world will have no bogeyman. Additionally setting this to zero will not allow custom bogeymen to appear in the world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:27]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Vampire Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Vampire|vampires]] that will exist in the world. Although they too are generated at the start of a new world, they generally no different from one another, with the biggest difference being what stat bonuses their vampirism gives {{verify}}. Setting this to zero means no vampires will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:72]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Werebeast Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Werebeast|werebeasts]] that can exist in the world. It is common for werebeasts, unlike vampires, to assume many different forms and variations, the most well known of these amount as different species of animal beasts. From lizards, to wolves, to maybe even bears. Setting this to zero means no werebeasts will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:58]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Secret Types ===&lt;br /&gt;
&lt;br /&gt;
The number of secrets that exist in the world. Currently, all secrets are secrets of life and death, and the ones holding these secrets are necromancers. Setting this to zero means that no [[necromancer]]s will appear.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:44]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Regional Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of interactions that can be caused in regions, which may incorporate evil rain and cloud types. Currently, only evil region interactions are generated this way.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Disturbance Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Mummy|disturbed dead]] {{verify}} that can exist in the world. Setting this to zero, while being as pointless as is, (since you're never forced to enter a tomb anyway), will most likely prevent any toilet roll spooks from appearing, but it may or may not also prevent the existence of the pyramids which house them too.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:10]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Cloud Types ===&lt;br /&gt;
&lt;br /&gt;
This number specifies [[Weather#Evil weather|the total amount of various face-melting, eye-boiling, and zombifyingly-fun]] clouds of pure evil may appear in your world. Setting this to zero means you no longer will ever have to deal with encroaching dust walls of doom in that world. I'd keep this value low...&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:45]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Rain Types ===&lt;br /&gt;
&lt;br /&gt;
The lesser of a relatively large group of evils... evil rain. This number states how many different types of green-ooze drenchers, disconcerting blood-showers, and sickly yellow slime-baths can occur in your world. Compared to evil clouds though, this one hardly is worth stressing out about, usually.... Setting this to zero means the only semi-solid to fully liquid liquids to fall from the sky will be pure H2O. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:352]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Generate Divine Materials ===&lt;br /&gt;
&lt;br /&gt;
This turns the generation of [[Divine_metal|divine metals]] on or off. It does not influence the creation of vaults.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Desired Good/Evil Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These values change the amount of [[Surroundings#Good|good or evil]] tiles on the map, depending on the size of the region they are being considered for.&lt;br /&gt;
&lt;br /&gt;
The exact size of small, medium, and large are: small is 1-24, medium is 25-99, and large is 100+, for any map size. The counts used here will always be restricted to regions of the given size no matter how large the number. Also, the count is more of a goal than a minimum or maximum. As a result you can end up with many more or many fewer than the requested number of squares in some situations.&lt;br /&gt;
&lt;br /&gt;
In particular, if you have something like a case where only 3 large regions exists in a world, and you request &amp;quot;1 evil square&amp;quot; in large regions, you will end up with one of the large regions being ''entirely evil''. So any non-zero value in one of these settings essentially means &amp;quot;force at least one region of this size to be all good/evil.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;evilness&amp;quot; of evil biomes is also impacted by savagery.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations can not exist in good and/or evil squares, so too many of one or the other may limit the size of certain types of civilizations. Dwarves, for example, need non-aligned biomes. Creating too many evil biomes seems to lead to the danger of an early extincion of many civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Set count to zero to disable for that region size.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Biome Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These numbers control whether or not a world will be rejected based on a lack of different [[biome|biomes]]. Raising these numbers will '''not''' automatically generate the given number of squares of the given biome! For a biome to exist, certain conditions like elevation and rainfall must exist.&lt;br /&gt;
&lt;br /&gt;
These parameters simply filter out worlds that (for example) randomly fail to have enough high elevation squares to support a given number of mountains, etc. Some settings may cause worlds to always be rejected. For example, if for some reason the maximum elevation parameter is set to a value below what will support mountain biomes, it will be impossible to satisfy a non-zero requirement for mountain squares. The same principle goes for other conditions and biomes such as low elevations and oceans, etc.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations require different biomes to exist (such as dwarves and mountains), so eliminating certain biomes will make it impossible for certain civilizations to form.&lt;br /&gt;
&lt;br /&gt;
These parameters often result in infinite world rejection problems. See [[World rejection]] for information on solving problems related to worlds always being rejected due to one or more of these parameters.&lt;br /&gt;
&lt;br /&gt;
0 means no minimum for rejection. Setting to 0 does not guarantee 0 squares of that biome.&lt;br /&gt;
&lt;br /&gt;
==== Biome Type Requirement Table ====&lt;br /&gt;
&lt;br /&gt;
Terrain requirements for various biomes are described below.{{Verify}} Note that some of the exact ranges are unknown.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Biome&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;  | Terrain Requirement&lt;br /&gt;
|-&lt;br /&gt;
! Elevation&lt;br /&gt;
! Rainfall&lt;br /&gt;
! Temperature&lt;br /&gt;
! Drainage&lt;br /&gt;
|-&lt;br /&gt;
| Swamp/Marsh&lt;br /&gt;
| 100-299&lt;br /&gt;
| 33-100&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-32&lt;br /&gt;
|-&lt;br /&gt;
| Desert/Badland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-9&lt;br /&gt;
| non-freezing&lt;br /&gt;
| note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Forest&lt;br /&gt;
| 100-299&lt;br /&gt;
| 66-100&lt;br /&gt;
| non-freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|-&lt;br /&gt;
| Mountains&lt;br /&gt;
| 300-400&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Ocean&lt;br /&gt;
| 0-99&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Glacier&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 80(?)-100&lt;br /&gt;
|-&lt;br /&gt;
| Tundra&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Grassland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Hills&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|}&lt;br /&gt;
note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; drainage: 00-32 sand desert, 33-49 rocky wasteland, 50-65 rocky wasteland but different characters/appearance, 66-100 badlands&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Square Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of squares of the given biome that must exist before things like erosion take place.&lt;br /&gt;
&lt;br /&gt;
One thing to keep in mind is the maximum number of squares on a map of a given size. If the total number of squares on a map is lower than the sum of all square count parameters then you will get infinite world rejection.&lt;br /&gt;
&lt;br /&gt;
To determine the number of squares on a map, just multiply the dimensions. In practice these parameters will need to sum to lower than the maximum because some space is needed for &amp;quot;slack&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Map Size&lt;br /&gt;
! Number of Squares&lt;br /&gt;
|-&lt;br /&gt;
| 17x17&lt;br /&gt;
| 289&lt;br /&gt;
|-&lt;br /&gt;
| 33x33&lt;br /&gt;
| 1089&lt;br /&gt;
|-&lt;br /&gt;
| 65x65&lt;br /&gt;
| 4225&lt;br /&gt;
|-&lt;br /&gt;
| 129x129&lt;br /&gt;
| 16614&lt;br /&gt;
|-&lt;br /&gt;
| 257x257&lt;br /&gt;
| 66049&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Region Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of regions of contiguous biome squares that must exist before other processes such as erosion take place.&lt;br /&gt;
&lt;br /&gt;
==== Minimum Final Region Count ====&lt;br /&gt;
&lt;br /&gt;
This many regions of the given biome must exist after erosion and similar phases of generation have been completed.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:4128:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:8256:9:9]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:8256:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
	&lt;br /&gt;
=== Erosion Cycle Count ===&lt;br /&gt;
&lt;br /&gt;
Tells the world-generator how long the world has to erode its tall peaks down to mountainsides during the 'running rivers...' stage of world creation. The higher this number, the less jagged the world will be, and the more wide the major rivers will be. If you use the maximum number, your mountains will dissolve before your eyes into plains which can lead to rejections if there aren't enough mountains to use for river start points and dwarven civilization origin points. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:250]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum/Desired River Start Locations ===&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of riverheads that must exist before and after erosion takes place. Worlds will be rejected if they fail to meet these numbers. As with minimum biome counts, raising this number doesn't automatically create this many riverheads. Other conditions like terrain and rainfall must exist for rivers to form.&lt;br /&gt;
&lt;br /&gt;
Extremely high pre-erosion values speed erosion greatly, while low post erosion values are useful for limiting rejects due to lack of river origin points. One can try the 800 value to get more lakes.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:&amp;lt;min pre-erosion&amp;gt;:&amp;lt;des post-erosion&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:200:400]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 800&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Periodically Erode Extreme Cliffs ===&lt;br /&gt;
&lt;br /&gt;
If enabled, makes every impassable rock wall into a series of ramps. Some prefer to pump up erosion to about 250, and turn the &amp;quot;Desired pre-erosion river count&amp;quot; to 0 for good erosion and no extra canyons.&lt;br /&gt;
&lt;br /&gt;
Normally this is set to Yes (1).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Do Orographic Precipitation and Rain Shadows ===&lt;br /&gt;
&lt;br /&gt;
Toggle that allows terrain height to affect rainfall. For example, moist air coming from the ocean blows over the land. As the terrain gets higher, it forces the moist air up, causing it to rain on the seaward side of a mountain. Eventually, all the rain has fallen if the mountain is tall enough. So, when the breeze goes over the top, there's no moisture left to fall on the other side, creating a rain-shadow. In the current version regions where drainage is above 50 will also create rain shadows, regardless of the underlying biome and elevation.{{cite forum|140685/5484064}} The rain shadows will always be created as if the wind is blowing from west to east.&lt;br /&gt;
&lt;br /&gt;
Turning this on should create a tendency for more extreme rainfall in regions, creating more forests, deserts, marshlands, and grasslands. Also note that it can create rainfall outside of min-max rainfall settings, so even in a world with a 0 max rainfall you may get rainfall biomes. Turning it off should result in more controllable, less complex rainfall conditions based on rainfall parameters as it adds a random element which can distort or otherwise mess up the climates on a pregenerated map.&lt;br /&gt;
&lt;br /&gt;
This should be disabled if you're importing a map or using a preset map file that has weather. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Maximum Number of Subregions ===&lt;br /&gt;
&lt;br /&gt;
This is the number of separate biomes (the flashing regions you see on embark when you hit F1, F2, etc. when there's more than one biome on the embark location) that are allowed to exist on the entire map.&lt;br /&gt;
&lt;br /&gt;
Setting this to very low values will result in numerous rejections depending on [[#X and Y Variance|variance parameters]]. If variance values are set to high numbers, many small biomes will be created causing rejection if this parameter value is not increased beyond the default.&lt;br /&gt;
&lt;br /&gt;
Increasing the value of this tag is often a must when generating &amp;quot;patchwork&amp;quot; worlds with lots of biome variance, but simply increasing it without increasing variance parameters will not guarantee more biomes.&lt;br /&gt;
&lt;br /&gt;
It is also interesting to note that the maximum subregions is 5000 which is more than the total number of squares for a pocket or small map. However for a medium or large map (16641 or 66049 squares) it quickly becomes a mere fraction of the total number of possible subregions. In fact it would be quite easy on a large map to end up with far too many subregions and get endless rejections of this type.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:2750]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 1 to 5000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cavern Parameters ===&lt;br /&gt;
[[Caverns]] are the hollow areas underground which dwarves tend to encounter when they're digging around.&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layer Number ====&lt;br /&gt;
&lt;br /&gt;
This parameter determines how many cavern systems will be generated, not including the Magma layer or the Bottom layer.  Defaults to three. Setting it to lower values could help FPS.&lt;br /&gt;
&lt;br /&gt;
'''Warning:'''&lt;br /&gt;
*Disabling caverns by setting this to 0 will make it impossible to grow any underground plants, as none will exist for your civilization to cultivate. (Underground plants will not be available on embark.)&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:3]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layout Parameters ====&lt;br /&gt;
&lt;br /&gt;
Open caverns and dense passageways are not mutually exclusive. When both are raised, bizarre results can occur, such as layers showing a combination of open caverns, a cluster of network passages, and natural walls sprinkling the inside of an otherwise open cavern. [http://www.bay12forums.com/smf/index.php?topic=76355.msg1936859#msg1936859 Reference]&lt;br /&gt;
&lt;br /&gt;
If you want the largest open spaces possible, then decrease the density and increase the openness. If you want a labyrinth of passageways, lower the openness and raise the passage density.&lt;br /&gt;
&lt;br /&gt;
Another interesting note about the cavern layers is that the seed and number of demon types affect the layout of the caverns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200 heights=200 perrow=2&amp;gt;&lt;br /&gt;
File:Open00Density100.jpg|Cavern slice with Openness of 0 and Density of 100&lt;br /&gt;
File:Open100Density00.jpg|Cavern slice with Openness of 100 and Density of 0&lt;br /&gt;
File:Open100Density100.jpg|Cavern slice with Openness of 100 and Density of 100&lt;br /&gt;
File:Open50Density50.jpg|Cavern slice with Openness of 50 and Density of 50&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Layer Openness Min/Max =====&lt;br /&gt;
&lt;br /&gt;
Dictates the size of cavern passages. When Passage Density (see below) is set to minimum (0), caverns will be open expanses. Raising the maximum will increase the size of the caverns.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Layer Passage Density Min/Max =====&lt;br /&gt;
&lt;br /&gt;
This determines how many passages form the cavern. If openness (see above) is set to minimum and density increased then you will get a maze like network of small criss-crossing passages. Raising the values further increases the number of the maze-like passages.&lt;br /&gt;
&lt;br /&gt;
Caverns will be large, open spaces at 0, and comprised of many small vertical shafts of rock at 100. Setting both values to be the same results in a uniform look for the caverns.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100 &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See [http://www.bay12forums.com/smf/index.php?topic=76355.0 this forum thread] for more information on openness and density including many more images.&lt;br /&gt;
&lt;br /&gt;
===== Layer Water min\max =====&lt;br /&gt;
&lt;br /&gt;
Determines how many caverns will have water at the bottom.  Note that, even at 100, there will be some amount of ground in caverns, but each cavern 'bubble' will contain some amount of water.&lt;br /&gt;
&lt;br /&gt;
At 0, there will be no water in your caverns.  This may impact future underground plant growth, although maps will still start with underground flora.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Magma Layer ====&lt;br /&gt;
&lt;br /&gt;
This parameter controls whether the [[magma sea]] exists.&lt;br /&gt;
&lt;br /&gt;
Setting 1/Yes causes the magma layer to exist, value 0/No prevents it. Appears not have impact on volcanoes, nor volcanism, so even if 0/No there will still be embark locations with magma. If a [[volcano]] exists, it appears to always tap the magma sea, but the magma sea will not be revealed by revealing the volcano.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Bottom Layer ====&lt;br /&gt;
&lt;br /&gt;
Determines if the space below the magma sea exists. If Yes the &amp;quot;HFS&amp;quot; layer is always present. Normally you want to leave this set to Yes for maximum fun.&lt;br /&gt;
&lt;br /&gt;
If enabled, this will force the magma layer above it. (Unknown whether this has any impact on occurrence of HFS &amp;quot;temple&amp;quot;.){{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Z Levels (Depth) Settings ===&lt;br /&gt;
&lt;br /&gt;
These parameters control the &amp;quot;thickness&amp;quot; of various &amp;quot;layers&amp;quot; on the map. Note that a &amp;quot;layer&amp;quot; in this case does not refer to one Z-level, but refers to a number of related Z-levels such as &amp;quot;levels above ground&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following table assumes that you have 3 cavern layers.  The Levels Above Layer settings control how many Z-Levels are above each layer.  A layer may itself consist of multiple Z-Levels (and almost always does).&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-style=&amp;quot;background:#F2F2F2;text-align:center;&amp;quot;&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;120&amp;quot;|Setting Name&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;200&amp;quot;|Token&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Ground&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_GROUND:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| The number of Z-Levels of air above the highest surface level.&amp;lt;br /&amp;gt;Has no impact on how many Z-levels deep the surface layer is.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above layer 1&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_1:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of stone above the first cavern layer.  Making this higher will guarantee ''at least'' this many levels to build your fortress, but will have no impact on how many z-levels thick the surface layer is.  Also, the top of a cavern may be higher than the rest of a cavern, so in practice there will be more &amp;quot;solid&amp;quot; levels than this above the cavern.&lt;br /&gt;
As for version 0.31.25 this setting is inaccurate. The actual number of z-levels may vary in a range of approx. ±5, which may result in non-existence of any solid z-levels between a surface layer and first cavern layer.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 2&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_2:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of second cavern and very bottom of first cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 3&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_3:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of third cavern and very bottom of second cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 4&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_4:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of earth between very highest magma and very bottom of third cavern.&amp;lt;br /&amp;gt;Spoiler Hidden (select invisible text to read): &amp;lt;span style='color:#eee;'&amp;gt;Making this high will give a large area for HFS veins, so that it never touches caverns, giving more to mine '''if''' it was impacting the cavern previously.&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 5&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_5:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Uncertain.  May control the number of levels of &amp;quot;Semi Molten Rock&amp;quot; between HFS and Magma, may control number of levels of magma, may impact both.&amp;lt;br /&amp;gt;In experimentation, the overall depth of all magma sea and semi-molten rock levels appears to increase, but not consistent enough to say for certain.&amp;lt;br /&amp;gt;Only valid if Magma Layer present.&amp;lt;br /&amp;gt;Spoiler Hidden:&amp;lt;span style='color:#eee;'&amp;gt;Often the HFS vein will only extend as high as the highest magma, making this the only guaranteed way to increase amount of HFS to mine, but unfortunately also creating enormous useless semi-molten z-levels&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| At Bottom&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_AT_BOTTOM:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Appears to be number of levels of HFS chamber.&amp;lt;br /&amp;gt;Only valid if Bottom Layer present.&amp;lt;br /&amp;gt;Often has no impact.&amp;lt;br /&amp;gt;Values larger than default results in strange things.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some implications:&lt;br /&gt;
* The number of surface layers (e.g. soil), at this time, can not be controlled.  For example, on a map with 1 layer of Peat, then a layer of Silt, then a layer of Obsidian, there is no control to let you increase either one to be, say, 20 z-levels. (though you may get lucky with the Obsidian).&lt;br /&gt;
* There can be multiple stone layers between the cavern and the surface.  So increasing Levels Above Layer 1 may give you more Conglomerate, or more Granite, and you have no control over which stone layer spans those Z-Levels.&lt;br /&gt;
* The layers shown on embark span across the cavern layers in an unknown and inconsistent way.  Sometimes those 10 different layers of stone are evenly distributed over your 400 z-level deep map, sometimes the first 9 get 1 z-level each and the last gets the other 391 levels.  No way to control found yet.&lt;br /&gt;
* The HFS temple, if present, will always extend into the rock layers, and appears to always make contact with the bottom cave.  Large values for levels above layer 5 and layer 4 can result in enormous temples, but the number of levels at the top (the part with undead) appears to be unaffected.&lt;br /&gt;
* Unconfirmed whether number of levels between caverns has any impact on cavern height.  There will be connecting ramps and/or shafts between cavern layers no matter how many levels are between them.&lt;br /&gt;
* '''Very Important''': These values appear to apply across a whole 16x16 Region, not just embark areas.  That means that if a 16x16 region is completely flat, but has one tall mountain in one far corner, even if you set Levels Above Ground low (e.g. 2 z-levels) you still have all the empty air of the highest mountain in every embark tile (e.g. 200 z-levels).  Also can happen to the semi-molten layer, and can lead to unexpected behavior.&lt;br /&gt;
* Very large values can cause strange things to happen.  Even more true for small values.&lt;br /&gt;
&lt;br /&gt;
=== Cave Parameters ===&lt;br /&gt;
&lt;br /&gt;
Caves are sort of like caverns except that they have a passage to the surface and are generally much smaller. Caves can connect to caverns if they are sufficiently deep.&lt;br /&gt;
&lt;br /&gt;
==== Minimum/Maximum Natural Cave Size ====&lt;br /&gt;
&lt;br /&gt;
These parameters appear to control the length and depth of caves.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 1 to 500&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:25]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Number of (Non-)Mountain Caves ====&lt;br /&gt;
&lt;br /&gt;
The number of caves that will be generated. Lurking kobolds set up shop in caves and store stolen items here. A setting of 0 in both will stop kobold civilizations from appearing.  Special note: a cave is not a lair.  &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 800&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Make Caves Visible ====&lt;br /&gt;
&lt;br /&gt;
If set to no (default) then the location of caves will not be marked on the map. If set to yes, caves will appear on the map as {{Raw Tile|•|#808080|#00DD00}} symbols so that they may be sought out or avoided as desired.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Allow Init Options to Show Tunnels ===&lt;br /&gt;
&lt;br /&gt;
This parameter doesn't do anything.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:&amp;lt;0-2&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No&amp;lt;br/&amp;gt;1 = Only in Finder&amp;lt;br/&amp;gt;2 = Always&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Civilizations ===&lt;br /&gt;
&lt;br /&gt;
This number of civilizations will be placed on the map before history generation begins. These civilizations may later die out due to historical events. The five races are dwarf, elf, human, goblin, and kobold; they will be placed in equal numbers until the quota has been reached. If there is an odd number of civs (not divisible by 5), then the remainder is distributed randomly. Kobold civs require caves to be placed; if no caves exist, then kobolds are skipped and will not appear. This does not cause rejections [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415125#msg3415125 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
Note that a high value here can cause lots of map rejections, particularly on smaller maps as there simply isn't enough room or regions to put them all in.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:40]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 300&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Playable Civilization Required ===&lt;br /&gt;
&lt;br /&gt;
If this is set to yes (default) then worlds will be rejected if no civilization with [[Entity token|CIV_CONTROLLABLE]] can be placed. In an unmodded game, only the dwarves have this token.&lt;br /&gt;
&lt;br /&gt;
If set to no, the result may be a world that cannot be played in Fortress Mode.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Number of Mid/Low/High Characteristic Squares ===&lt;br /&gt;
&lt;br /&gt;
Sets the minimum possible number of squares of certain ranges of each of the region qualities, such as elevation, rain, drainage, volcanism, savagery, and temperature. These need to be changed to reflect your regional meshes and weights. These are responsible for a HUGE number of map rejections. These values can all be set to 0 for much fewer map rejections, particularly in the case of more wacky, non-standard maps. &lt;br /&gt;
&lt;br /&gt;
These values will cause worlds to be rejected unless at least the given number of squares of the given type are randomly generated. Setting these values too high could result in worlds always being rejected if other parameters such as the maximum/minimums for elevation, etc., don't allow enough of those squares to get generated.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;5&amp;quot; | Minimum number of squares that must have low, medium, and high amounts of the given attribute.&amp;lt;br/&amp;gt;&lt;br /&gt;
0 = No minimum&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World rejection==&lt;br /&gt;
&lt;br /&gt;
:''Main article [[World rejection]]''&lt;br /&gt;
&lt;br /&gt;
If you are having the common problem of your generated worlds always being rejected by the world generator, see [[v0.31:World rejection|Solving World Rejection Problems (v0.31 page)]] as it contains many detailed suggestions on how to troubleshoot and solve these issues.&lt;br /&gt;
&lt;br /&gt;
== Default Worldgen Parameters ==&lt;br /&gt;
&lt;br /&gt;
There is no single default for each parameter. Several advanced world generation profiles come with the game by default. See [[world_gen.txt|Default world_gen.txt]] to take a look at this file.&lt;br /&gt;
&lt;br /&gt;
== Parameter Set Examples ==&lt;br /&gt;
&lt;br /&gt;
If you're trying to do something specific then the [[Worldgen examples|Worldgen examples]] might be helpful. These are complete parameter sets that can be copied directly into your ''world_gen.txt'' file and customized as desired.&lt;br /&gt;
If they have nothing for you try [[Worldgen Tricks|Worldgen Tricks]], for known tricks and tips on making a world just right for you.&lt;br /&gt;
&lt;br /&gt;
For many many more examples see:&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=101280 DF2012 (v0.34) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=140180 DF2014 (v0.40) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
&lt;br /&gt;
{{World}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223684</id>
		<title>Magma-safe</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223684"/>
		<updated>2016-02-25T10:23:47Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: The job in the workshop doesn't need to be &amp;quot;active&amp;quot;, merely listed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|01:12, 4 February 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{Material properties}}&lt;br /&gt;
'''Magma-safe materials''' are materials which will not melt, burn, evaporate, or otherwise take damage when in close contact with [[magma]]. Most frequently, this comes into play when using [[floodgate]]s operated by [[mechanism]]s, or when operating a [[screw pump|magma pump]].&lt;br /&gt;
&lt;br /&gt;
For [[reaction]]s and custom buildings using the [MAGMA_BUILD_SAFE] token, only a material which is solid and stable at the temperature {{ct|12000}} (i.e. MELTING_POINT/BOILING_POINT/IGNITE_POINT/HEATDAM_POINT greater than 12000 and COLDDAM_POINT less than 12000) is considered magma-safe. &lt;br /&gt;
&lt;br /&gt;
In order to construct mechanisms, blocks or other pump components from a magma-safe material, you have several choices:&lt;br /&gt;
# You can specify a magma-safe rock for your [[mechanisms]] and other components at the workshops by highlighting a listed job and selecting {{k|d}}etail.{{version|0.42.06}}&lt;br /&gt;
# Build your mechanisms out of [[iron]] or [[steel]].&lt;br /&gt;
# Build your pump components out of iron, steel, [[glass]], or [[nether-cap]].&lt;br /&gt;
# Place a [[stockpile]] with the desired stones around your [[mechanic's workshop]] and set it to &amp;quot;Give To a Pile/Workshop&amp;quot;.&lt;br /&gt;
# Use a [[burrow]] that contains only the workshop and the desired materials.&lt;br /&gt;
# Simply ensure that the desired materials are the closest available to your worker. This does not always work, but is usually good enough if you request several jobs, hoping that at least one uses the correct material.&lt;br /&gt;
&lt;br /&gt;
When linking a trigger to an object, the ''first'' mechanism selected is attached to the object, and the ''second'' is attached to the trigger.  Unless the trigger itself will be submerged in magma (as could be the case with a [[pressure plate]]), only the first mechanism (attached to the object that will be submerged) needs to be magma-safe. If you do not have any magma-safe stones available, you can also work around floodgate-based flow control by using [[screw pump]]s to pump the magma over [[wall]]-barriers, or using water to form [[obsidian]] to plug flows and channel through them to reopen them (necessity and invention and all that).&lt;br /&gt;
&lt;br /&gt;
This property is also relevant when choosing the appropriate method for disposing of unneeded items, which can impact [[FPS]] when in large numbers. Items made of non magma-safe materials can be simply dumped into magma, which is the easiest disposal method; however, magma-safe items will need more [[Dwarven atom smasher|drastic]] measures.&lt;br /&gt;
&lt;br /&gt;
Constructions that resist magma are:&lt;br /&gt;
&lt;br /&gt;
* Constructions ([[Wall]], [[Floor]], [[Ramp]], and [[Stairs]]) of any material can never melt or burn - there is nothing wrong with a [[wood]]en magma reservoir.  Natural (i.e. non-constructed) [[ice]] walls/floors/ramps/stairs will melt if exposed to sufficient heat.&lt;br /&gt;
* [[Fortification]]s will allow the passage of [[magma]]; however, if fortifications fill up to 7/7 depth, magma creatures will be able to swim freely through them.&lt;br /&gt;
* If not submerged (that is, not opened to let magma flow over/past/around them), [[door]]s, [[floodgate]]s, and raised [[bridge]]s (provided that there is no magma on the space the bridge would occupy when lowered) of non-magma-safe stone or metal are safe. So long as they are just in contact with magma, only acting as a passive &amp;quot;wall&amp;quot;, they are fine. If opened, they will melt.&lt;br /&gt;
** Raised drawbridges have a notable exception, in that allowing magma to flow over the center of the area that the bridge would normally occupy when lowered ''will'' cause the bridge's components to heat up and potentially melt.&lt;br /&gt;
* A [[pump]] made with magma-safe material for pipes, screws and blocks is fully magma-safe, and will not melt even when submerged in magma.  Pumps containing any item that is not magma safe will be destroyed after prolonged operation.&lt;br /&gt;
&lt;br /&gt;
== Game calculations ==&lt;br /&gt;
In the game, magma's temperature is exactly {{ct|12000}}.&lt;br /&gt;
&lt;br /&gt;
The chance of striking a magma-safe stone is roughly around 32%, not including the natural abundance of certain stone. It is important to note whether or not your fortress may already have access to magma-safe resources before attempting to deliberately find some.&lt;br /&gt;
&lt;br /&gt;
==Magma-safe material==&lt;br /&gt;
&lt;br /&gt;
The following materials will not melt when submerged in magma. Although true for any item/construction, it's worth specifically mentioning that this includes [[door]]s, [[floor hatch]]es, [[floodgate]]s, [[bridge]]s, [[screw pump]]s, [[pipe section]]s, and [[mechanism]]s.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Editors: For your convenience, a BLANK ROW TEMPLATE:&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type= |Matl= |Appear= |Temp= |Where= |Notes= }}&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{MS table head}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Alunite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=13,690°U (3722°F/2051°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(L)''', [[Kaolinite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Anhydrite]]|Appear={{Raw Tile|v|7:7:1}} {{Raw Tile|•|7:0}}|Temp=12,610°U (2642°F/1450°C)|Where=[[Gypsum]]'''(S)''', [[Satinspar]]'''(1)''', [[Alabaster]]'''(1)''', [[Selenite]]'''(1)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Basalt]]|Appear={{Raw Tile|#|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Bauxite]]|Appear={{Raw Tile|+|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,600°U (3632°F/2000°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Calcite]]|Appear={{Raw Tile|&amp;quot;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,902°U (2934°F/1613°C)|Where=[[Limestone]]'''(S)''', [[Marble]]'''(S)'''|Notes=[[flux]] stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chert]]|Appear={{Raw Tile|&amp;amp;#61;|6:7:0}} {{Raw Tile|•|6:0}}|Temp=13,101°U (3133°F/1723°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chromite]]|Appear={{Raw Tile|&amp;amp;#61;|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,645°U (3677°F/2026°C)|Where=[[Olivine]]'''(V)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Dolomite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=16,507°U (6539°F/3619°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone|Notes=[[Flux]], Highest melting point of any common stone.}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Gabbro]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous intrusive layer|Igneous intrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Ilmenite]]|Appear={{Raw Tile|.|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,457°U (2489°F/1365°C)|Where=[[Gabbro]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Kaolinite]]|Appear={{Raw Tile|&amp;amp;#61;|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,150°U (3182°F/1751°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red, [[porcelain]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Mica]]|Appear={{Raw Tile|v|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,295°U (2327°F/1275°C)|Where=All [[Metamorphic]]'''(L)''', [[Granite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Obsidian]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,600°U (3632°F/2001°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone|Notes=value 3, can be &amp;quot;[[obsidian farming|manufactured]]&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Olivine]]|Appear={{Raw Tile|%|2:7:0}} {{Raw Tile|•|2:0}}|Temp=13,168°U (3200°F/1761°C)|Where=[[Gabbro]]'''(L)'''|Notes=green}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Orthoclase]]|Appear={{Raw Tile|%|6:7:1}} {{Raw Tile|•|6:1}}|Temp=12,250°U (2282°F/1250°C)|Where=All [[Igneous intrusive layer|Igneous intrusive]]'''(L)''', All [[Metamorphic]]'''(L)'''|Notes=yellow}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Periclase]]|Appear={{Raw Tile|,|7:7:1}} {{Raw Tile|•|7:1}}|Temp=15,040°U (5072°F/2803°C)|Where=[[Marble]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Petrified wood]]|Appear={{Raw Tile|%|4:7:1}} {{Raw Tile|•|4:1}}|Temp=12,970°U (3002°F/1650°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(S)'''|Notes=bright red, least dense magma-safe non-economic stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Pitchblende]]|Appear={{Raw Tile|*|5:7:0}} {{Raw Tile|•|5:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Quartzite]]|Appear={{Raw Tile|-|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,970°U (3002°F/1650°C)|Where=[[Metamorphic]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Rutile]]|Appear={{Raw Tile|`|5:7:0}} {{Raw Tile|•|5:0}}|Temp=13,285°U (3214°F/1826°C)|Where=All [[Metamorphic]]'''(S)''', [[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Sandstone]]|Appear={{Raw Tile|#|6:7:0}} {{Raw Tile|•|6:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Talc]]|Appear={{Raw Tile|&amp;amp;#124;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,700°U (2732°F/1500°C)|Where=[[Dolomite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Adamantine]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|≡|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Notes=Highest value/utility material in game}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,768°U (2800°F/1538°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Nickel]]|Appear={{Raw Tile|X|7:3:0}} {{Raw Tile|≡|7:0}}|Temp=12,619°U (2651°F/1455°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Pig iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,106°U (2138°F/1170°C)|Notes=used in steel making process}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Platinum]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|≡|7:1}}|Temp=13,182°U (3214°F/1768°C)|Notes=High value metal}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Steel]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,718°U (2750°F/1510°C)|Notes=Armor/weapons}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Cassiterite]]|Appear={{Raw Tile|£|6:7:0}} {{Raw Tile|*|6:0}}|Temp=12,025°U (2057°F/1124°C)|Where=[[Granite]]'''(V)'''|Notes=Ore of [[tin]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Galena]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=12,005°U (2037°F/1113°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(V)''', All [[Metamorphic]]'''(V)''', [[Granite]]'''(V)''', [[Limestone]]'''(V)'''|Notes=Ore of [[lead]] and [[silver]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Hematite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|4:7:0}} {{Raw Tile|*|4:0}}|Temp=12,736°U (2768°F/1520°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(V)''', All [[Igneous extrusive layer|Igneous extrusive]]'''(V)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Magnetite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|~|0:7:1}} {{Raw Tile|*|0:1}}|Temp=12,768°U (2800°F/1538°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Native platinum]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=13,182°U (3214°F/1768°C)|Where=[[Olivine]]'''(V)''', [[Magnetite]]'''(V)''', [[Chromite]]'''(S)'''|Notes=Ore of [[platinum]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=''[[Sphalerite]]''&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|0:7:1}} {{Raw Tile|*|0:1}}|Temp=''12,133°U (2165°F/1185°C)''|Where=All [[Metamorphic]]'''(V)'''|Notes=Ore of [[zinc]]&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Wood|Matl=[[Nether-cap]]&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|♠|1:0:0}} {{Raw Tile|▬|1:0:0}}|Temp=N/A|Where=[[Cavern]] (depth 3)|Notes=Naturally cold&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Special|Matl=[[Raw adamantine]]|Appear={{Raw Tile|£|3:7:1}} {{Raw Tile|*|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Where=The depths|Notes=Ore of [[adamantine]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=Dragon scales actually cannot be tanned}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Green glass]]|Appear={{Raw Tile|X|2:2:1}} {{Raw Tile|■|2:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Clear glass]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|■|3:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Crystal glass]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|■|7:1}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
:1. Each stone is one of 16 [[color scheme|colors]] in the game.  Different un-mined stone of the same color have a different symbol to distinguish between them.  Once mined, the individual stones themselves can sometimes look identical if the color is the same. Use {{k|k}} to loo{{k|k}} at items or the terrain for specific information.&lt;br /&gt;
:2. '''°U''' = degrees in [[Main:Urist|Urist]], the measure of temperature within the Dwarf Fortress world. As far as is known, there is no functional difference between a material that melts at {{ct|12005}} or {{ct|55000}} &amp;amp;mdash; they are both equally &amp;quot;magma safe&amp;quot;.&lt;br /&gt;
:3. There are three iron ores in the game (four if you count [[Goblinite]]). Of these, only [[hematite]] and [[magnetite]] are magma safe.&lt;br /&gt;
:4. Sphalerite has ''no'' melting point, but ''sublimates'' at {{ct|12133}}. This still qualifies as being magma-safe.&lt;br /&gt;
:5. [[Nether-cap]] logs have a fixed temperature of {{ct|10000}}, rendering them fully magma safe, except that nether-cap products [[dump]]ed into magma are destroyed.&lt;br /&gt;
&lt;br /&gt;
{{Magma FAQ}}&lt;br /&gt;
{{Category|Physics}}&lt;br /&gt;
{{Category|Magma safe materials}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223472</id>
		<title>Magma-safe</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223472"/>
		<updated>2016-02-18T05:31:13Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Clarified that it is the &amp;quot;Detail&amp;quot; option and not &amp;quot;designate&amp;quot; for selecting specific materials.  The previous wording may have led to confusion.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|01:12, 4 February 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{Material properties}}&lt;br /&gt;
'''Magma-safe materials''' are materials which will not melt, burn, evaporate, or otherwise take damage when in close contact with [[magma]]. Most frequently, this comes into play when using [[floodgate]]s operated by [[mechanism]]s, or when operating a [[screw pump|magma pump]].&lt;br /&gt;
&lt;br /&gt;
For [[reaction]]s and custom buildings using the [MAGMA_BUILD_SAFE] token, only a material which is solid and stable at the temperature {{ct|12000}} (i.e. MELTING_POINT/BOILING_POINT/IGNITE_POINT/HEATDAM_POINT greater than 12000 and COLDDAM_POINT less than 12000) is considered magma-safe. &lt;br /&gt;
&lt;br /&gt;
In order to construct mechanisms, blocks or other pump components from a magma-safe material, you have several choices:&lt;br /&gt;
# You can specify a magma-safe rock for your [[mechanisms]] and other components at the workshops by highlighting an active job and selecting {{k|d}}etail.&lt;br /&gt;
# Build your mechanisms out of [[iron]] or [[steel]].&lt;br /&gt;
# Build your pump components out of iron, steel, [[glass]], or [[nether-cap]].&lt;br /&gt;
# Place a [[stockpile]] with the desired stones around your [[mechanic's workshop]] and set it to &amp;quot;Give To a Pile/Workshop&amp;quot;.&lt;br /&gt;
# Use a [[burrow]] that contains only the workshop and the desired materials.&lt;br /&gt;
# Simply ensure that the desired materials are the closest available to your worker. This does not always work, but is usually good enough if you request several jobs, hoping that at least one uses the correct material.&lt;br /&gt;
&lt;br /&gt;
When linking a trigger to an object, the ''first'' mechanism selected is attached to the object, and the ''second'' is attached to the trigger.  Unless the trigger itself will be submerged in magma (as could be the case with a [[pressure plate]]), only the first mechanism (attached to the object that will be submerged) needs to be magma-safe. If you do not have any magma-safe stones available, you can also work around floodgate-based flow control by using [[screw pump]]s to pump the magma over [[wall]]-barriers, or using water to form [[obsidian]] to plug flows and channel through them to reopen them (necessity and invention and all that).&lt;br /&gt;
&lt;br /&gt;
This property is also relevant when choosing the appropriate method for disposing of unneeded items, which can impact [[FPS]] when in large numbers. Items made of non magma-safe materials can be simply dumped into magma, which is the easiest disposal method; however, magma-safe items will need more [[Dwarven atom smasher|drastic]] measures.&lt;br /&gt;
&lt;br /&gt;
Constructions that resist magma are:&lt;br /&gt;
&lt;br /&gt;
* Constructions ([[Wall]], [[Floor]], [[Ramp]], and [[Stairs]]) of any material can never melt or burn - there is nothing wrong with a [[wood]]en magma reservoir.  Natural (i.e. non-constructed) [[ice]] walls/floors/ramps/stairs will melt if exposed to sufficient heat.&lt;br /&gt;
* [[Fortification]]s will allow the passage of [[magma]]; however, if fortifications fill up to 7/7 depth, magma creatures will be able to swim freely through them.&lt;br /&gt;
* If not submerged (that is, not opened to let magma flow over/past/around them), [[door]]s, [[floodgate]]s, and raised [[bridge]]s (provided that there is no magma on the space the bridge would occupy when lowered) of non-magma-safe stone or metal are safe. So long as they are just in contact with magma, only acting as a passive &amp;quot;wall&amp;quot;, they are fine. If opened, they will melt.&lt;br /&gt;
** Raised drawbridges have a notable exception, in that allowing magma to flow over the center of the area that the bridge would normally occupy when lowered ''will'' cause the bridge's components to heat up and potentially melt.&lt;br /&gt;
* A [[pump]] made with magma-safe material for pipes, screws and blocks is fully magma-safe, and will not melt even when submerged in magma.  Pumps containing any item that is not magma safe will be destroyed after prolonged operation.&lt;br /&gt;
&lt;br /&gt;
== Game calculations ==&lt;br /&gt;
In the game, magma's temperature is exactly {{ct|12000}}.&lt;br /&gt;
&lt;br /&gt;
The chance of striking a magma-safe stone is roughly around 32%, not including the natural abundance of certain stone. It is important to note whether or not your fortress may already have access to magma-safe resources before attempting to deliberately find some.&lt;br /&gt;
&lt;br /&gt;
==Magma-safe material==&lt;br /&gt;
&lt;br /&gt;
The following materials will not melt when submerged in magma. Although true for any item/construction, it's worth specifically mentioning that this includes [[door]]s, [[floor hatch]]es, [[floodgate]]s, [[bridge]]s, [[screw pump]]s, [[pipe section]]s, and [[mechanism]]s.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Editors: For your convenience, a BLANK ROW TEMPLATE:&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type= |Matl= |Appear= |Temp= |Where= |Notes= }}&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{MS table head}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Alunite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=13,690°U (3722°F/2051°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(L)''', [[Kaolinite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Anhydrite]]|Appear={{Raw Tile|v|7:7:1}} {{Raw Tile|•|7:0}}|Temp=12,610°U (2642°F/1450°C)|Where=[[Gypsum]]'''(S)''', [[Satinspar]]'''(1)''', [[Alabaster]]'''(1)''', [[Selenite]]'''(1)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Basalt]]|Appear={{Raw Tile|#|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Bauxite]]|Appear={{Raw Tile|+|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,600°U (3632°F/2000°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Calcite]]|Appear={{Raw Tile|&amp;quot;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,902°U (2934°F/1613°C)|Where=[[Limestone]]'''(S)''', [[Marble]]'''(S)'''|Notes=[[flux]] stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chert]]|Appear={{Raw Tile|&amp;amp;#61;|6:7:0}} {{Raw Tile|•|6:0}}|Temp=13,101°U (3133°F/1723°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chromite]]|Appear={{Raw Tile|&amp;amp;#61;|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,645°U (3677°F/2026°C)|Where=[[Olivine]]'''(V)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Dolomite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=16,507°U (6539°F/3619°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone|Notes=[[Flux]], Highest melting point of any common stone.}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Gabbro]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous intrusive layer|Igneous intrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Ilmenite]]|Appear={{Raw Tile|.|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,457°U (2489°F/1365°C)|Where=[[Gabbro]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Kaolinite]]|Appear={{Raw Tile|&amp;amp;#61;|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,150°U (3182°F/1751°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red, [[porcelain]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Mica]]|Appear={{Raw Tile|v|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,295°U (2327°F/1275°C)|Where=All [[Metamorphic]]'''(L)''', [[Granite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Obsidian]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,600°U (3632°F/2001°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone|Notes=value 3, can be &amp;quot;[[obsidian farming|manufactured]]&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Olivine]]|Appear={{Raw Tile|%|2:7:0}} {{Raw Tile|•|2:0}}|Temp=13,168°U (3200°F/1761°C)|Where=[[Gabbro]]'''(L)'''|Notes=green}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Orthoclase]]|Appear={{Raw Tile|%|6:7:1}} {{Raw Tile|•|6:1}}|Temp=12,250°U (2282°F/1250°C)|Where=All [[Igneous intrusive layer|Igneous intrusive]]'''(L)''', All [[Metamorphic]]'''(L)'''|Notes=yellow}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Periclase]]|Appear={{Raw Tile|,|7:7:1}} {{Raw Tile|•|7:1}}|Temp=15,040°U (5072°F/2803°C)|Where=[[Marble]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Petrified wood]]|Appear={{Raw Tile|%|4:7:1}} {{Raw Tile|•|4:1}}|Temp=12,970°U (3002°F/1650°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(S)'''|Notes=bright red, least dense magma-safe non-economic stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Pitchblende]]|Appear={{Raw Tile|*|5:7:0}} {{Raw Tile|•|5:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Quartzite]]|Appear={{Raw Tile|-|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,970°U (3002°F/1650°C)|Where=[[Metamorphic]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Rutile]]|Appear={{Raw Tile|`|5:7:0}} {{Raw Tile|•|5:0}}|Temp=13,285°U (3214°F/1826°C)|Where=All [[Metamorphic]]'''(S)''', [[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Sandstone]]|Appear={{Raw Tile|#|6:7:0}} {{Raw Tile|•|6:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Talc]]|Appear={{Raw Tile|&amp;amp;#124;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,700°U (2732°F/1500°C)|Where=[[Dolomite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Adamantine]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|≡|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Notes=Highest value/utility material in game}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,768°U (2800°F/1538°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Nickel]]|Appear={{Raw Tile|X|7:3:0}} {{Raw Tile|≡|7:0}}|Temp=12,619°U (2651°F/1455°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Pig iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,106°U (2138°F/1170°C)|Notes=used in steel making process}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Platinum]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|≡|7:1}}|Temp=13,182°U (3214°F/1768°C)|Notes=High value metal}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Steel]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,718°U (2750°F/1510°C)|Notes=Armor/weapons}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Cassiterite]]|Appear={{Raw Tile|£|6:7:0}} {{Raw Tile|*|6:0}}|Temp=12,025°U (2057°F/1124°C)|Where=[[Granite]]'''(V)'''|Notes=Ore of [[tin]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Galena]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=12,005°U (2037°F/1113°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(V)''', All [[Metamorphic]]'''(V)''', [[Granite]]'''(V)''', [[Limestone]]'''(V)'''|Notes=Ore of [[lead]] and [[silver]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Hematite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|4:7:0}} {{Raw Tile|*|4:0}}|Temp=12,736°U (2768°F/1520°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(V)''', All [[Igneous extrusive layer|Igneous extrusive]]'''(V)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Magnetite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|~|0:7:1}} {{Raw Tile|*|0:1}}|Temp=12,768°U (2800°F/1538°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Native platinum]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=13,182°U (3214°F/1768°C)|Where=[[Olivine]]'''(V)''', [[Magnetite]]'''(V)''', [[Chromite]]'''(S)'''|Notes=Ore of [[platinum]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=''[[Sphalerite]]''&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|0:7:1}} {{Raw Tile|*|0:1}}|Temp=''12,133°U (2165°F/1185°C)''|Where=All [[Metamorphic]]'''(V)'''|Notes=Ore of [[zinc]]&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Wood|Matl=[[Nether-cap]]&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|♠|1:0:0}} {{Raw Tile|▬|1:0:0}}|Temp=N/A|Where=[[Cavern]] (depth 3)|Notes=Naturally cold&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Special|Matl=[[Raw adamantine]]|Appear={{Raw Tile|£|3:7:1}} {{Raw Tile|*|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Where=The depths|Notes=Ore of [[adamantine]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=Dragon scales actually cannot be tanned}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Green glass]]|Appear={{Raw Tile|X|2:2:1}} {{Raw Tile|■|2:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Clear glass]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|■|3:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Crystal glass]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|■|7:1}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
:1. Each stone is one of 16 [[color scheme|colors]] in the game.  Different un-mined stone of the same color have a different symbol to distinguish between them.  Once mined, the individual stones themselves can sometimes look identical if the color is the same. Use {{k|k}} to loo{{k|k}} at items or the terrain for specific information.&lt;br /&gt;
:2. '''°U''' = degrees in [[Main:Urist|Urist]], the measure of temperature within the Dwarf Fortress world. As far as is known, there is no functional difference between a material that melts at {{ct|12005}} or {{ct|55000}} &amp;amp;mdash; they are both equally &amp;quot;magma safe&amp;quot;.&lt;br /&gt;
:3. There are three iron ores in the game (four if you count [[Goblinite]]). Of these, only [[hematite]] and [[magnetite]] are magma safe.&lt;br /&gt;
:4. Sphalerite has ''no'' melting point, but ''sublimates'' at {{ct|12133}}. This still qualifies as being magma-safe.&lt;br /&gt;
:5. [[Nether-cap]] logs have a fixed temperature of {{ct|10000}}, rendering them fully magma safe, except that nether-cap products [[dump]]ed into magma are destroyed.&lt;br /&gt;
&lt;br /&gt;
{{Magma FAQ}}&lt;br /&gt;
{{Category|Physics}}&lt;br /&gt;
{{Category|Magma safe materials}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223443</id>
		<title>Magma-safe</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Magma-safe&amp;diff=223443"/>
		<updated>2016-02-16T08:26:10Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: Materials can be specified as of 0.42.06.  &amp;quot;In order to make magma-safe components&amp;quot; updated accordingly.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|01:12, 4 February 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{Material properties}}&lt;br /&gt;
'''Magma-safe materials''' are materials which will not melt, burn, evaporate, or otherwise take damage when in close contact with [[magma]]. Most frequently, this comes into play when using [[floodgate]]s operated by [[mechanism]]s, or when operating a [[screw pump|magma pump]].&lt;br /&gt;
&lt;br /&gt;
For [[reaction]]s and custom buildings using the [MAGMA_BUILD_SAFE] token, only a material which is solid and stable at the temperature {{ct|12000}} (i.e. MELTING_POINT/BOILING_POINT/IGNITE_POINT/HEATDAM_POINT greater than 12000 and COLDDAM_POINT less than 12000) is considered magma-safe. &lt;br /&gt;
&lt;br /&gt;
In order to construct mechanisms, blocks or other pump components from a magma-safe material, you have several choices:&lt;br /&gt;
# You can {{k|d}}esignate a magma-safe rock for your [[mechanisms]] and other components at the workshops.&lt;br /&gt;
# Build your mechanisms out of [[iron]] or [[steel]].&lt;br /&gt;
# Build your pump components out of iron, steel, [[glass]], or [[nether-cap]].&lt;br /&gt;
# Place a [[stockpile]] with the desired stones around your [[mechanic's workshop]] and set it to &amp;quot;Give To a Pile/Workshop&amp;quot;.&lt;br /&gt;
# Use a [[burrow]] that contains only the workshop and the desired materials.&lt;br /&gt;
# Simply ensure that the desired materials are the closest available to your worker. This does not always work, but is usually good enough if you request several jobs, hoping that at least one uses the correct material.&lt;br /&gt;
&lt;br /&gt;
When linking a trigger to an object, the ''first'' mechanism selected is attached to the object, and the ''second'' is attached to the trigger.  Unless the trigger itself will be submerged in magma (as could be the case with a [[pressure plate]]), only the first mechanism (attached to the object that will be submerged) needs to be magma-safe. If you do not have any magma-safe stones available, you can also work around floodgate-based flow control by using [[screw pump]]s to pump the magma over [[wall]]-barriers, or using water to form [[obsidian]] to plug flows and channel through them to reopen them (necessity and invention and all that).&lt;br /&gt;
&lt;br /&gt;
This property is also relevant when choosing the appropriate method for disposing of unneeded items, which can impact [[FPS]] when in large numbers. Items made of non magma-safe materials can be simply dumped into magma, which is the easiest disposal method; however, magma-safe items will need more [[Dwarven atom smasher|drastic]] measures.&lt;br /&gt;
&lt;br /&gt;
Constructions that resist magma are:&lt;br /&gt;
&lt;br /&gt;
* Constructions ([[Wall]], [[Floor]], [[Ramp]], and [[Stairs]]) of any material can never melt or burn - there is nothing wrong with a [[wood]]en magma reservoir.  Natural (i.e. non-constructed) [[ice]] walls/floors/ramps/stairs will melt if exposed to sufficient heat.&lt;br /&gt;
* [[Fortification]]s will allow the passage of [[magma]]; however, if fortifications fill up to 7/7 depth, magma creatures will be able to swim freely through them.&lt;br /&gt;
* If not submerged (that is, not opened to let magma flow over/past/around them), [[door]]s, [[floodgate]]s, and raised [[bridge]]s (provided that there is no magma on the space the bridge would occupy when lowered) of non-magma-safe stone or metal are safe. So long as they are just in contact with magma, only acting as a passive &amp;quot;wall&amp;quot;, they are fine. If opened, they will melt.&lt;br /&gt;
** Raised drawbridges have a notable exception, in that allowing magma to flow over the center of the area that the bridge would normally occupy when lowered ''will'' cause the bridge's components to heat up and potentially melt.&lt;br /&gt;
* A [[pump]] made with magma-safe material for pipes, screws and blocks is fully magma-safe, and will not melt even when submerged in magma.  Pumps containing any item that is not magma safe will be destroyed after prolonged operation.&lt;br /&gt;
&lt;br /&gt;
== Game calculations ==&lt;br /&gt;
In the game, magma's temperature is exactly {{ct|12000}}.&lt;br /&gt;
&lt;br /&gt;
The chance of striking a magma-safe stone is roughly around 32%, not including the natural abundance of certain stone. It is important to note whether or not your fortress may already have access to magma-safe resources before attempting to deliberately find some.&lt;br /&gt;
&lt;br /&gt;
==Magma-safe material==&lt;br /&gt;
&lt;br /&gt;
The following materials will not melt when submerged in magma. Although true for any item/construction, it's worth specifically mentioning that this includes [[door]]s, [[floor hatch]]es, [[floodgate]]s, [[bridge]]s, [[screw pump]]s, [[pipe section]]s, and [[mechanism]]s.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Editors: For your convenience, a BLANK ROW TEMPLATE:&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type= |Matl= |Appear= |Temp= |Where= |Notes= }}&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{MS table head}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Alunite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=13,690°U (3722°F/2051°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(L)''', [[Kaolinite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Anhydrite]]|Appear={{Raw Tile|v|7:7:1}} {{Raw Tile|•|7:0}}|Temp=12,610°U (2642°F/1450°C)|Where=[[Gypsum]]'''(S)''', [[Satinspar]]'''(1)''', [[Alabaster]]'''(1)''', [[Selenite]]'''(1)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Basalt]]|Appear={{Raw Tile|#|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Bauxite]]|Appear={{Raw Tile|+|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,600°U (3632°F/2000°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Calcite]]|Appear={{Raw Tile|&amp;quot;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,902°U (2934°F/1613°C)|Where=[[Limestone]]'''(S)''', [[Marble]]'''(S)'''|Notes=[[flux]] stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chert]]|Appear={{Raw Tile|&amp;amp;#61;|6:7:0}} {{Raw Tile|•|6:0}}|Temp=13,101°U (3133°F/1723°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Chromite]]|Appear={{Raw Tile|&amp;amp;#61;|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,645°U (3677°F/2026°C)|Where=[[Olivine]]'''(V)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Dolomite]]|Appear={{Raw Tile|`|7:7:1}} {{Raw Tile|•|7:1}}|Temp=16,507°U (6539°F/3619°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone|Notes=[[Flux]], Highest melting point of any common stone.}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Gabbro]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,160°U (2192°F/1200°C)|Where=[[Igneous intrusive layer|Igneous intrusive]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Ilmenite]]|Appear={{Raw Tile|.|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,457°U (2489°F/1365°C)|Where=[[Gabbro]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Kaolinite]]|Appear={{Raw Tile|&amp;amp;#61;|4:7:0}} {{Raw Tile|•|4:0}}|Temp=13,150°U (3182°F/1751°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=dark red, [[porcelain]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Mica]]|Appear={{Raw Tile|v|0:7:1}} {{Raw Tile|•|0:1}}|Temp=12,295°U (2327°F/1275°C)|Where=All [[Metamorphic]]'''(L)''', [[Granite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Obsidian]]|Appear={{Raw Tile|▒|0:7:1}} {{Raw Tile|•|0:1}}|Temp=13,600°U (3632°F/2001°C)|Where=[[Igneous extrusive layer|Igneous extrusive]] layer stone|Notes=value 3, can be &amp;quot;[[obsidian farming|manufactured]]&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Olivine]]|Appear={{Raw Tile|%|2:7:0}} {{Raw Tile|•|2:0}}|Temp=13,168°U (3200°F/1761°C)|Where=[[Gabbro]]'''(L)'''|Notes=green}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Orthoclase]]|Appear={{Raw Tile|%|6:7:1}} {{Raw Tile|•|6:1}}|Temp=12,250°U (2282°F/1250°C)|Where=All [[Igneous intrusive layer|Igneous intrusive]]'''(L)''', All [[Metamorphic]]'''(L)'''|Notes=yellow}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Periclase]]|Appear={{Raw Tile|,|7:7:1}} {{Raw Tile|•|7:1}}|Temp=15,040°U (5072°F/2803°C)|Where=[[Marble]]'''(S)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Petrified wood]]|Appear={{Raw Tile|%|4:7:1}} {{Raw Tile|•|4:1}}|Temp=12,970°U (3002°F/1650°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(S)'''|Notes=bright red, least dense magma-safe non-economic stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Pitchblende]]|Appear={{Raw Tile|*|5:7:0}} {{Raw Tile|•|5:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Quartzite]]|Appear={{Raw Tile|-|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,970°U (3002°F/1650°C)|Where=[[Metamorphic]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Rutile]]|Appear={{Raw Tile|`|5:7:0}} {{Raw Tile|•|5:0}}|Temp=13,285°U (3214°F/1826°C)|Where=All [[Metamorphic]]'''(S)''', [[Granite]]'''(S)'''|Notes=purple}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Sandstone]]|Appear={{Raw Tile|#|6:7:0}} {{Raw Tile|•|6:0}}|Temp=12,070°U (2102°F/1149°C)|Where=[[Sedimentary layer|Sedimentary]] layer stone}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Stone|Matl=[[Talc]]|Appear={{Raw Tile|&amp;amp;#124;|7:7:1}} {{Raw Tile|•|7:1}}|Temp=12,700°U (2732°F/1500°C)|Where=[[Dolomite]]'''(L)'''}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Adamantine]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|≡|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Notes=Highest value/utility material in game}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,768°U (2800°F/1538°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Nickel]]|Appear={{Raw Tile|X|7:3:0}} {{Raw Tile|≡|7:0}}|Temp=12,619°U (2651°F/1455°C)}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Pig iron]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,106°U (2138°F/1170°C)|Notes=used in steel making process}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Platinum]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|≡|7:1}}|Temp=13,182°U (3214°F/1768°C)|Notes=High value metal}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Metal|Matl=[[Steel]]|Appear={{Raw Tile|X|0:7:1}} {{Raw Tile|≡|0:1}}|Temp=12,718°U (2750°F/1510°C)|Notes=Armor/weapons}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Cassiterite]]|Appear={{Raw Tile|£|6:7:0}} {{Raw Tile|*|6:0}}|Temp=12,025°U (2057°F/1124°C)|Where=[[Granite]]'''(V)'''|Notes=Ore of [[tin]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Galena]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=12,005°U (2037°F/1113°C)|Where=All [[Igneous extrusive layer|Igneous extrusive]]'''(V)''', All [[Metamorphic]]'''(V)''', [[Granite]]'''(V)''', [[Limestone]]'''(V)'''|Notes=Ore of [[lead]] and [[silver]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Hematite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|4:7:0}} {{Raw Tile|*|4:0}}|Temp=12,736°U (2768°F/1520°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(V)''', All [[Igneous extrusive layer|Igneous extrusive]]'''(V)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Magnetite]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|~|0:7:1}} {{Raw Tile|*|0:1}}|Temp=12,768°U (2800°F/1538°C)|Where=All [[Sedimentary layer|Sedimentary]]'''(L)'''|Notes=Ore of [[iron]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=[[Native platinum]]|Appear={{Raw Tile|£|7:7:1}} {{Raw Tile|*|7:1}}|Temp=13,182°U (3214°F/1768°C)|Where=[[Olivine]]'''(V)''', [[Magnetite]]'''(V)''', [[Chromite]]'''(S)'''|Notes=Ore of [[platinum]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Ore|Matl=''[[Sphalerite]]''&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|£|0:7:1}} {{Raw Tile|*|0:1}}|Temp=''12,133°U (2165°F/1185°C)''|Where=All [[Metamorphic]]'''(V)'''|Notes=Ore of [[zinc]]&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Wood|Matl=[[Nether-cap]]&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;|Appear={{Raw Tile|♠|1:0:0}} {{Raw Tile|▬|1:0:0}}|Temp=N/A|Where=[[Cavern]] (depth 3)|Notes=Naturally cold&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Special|Matl=[[Raw adamantine]]|Appear={{Raw Tile|£|3:7:1}} {{Raw Tile|*|3:1}}|Temp=25,000°U (15,032°F/8333°C)|Where=The depths|Notes=Ore of [[adamantine]]}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Leather|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=Dragon scales actually cannot be tanned}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Fire imp]]|Appear=|Temp=15,000°U (5032°F/2780°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Bone|Matl=[[Dragon]]|Appear=|Temp=55,000°U (45032°F/25,044°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Green glass]]|Appear={{Raw Tile|X|2:2:1}} {{Raw Tile|■|2:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Clear glass]]|Appear={{Raw Tile|X|3:3:1}} {{Raw Tile|■|3:0}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
{{MS table row|Type=Glass|Matl=[[Glass|Crystal glass]]|Appear={{Raw Tile|X|7:7:1}} {{Raw Tile|■|7:1}}|Temp=13,600°U (3632°F/2001°C)|Notes=}}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
:1. Each stone is one of 16 [[color scheme|colors]] in the game.  Different un-mined stone of the same color have a different symbol to distinguish between them.  Once mined, the individual stones themselves can sometimes look identical if the color is the same. Use {{k|k}} to loo{{k|k}} at items or the terrain for specific information.&lt;br /&gt;
:2. '''°U''' = degrees in [[Main:Urist|Urist]], the measure of temperature within the Dwarf Fortress world. As far as is known, there is no functional difference between a material that melts at {{ct|12005}} or {{ct|55000}} &amp;amp;mdash; they are both equally &amp;quot;magma safe&amp;quot;.&lt;br /&gt;
:3. There are three iron ores in the game (four if you count [[Goblinite]]). Of these, only [[hematite]] and [[magnetite]] are magma safe.&lt;br /&gt;
:4. Sphalerite has ''no'' melting point, but ''sublimates'' at {{ct|12133}}. This still qualifies as being magma-safe.&lt;br /&gt;
:5. [[Nether-cap]] logs have a fixed temperature of {{ct|10000}}, rendering them fully magma safe, except that nether-cap products [[dump]]ed into magma are destroyed.&lt;br /&gt;
&lt;br /&gt;
{{Magma FAQ}}&lt;br /&gt;
{{Category|Physics}}&lt;br /&gt;
{{Category|Magma safe materials}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Clutter&amp;diff=223442</id>
		<title>Clutter</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Clutter&amp;diff=223442"/>
		<updated>2016-02-16T05:55:46Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: /* Benefits */  Minor punctuation correction.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|10:25, 18 May 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
Workshops will get cluttered when they become full of goods that are not hauled away to stockpiles. A workshop that is cluttered will display (CLT) when viewed via the q or t menus. t, &amp;quot;View Items in Buildings,&amp;quot; will show you what items are cluttering the workshop.&lt;br /&gt;
&lt;br /&gt;
Dwarves working in cluttered workshops will work more slowly: even the lowest level of clutter '''(CLT)''' doubles the time a workshop task takes. Each successive level of clutter increases the multiplier by one, so tasks performed in a completely cluttered workshop will take ten times as long.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Clutter levels ==&lt;br /&gt;
The amount of clutter generated by a single item is determined by its base [[weight]]. All items generate a minimum of 1200 units of clutter.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin: 0 auto; text-align: center; border-spacing: 4px&amp;quot;&lt;br /&gt;
|+ style=&amp;quot;margin: 0 auto&amp;quot; | '''Levels of Clutter'''&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|0:0:1}}&lt;br /&gt;
| 90000 units&lt;br /&gt;
| : 2x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|7:0:0}}&lt;br /&gt;
| 120000 units&lt;br /&gt;
| : 3x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|7:0:1}}&lt;br /&gt;
| 150000 units&lt;br /&gt;
| : 4x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|6:0:1}}&lt;br /&gt;
| 180000 units&lt;br /&gt;
| : 5x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|4:0:0}}&lt;br /&gt;
| 210000 units&lt;br /&gt;
| : 6x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|4:0:1}}&lt;br /&gt;
| 240000 units&lt;br /&gt;
| : 7x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|(CLT)|5:0:1}}&lt;br /&gt;
| 270000 units&lt;br /&gt;
| : 8x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|*CLT*|5:0:1}}&lt;br /&gt;
| 300000 units&lt;br /&gt;
| : 9x slower&lt;br /&gt;
|-&lt;br /&gt;
! {{Raw Tile|☼CLT☼|5:0:1}}&lt;br /&gt;
| 330000 units&lt;br /&gt;
| : 10x slower&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Occurrence ==&lt;br /&gt;
During normal play, it is unlikely to ever observe workshop clutter outside of the [[butcher's shop]] - even [[slab]]s and [[statue]]s, the largest finished goods, will only clutter a mason's workshop to the ''first'' level once there are 15 of them inside and waiting for storage.&lt;br /&gt;
&lt;br /&gt;
== Remedy ==&lt;br /&gt;
&lt;br /&gt;
To remedy clutter, be sure to have enough stockpile space of the appropriate kind (using [[bin|bins]] will increase stockpile efficiency), and employ enough dwarves with the appropriate [[hauling]] jobs (food/furniture/item/refuse/etc.) to get rid of the junk. The dwarf working at the workshop could also have the relevant hauling job enabled, pausing from time to time to move around goods. In case of inexperienced cooks, order only one or two meals at a time, and check clutter before issuing new orders. An alternate clutter control method is to build new workshops, optionally destroying the old ones (from the {{k|q}} or {{k|t}} menu).&lt;br /&gt;
&lt;br /&gt;
== Benefits ==&lt;br /&gt;
&lt;br /&gt;
There is one upside to clutter, depending on your viewpoint and playstyle. As a workshop's production is slowed, so is their consumption of raw materials and their output if there is little demand. If there is sudden spike of demand, the workshop is easily uncluttered and can work at full speed. The benefit of this is that tasks can be left in repeat mode with no supervision and will not produce much unwanted extras or consume more resources than needed.  &lt;br /&gt;
&lt;br /&gt;
A [[still]], for example, can eventually get to the rate where dwarves consume booze at same speed as the cluttered workshops produce it.&lt;br /&gt;
&lt;br /&gt;
[[Wood furnace|Wood furnaces]] similarly will eventually be brought to a point where they produce fuel at same rate as other workshops consume it.&lt;br /&gt;
&lt;br /&gt;
If [[stockpile|stockpiles]] are used with this method, they must all be kept completely full, so that the workshop remains cluttered.  Your stockpile will become a sort of buffer to compensate for large spikes in demand.  The larger your booze stockpile is, the larger of a spike in demand it can compensate for when, say, a tantrum spiral erupts.&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
* Individual body parts from large animals (like an elephant's tusk) can instantly clutter a workshop. {{Bug|1489}}&lt;br /&gt;
* [[Cook]]ing with [[egg]]s creates extreme [[kitchen]] clutter. {{Bug|3994}}&lt;br /&gt;
&lt;br /&gt;
== Production Equilibrium ==&lt;br /&gt;
{{Template:D for dwarf}}&lt;br /&gt;
The unique dwarven economic system, which has been called 'confusing' at best and 'insane' at worst by most other species, has at least one benefit. The fact that items are rarely moved from where they were made until needed leads to much clutter around workshops. As the clutter builds and makes it more difficult to move around the workshop, production slows more and more. If demand suddenly spikes, the clutter is removed and production rises again. Some scientists see this as an instinctual supply and demand device. Others see it as dumb luck.&lt;br /&gt;
&lt;br /&gt;
{{Translation&lt;br /&gt;
| dwarven = om&lt;br /&gt;
| elvish  = ifeta&lt;br /&gt;
| goblin  = ozma&lt;br /&gt;
| human   = rufo&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Workshops}}&lt;br /&gt;
{{Category|Workshops}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223441</id>
		<title>Advanced world generation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Advanced_world_generation&amp;diff=223441"/>
		<updated>2016-02-16T04:10:33Z</updated>

		<summary type="html">&lt;p&gt;Chinchou: A few grammar and spelling fixes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|18:16, 23 August 2014 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
{{old}}&lt;br /&gt;
&lt;br /&gt;
:''This article contains information on advanced world generation. For information on basic world generation, see [[World generation]].''&lt;br /&gt;
:''See [[World token]] to more easily find information by the names used in the world_gen.txt file.''&lt;br /&gt;
:''See [[World rejection]] for information on solving problems related to worlds always being rejected.''&lt;br /&gt;
:''See [[Worldgen examples]] for example worlds.''&lt;br /&gt;
&lt;br /&gt;
When you want more control of what your world looks like, it's time for '''advanced world generation'''. A detailed reference with advice is provided below. This article assumes that you are already familiar with [[World generation|'''basic''' world generation]]. If you are not then please read about that first.&lt;br /&gt;
&lt;br /&gt;
Once you select {{DFtext|Design New World With Advanced Parameters}} from the main menu, a screen that looks something like this will appear:&lt;br /&gt;
&lt;br /&gt;
[[File:AdvancedWorldGen.png‎]]&lt;br /&gt;
&lt;br /&gt;
This screen is relatively intuitive but some parts could use some explanation.&lt;br /&gt;
&lt;br /&gt;
== Parameter sets ==&lt;br /&gt;
&lt;br /&gt;
The list of already defined parameter sets is in the upper right corner. You can select the current set that you want to work with using the up and down directional keys.&lt;br /&gt;
&lt;br /&gt;
Hitting {{K|a}} will add a new set to the end of the list. You can also {{K|c}}opy an existing set to a new one allowing you to base a new set on an existing one. Using {{K|t}} you can change the name of the parameter set but note that this will not affect the name of the world that is generated.&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the &amp;lt;tt&amp;gt;data/init/world_gen.txt&amp;lt;/tt&amp;gt; file in the main DF directory. The {{K|F1}} and {{K|F6}} keys will load and save '''all''' of the parameter sets to this file. You will need to save the world gen parameters to this file before you hit {{K|Enter}} to generate the world.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; file can also be edited with a text editor. This is particularly useful because people will often post their parameter sets on the forum or wiki in text form. (See below for more info.) The {{K|F1}} key comes in handy when editing this file while the game is still running.&lt;br /&gt;
&lt;br /&gt;
To get the parameters used to generate a world you are already playing press {{K|ESC}} then choose export images; exporting any image will also create the world generation parameter file, for more information see this [http://www.bay12forums.com/smf/index.php?topic=101280.msg4512541#msg4512541 post]. &lt;br /&gt;
&lt;br /&gt;
The tokens used in &amp;lt;tt&amp;gt;world_gen.txt&amp;lt;/tt&amp;gt; are at the bottom of each parameter description. Here's the one for title.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITLE:MEDIUM ISLAND]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World name ==&lt;br /&gt;
&lt;br /&gt;
As previously mentioned, the title of the parameter set doesn't affect the name of the world. You can force a particular name for your world using {{K|n}} or set it back to the default random setting using {{K|N}}.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME: &amp;lt;name&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CUSTOM_NAME:Realm of Cheese Engravings]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| For a random name, simply don't use this token.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== World dimensions ==&lt;br /&gt;
&lt;br /&gt;
The size of the map to be generated can be selected with {{K|u}} {{K|i}} {{K|o}} {{K|p}}. Larger maps take longer to generate and may limit [[Frames per second|FPS]] in game.&lt;br /&gt;
&lt;br /&gt;
Changing the dimensions of the world will reset the parameters because many of them have different defaults depending on the surface area available.&lt;br /&gt;
&lt;br /&gt;
Creating larger worlds does not necessarily mean longer world generation time. The essential factor for the duration is the history. If you restrict the number of historical events you can significantly speed up the process.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:&amp;lt;width&amp;gt;:&amp;lt;height&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DIM:129:129]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Valid values are 17, 33, 65, 129, and 257. Others may not work.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Seed values ==&lt;br /&gt;
&lt;br /&gt;
The world generation process uses a PRNG (Pseudo Random Number Generator) algorithm. A PRNG will produce a sequence of numbers that &amp;quot;looks&amp;quot; random even though the actual sequence of numbers will always be the same if the PRNG is started with the same seed value. Basically this means that if you run world generation with a certain seed value on your computer, and someone else runs world generation with the same seed value on their computer, the same sequence of random numbers will be generated on both computers. The practical impact of this is that someone else can generate exactly the same world that you generated by entering the same seed value that you used.&lt;br /&gt;
&lt;br /&gt;
In older versions, the same seed value(s) produced identical worlds on every computer at any time (if other parameters were identical, too). In the current version, the seed values for the world itself and the names seem to produce the same result, but you will get changes in events cumulating to an different world-history at all. It seems like the history is random somhow and not completely connected to the seed. Keep this in mind if you want to regenerate a particular world.&lt;br /&gt;
&lt;br /&gt;
A specific seed value can be entered with {{K|s}}. This will change '''all''' of the seed values to the value you enter. If you need to enter different seed values for each type of seed, use {{K|e}}.&lt;br /&gt;
&lt;br /&gt;
In order to find out what seed values were used for the last world you generated you can look at this screen. If you want to be able to tell someone else how to generate exactly the same world that you just generated, they will need all of the seed value listed under Last Param Set.&lt;br /&gt;
&lt;br /&gt;
When generating a world using a seed, the way that the world is generated is also based at least in part on certain world tokens. As such you cannot for example change the minimum and maximum rainfall and get the same world but drier or wetter, instead a different world is generated. Saying that, it would also seem that certain small changes to these world tokens can occasionally generate a very similar world, however other tokens are more sensitive. For more information see the forum thread [http://www.bay12forums.com/smf/index.php?topic=112132.msg3404199#msg3404199 here].&lt;br /&gt;
&lt;br /&gt;
The following are tokens which appear to be involved in the implementation of the seed and are not safe to change:&lt;br /&gt;
&lt;br /&gt;
* [DIM:X:X] &lt;br /&gt;
* [ELEVATION:X:X:X:X]&lt;br /&gt;
* [RAINFALL:X:X:X:X] &lt;br /&gt;
* [TEMPERATURE:X:X:X:X]&lt;br /&gt;
* [DRAINAGE:X:X:X:X]&lt;br /&gt;
* [VOLCANISM:X:X:X:X]&lt;br /&gt;
* [SAVAGERY:X:X:X:X]&lt;br /&gt;
* [ELEVATION_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [RAIN_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [DRAINAGE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [TEMPERATURE_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [SAVAGERY_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [VOLCANISM_FREQUENCY:X:X:X:X:X:X]&lt;br /&gt;
* [PARTIAL_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [COMPLETE_OCEAN_EDGE_MIN:X]&lt;br /&gt;
* [HAVE_BOTTOM_LAYER_1:X]&lt;br /&gt;
* [MINERAL_SCARCITY:X] {{cite talk/this|Mineral scarcity}}&lt;br /&gt;
&lt;br /&gt;
Many other world parameters such as end year and embark points can however be changed without it having any effect on the geography of the world generated from the seed values.&lt;br /&gt;
&lt;br /&gt;
Normally you don't enter these seed values and the world generation process comes up with seed values based on some sort of &amp;quot;true&amp;quot; random information from things like random values in uninitialized memory, the current date/time, etc. If you have entered a seed value you can revert to all seeds being random using {{K|S}}.&lt;br /&gt;
&lt;br /&gt;
== Generating a world ==&lt;br /&gt;
&lt;br /&gt;
Unless you're using an already defined parameter set you will probably want to {{K|e}}dit the parameters. Select the set you want to edit using the up/down directional keys and press {{K|e}}. Information about each parameter is documented below.&lt;br /&gt;
&lt;br /&gt;
Once you are happy with the parameters you have set, hit {{K|Esc}} to get back to this screen, hit {{K|F6}} to save the values you just edited, and hit {{K|Enter}} to start. The rest of the process is the same as basic [[World generation]].&lt;br /&gt;
&lt;br /&gt;
The phases of the world generation process are (this order is not completely correct):&lt;br /&gt;
* Preparing elevation...&lt;br /&gt;
* Setting temperature...&lt;br /&gt;
* Running rivers...&lt;br /&gt;
* Forming lakes and minerals...&lt;br /&gt;
* Growing vegetation...&lt;br /&gt;
* Verifying terrain...&lt;br /&gt;
* Importing wildlife...&lt;br /&gt;
* Recounting legends...&lt;br /&gt;
* Placing civilizations...&lt;br /&gt;
* Making cave civilizations...&lt;br /&gt;
* Making cave pops...&lt;br /&gt;
* Placing other beasts...&lt;br /&gt;
* Placing megabeasts...&lt;br /&gt;
* Placing good/evil...&lt;br /&gt;
* Placing caves...&lt;br /&gt;
* Prehistory generation&lt;br /&gt;
* Finalizing civ mats...&lt;br /&gt;
* Finalizing art...&lt;br /&gt;
* Finalizing uniforms...&lt;br /&gt;
* Finalizing sites...&lt;br /&gt;
&lt;br /&gt;
== World painter ==&lt;br /&gt;
:''Main article: [[World painter]]&lt;br /&gt;
The '''world painter''' tool allows you to paint features onto a map that is then used when generating a world.  It is very difficult to use properly, and tends to result in endless rejected worlds, unless you loosen or remove the restrictions placed on biomes and civilizations in the advanced settings.  That being said it is also a very powerful tool, and allows you to generate worlds more to your liking.&lt;br /&gt;
&lt;br /&gt;
To access the world painter, hit {{k|e}} to start editing the advanced parameters and finally hit {{k|p}} to open world painter. How to use the world painter is not entirely obvious so please check out the [[World painter]] documentation to avoid frustration. (Losing may be fun, but frustration is not.)&lt;br /&gt;
&lt;br /&gt;
== Editing the parameters init file ==&lt;br /&gt;
&lt;br /&gt;
Parameter sets are stored in the ''data/init/[[world_gen.txt]]'' file, using [[world token]]s. You can copy and paste other player's sets of parameters into your ''world_gen.txt'' to use their parameter sets, and some are provided at [[Main:Pregenerated worlds|Pregenerated worlds]]. Another place to find parameter sets is the [http://www.bay12forums.com/smf/index.php?topic=101280.0 Worldgen cookbook] thread on the official forums.&lt;br /&gt;
&lt;br /&gt;
== Advanced parameters ==&lt;br /&gt;
&lt;br /&gt;
To access advanced parameters, press {{key|e}} when at the screen for creating new worlds with parameters screen. This will bring you to an editable list of various guidelines the world-gen process will use when creating your new world.&lt;br /&gt;
&lt;br /&gt;
The parameters are described below in the order that they appear in the list in the UI, not necessarily the other they appear in the configuration file. See [[world token]] for an index that will help you look things up by token name.&lt;br /&gt;
&lt;br /&gt;
There are essentially 4 types of controls for the generation of the surface map;&lt;br /&gt;
&lt;br /&gt;
Terrain Parameters, as described below, these 5 variables define the basic background world, how hot or cold it is, how much rainfall, how high the mountains are. The world automatically goes through the temperature range along the Y axis although sometimes it will be hotter in the north, other times in the south. Minima and maxima and X,Y variance can drastically alter the world. &lt;br /&gt;
&lt;br /&gt;
Weighted Meshes, these are a way to fine tune the amount of the 5 basic variables on the map. It can be used to set the specific distribution of different elevations or rainfall areas for example. &lt;br /&gt;
&lt;br /&gt;
Rejection Parameters, Dwarf Fortress has a belt and braces approach to world generation. The above controls allow you to shape the world then the rejection parameters throw it out if it isn't right! There are a number of rejection parameters for the number and degree of the 5 basic variables, for biome types etc. If the world does not meet the requirements of any one rejection parameter the world is rejected an re-randomised. Also see [http://dwarffortresswiki.org/index.php/DF2012:World_rejection World Rejection]&lt;br /&gt;
&lt;br /&gt;
The are also the feature placing options such as rivers, mountain peaks, volcanoes and oceans. These can cause rejections if the terrain parameters don't allow enough suitable locations for the features to be placed. &lt;br /&gt;
&lt;br /&gt;
If you are experimenting with world design, one method would be to disable the rejection parameters and use the first two control types. Otherwise any significant change will likely result in endless rejections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Seed values ===&lt;br /&gt;
&lt;br /&gt;
Here you can enter specific seed values for different parts of the world generation process. Different sequences of pseudorandom numbers are used for different parts, so you can use this to reproduce only the particular part of world generation from some previously generated world if you want.&lt;br /&gt;
&lt;br /&gt;
Normally you will want to leave all of these set to Random unless you're specifically trying to reproduce the results of another world generation run.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;4&amp;quot; |&lt;br /&gt;
For each of these not in the config file, a random seed will be used.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HISTORY_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NAME_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CREATURE_SEED:31337]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Embark Points ===&lt;br /&gt;
&lt;br /&gt;
This controls the number of points that you have for skills and equipment when you embark in fortress mode. Turning this value up will allow games started in this world to start with more skilled dwarves with better equipment. Normally you can do just fine by leaving this value set to default, but you might want to up it for experimental/testing purposes or to help dwarves survive in a particularly evil world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EMBARK_POINTS:1504]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== End year ===&lt;br /&gt;
&lt;br /&gt;
This is how many years of history are generated for the world. This is basically the same as the History parameter in basic world gen, except that you can enter an exact value for number of years. See [[World_generation#History|History]] for more info.&lt;br /&gt;
&lt;br /&gt;
History is divided into &amp;quot;ages&amp;quot; which are determined by the ''percentage'' of megabeasts and semi-megabeasts killed at various points. One can attempt to make a world go through the ages more quickly by pumping up the ratio of semimegabeast to megabeast caves, the former of which are usually more killable than the regular megabeasts. This will net you more &amp;quot;Age of Legends&amp;quot;, &amp;quot;Age of Heroes&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
For more information on the history aspect of the game, see [[Legends]] and [[Calendar#Ages|Ages]].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[END_YEAR:1050]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Population cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This determines the maximum possible population of civilization member historical figures alive at a given time during worldgen. Not all members of a civilization are historical figures. This tag does not directly influence the total population of civilized beings as it once did when populations were all historical figures, so the description is a bit confusing. You can enter -1 to make the historical population unlimited.&lt;br /&gt;
&lt;br /&gt;
Each race may have up to 100 civilizations each, and each civilization a maximum population of 10,000. Civilizations, known as ''entities'' in the [[Raw file|raw files]], have 3 or 4 basic variables that will greatly affect their final placement on the world map. See [[Entity_token#Population|Population (Entity Token)]] for more information on interpreting/editing the raws if you need more precise control of civilization placement and total population numbers.&lt;br /&gt;
&lt;br /&gt;
Huge historical figure populations can cause the size of history data to explode, cause history generation to take forever, lower FPS, and generally slow down the game.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_POPULATION:15000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Site cap after civ creation ===&lt;br /&gt;
&lt;br /&gt;
This controls the maximum number of towns and similar sites on the entire map. Raising the number will allow for more towns, etc. though the number of sites will ultimately still be limited by things like space, terrain, and population cap. &lt;br /&gt;
&lt;br /&gt;
Note that '''this parameter controls only &amp;quot;civilization&amp;quot; sites''' like towns.  Other sites such as lairs will be added on to this maximum.  After civilizations reach this cap, they will not spread out anymore to place new cities.&lt;br /&gt;
&lt;br /&gt;
By default, the raws limit each civilization site to a population of 120 regardless of the race of the civilization. Therefore, without editing the raws, the total population on the map can't go above site cap x 120.&lt;br /&gt;
&lt;br /&gt;
Increasing this too high can slow worldgen down by a lot, beware. Another effect can be goblins (or other civs) sometimes overwelming all other civs and/or flooding the world with their homes leaving no good places to build your fortress. If you choose a low cap to hasten world generation, the cap will be reached within years stopping expanson of all civs. If you want a good and long history you will have to adjust cap of sites and population as the number of civs many times to find one fullfilling your needs.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SITE_CAP:1040]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Required&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Beast control ===&lt;br /&gt;
&lt;br /&gt;
These parameters don't usually matter too much, but may matter for small numbers of beasts.&lt;br /&gt;
&lt;br /&gt;
==== Percentage of Megabeasts and Titans Dead for Stoppage ====&lt;br /&gt;
&lt;br /&gt;
The world starts out with a certain number of powerful megabeast and titan entities in existence. If a percentage of the megabeast and titan population dies out during history generation, then history generation will stop early. For example, if the elimination value is 80%, and the generated history starts with 200 entities and 160 of those 200 entities are eliminated by historical events before the End Year is reached, history generation will stop early.&lt;br /&gt;
&lt;br /&gt;
If you want to end the creation of your world at the beginning at a certain age, choose the following values:&lt;br /&gt;
* Age of Legends: ~34%&lt;br /&gt;
* Age of Heroes: ~67%&lt;br /&gt;
If there are three or fewer titans or megabeasts in your world, the age will be given a special name reflecting the remaining megabeasts/titans, instead.&lt;br /&gt;
&lt;br /&gt;
==== Year to Begin Checking Megabeast Percentage ====&lt;br /&gt;
&lt;br /&gt;
The percentage of dead megabeasts and titans for stoppage will not be checked until this year is reached in history generation. This can be used to ensure that a world reaches a certain year even if all of the megabeasts in the world are slain earlier.&lt;br /&gt;
&lt;br /&gt;
If the number of living megabeasts and titans starts at or drops to less than four, then world generation will always stop if the current year is equal to or greater than the Year to Begin Checking Megabeast Percentage ''regardless'' of how many meagabeasts and titans are dead — Percentage of Megabeasts and Titans Dead for Stoppage is ignored. The number of megabeasts and titans at the start of the world is set by the sum of the [[Advanced_world_generation#Max_Megabeasts_Caves|Max Megabeasts Caves]] and [[Advanced_world_generation#Titan_Parameters|Titan Number]] parameters.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:&amp;lt;year&amp;gt;:&amp;lt;percentage or -1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BEAST_END_YEAR:200:80]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Use -1 as percentage to disable. Year must still be at least 2.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cull Unimportant Historical Figures ===&lt;br /&gt;
&lt;br /&gt;
Whether or not the game ignores unimportant figures in history generation. The culling is many CPU-intensive steps in history generation but it saves memory and will speed up loading/saving games a bit. This does mean that the &amp;quot;unimportant&amp;quot; figures will not appear in Legends mode or in things like dwarf engravings, but they might not appear in engravings anyway.&lt;br /&gt;
&lt;br /&gt;
Unimportant figures are people or creatures who suffer early deaths, never having offspring or killing anything named during history generation. For example, residents of goblin towers may get murdered by demons at a young age. After culling unimportant figures, Legends mode would say something like the demon has killed &amp;quot;a creature at Eviltower in the year 102.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CULL_HISTORICAL_FIGURES:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Reveal All Historical Events ===&lt;br /&gt;
&lt;br /&gt;
Setting this to Yes will allow access to all information about the history of the world in Legends mode. If set to No, then you will have to discover historical information in adventure mode or by instructing dwarves to make engravings.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY:&amp;lt;0 or 1&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REVEAL_ALL_HISTORY::1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No, 1 = Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Parameters ===&lt;br /&gt;
&lt;br /&gt;
These determine how random values for terrain elevation, rainfall, temperature, drainage, volcanism, and savagery are generated. What biomes exist are then determined by how these factors overlap with each other.&lt;br /&gt;
&lt;br /&gt;
==== Minima and Maxima ====&lt;br /&gt;
&lt;br /&gt;
These are the absolute minimum and maximum values that can ever be generated for a particular map square characteristic. Changing these can cause the occurrence of certain [[Biome|biomes]] to become impossible, so modify these with care. Because of this problem, you may want to use [[#Weighted Ranges|Weighted Ranges]] instead.&lt;br /&gt;
&lt;br /&gt;
By ''subtly'' tweaking the min and max values, vastly different maps can be made.&lt;br /&gt;
&lt;br /&gt;
==== X and Y Variance ====&lt;br /&gt;
&lt;br /&gt;
These control how wildly things like elevation and rainfall can vary between adjacent map squares. For example, if these values are set to the maximum of 3,200 for elevation then you will end up with more very low areas right next to very high areas. The number for X determines the east-west variance and the number for Y determines the north-south variance. By setting only one of these to a high value you can, for example, create horizontal or vertical bands of areas which are more similar to each other.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, raising both of these values will create a more random &amp;quot;patchwork&amp;quot; of many small biomes while setting both x and y values to 0 will cause every square on the map to use a single random value for the given characteristic.&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;patchwork&amp;quot; worlds to avoid being rejected, [[#Maximum_Number_of_Subregions|Maximum Number of Subregions]] will probably need to be increased from the default.&lt;br /&gt;
&lt;br /&gt;
==== Elevation ====&lt;br /&gt;
&lt;br /&gt;
This controls the range of terrain elevations that can occur in the world.&lt;br /&gt;
&lt;br /&gt;
Usually you just want to leave the min/max values alone. Raising the minimum elevation can, for example, make it impossible for oceans to exist. This does '''not''' directly control the number of available Z-levels at a particular site, though high maximum values may contribute to peaks which can raise the number of above ground Z-levels. In other words, a maximum elevation of 400 and minimum of 1 does not mean you get 400 Z-levels but it might increase the number of Z-levels somewhat in some regions compared to others.&lt;br /&gt;
&lt;br /&gt;
Raising the variance will result in a more bumpy uneven landscape.&lt;br /&gt;
&lt;br /&gt;
Some biomes/features that are impacted by elevation:&lt;br /&gt;
* A high minimum (above 99) means no oceans as they need elevations below 100.&lt;br /&gt;
* A low maximum (below 300) means no mountains as mountains need elevations above 300.&lt;br /&gt;
* River start locations need a minimum elevation of 300. Therefore, a world with a maximum elevation of 299 everywhere prevents river generation, but rivers can still occur if maximum elevation is set to 300.&lt;br /&gt;
*Mountain peaks can only form in squares with an elevation of 400.&lt;br /&gt;
&lt;br /&gt;
==== Rainfall ====&lt;br /&gt;
&lt;br /&gt;
Controls the amount of rainfall in each map square/area. Setting the minimum too high or the maximum too low can make the formation of certain biomes impossible. Rainfall causes it to [[Rain]] more in a given area, which can have various effects.&lt;br /&gt;
&lt;br /&gt;
Also makes more rivers appear on the world map.&lt;br /&gt;
&lt;br /&gt;
Note that if [[#Do Orographic Precipitation and Rain Shadows|orographic precipitation and rain shadows]] is on then mountains will cause additional variance in rainfall, so (for example) rainfall below the specified minimum can occur in the shadow of a mountain.  If you want the minimum and maximum for this parameter to be absolutely respected you must turn off the orographic precipitation option.&lt;br /&gt;
&lt;br /&gt;
==== Temperature ====&lt;br /&gt;
&lt;br /&gt;
These parameters control how hot or cold various areas will be. If you lower the minimum and maximum values, the world will be colder overall, for example. As with the others, changing these values too much could make it impossible for certain biomes to exist. See [[Climate]] for more info.&lt;br /&gt;
&lt;br /&gt;
[[Temperature]] is always influenced by elevation and, if [[Advanced_world_generation#Poles|Poles]] are enabled, latitude. So, the value from the temperature rolling process is ''not the absolute temperature value the region will get, but rather local variation.'' The &amp;quot;base&amp;quot; temperature for an area is derived from its latitude and elevation, and then the random value determined by these parameters are applied to it to make it vary a bit. The default values for the local variation are fairly small compared to the base temperature, which appears to be hard coded.&lt;br /&gt;
&lt;br /&gt;
==== Drainage ====&lt;br /&gt;
&lt;br /&gt;
Changing drainage parameters will change the way water-affected biomes are formed. Low drainage will contribute to the formation of [[Lake|lakes]], [[River|rivers]], and [[Swamp|swamps]]. High drainage will cause water to sink into the ground rather than sit on the surface, which is important for forming hills.&lt;br /&gt;
&lt;br /&gt;
Lower drainage values have been reported to contribute to the formation of thicker soil layers though it is currently unknown exactly how other factors (such as elevation or perhaps rain) impact soil formation.&lt;br /&gt;
&lt;br /&gt;
==== Volcanism ====&lt;br /&gt;
&lt;br /&gt;
Volcanism controls the occurrence of Igneous [[Layer|Layers]], and the formation of volcanoes. For a volcano to form, a square must have a volcanism value of 100 so reducing the maximum from 100 will make volcanoes impossible. Raising the minimum will increase the rarity of non-igneous layers.&lt;br /&gt;
&lt;br /&gt;
Setting minimum to high value is not a good way to produce multiple volcanoes as you are likely to get a &amp;quot;Volcanism not evenly distributed&amp;quot; rejection. Instead use the Minimum Number of Volcanoes parameter and possibly adjust the weighted ranges for volcanism as described below.&lt;br /&gt;
&lt;br /&gt;
==== Savagery ====&lt;br /&gt;
&lt;br /&gt;
These parameters control the level of [[Surroundings#Savage|savagery]] on the map. Raising the minimum savagery too high may make it impossible for certain races to exist, and similarly lowering the maximum too far can make it impossible for certain creatures to exist. The largest chance of having unusable maps comes from too high of a savagery value.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION:1:400:401:401]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 400&amp;lt;br/&amp;gt;Maximum of 400 required for mountain peaks.&amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAINFALL:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE:25:75:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: -1000 to 1000 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE:0:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100&amp;lt;br/&amp;gt;Maximum of 100 required for volcanoes. &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:&amp;lt;min&amp;gt;:&amp;lt;max&amp;gt;:&amp;lt;x variance&amp;gt;:&amp;lt;y variance&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY:1:100:200:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 100 &amp;lt;br/&amp;gt;Variance range: 0-3200&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Terrain Mesh Sizes and Weights ===&lt;br /&gt;
&lt;br /&gt;
These parameters make it possible to influence the number of squares in a particular range without making conditions outside of that range impossible. For example, you can make it possible for many more low elevation squares to exist without making it impossible for high elevations to form. Changing these parameters is often preferable to simply changing the min/max values.&lt;br /&gt;
&lt;br /&gt;
The basic steps of applying weighted ranges are as follows:&lt;br /&gt;
&lt;br /&gt;
# Create a grid with 2&amp;lt;sup&amp;gt;''MeshSize'' - 1&amp;lt;/sup&amp;gt; tiles in both X and Y direction.&lt;br /&gt;
# Set the intersection points of the grid lines to a random value according to the weighted ranges.&lt;br /&gt;
# Smooth out the area between the intersection points.&lt;br /&gt;
# Add noise according to the variance parameters.&lt;br /&gt;
&lt;br /&gt;
Where ''MeshSize'' is the raw parameter value found in the world_gen.txt. See the image on the right for an example.&lt;br /&gt;
&lt;br /&gt;
[[File:World_map-large-32x32-elevation-mesh.png|thumb|300px|A large world generated with an Elevation Mesh Size of 32x32 and range weights set to 1:0:0:0:1 (i.e., only extreme high and low elevations). Note how the grid intersections are either set very high or very low and the space between them is smoothed out.]]&lt;br /&gt;
&lt;br /&gt;
==== Mesh Size ====&lt;br /&gt;
&lt;br /&gt;
Mesh size determines how many grid tiles there will be. Setting this to Ignore will cause the weighted range settings to be ignored for that terrain characteristic. As an example, setting it to 2x2 means the grid will be 2 times 2 tiles large and there will be 3 times 3 for a total of 9 intersection points. On a pocket world this means one grid tile will be 8 * 8 world tiles large whereas on a large world one grid tile will be 128 * 128 world tiles. Note that the highest possible value for a given world size will always make the grid tiles 8 * 8 world tiles large.&lt;br /&gt;
&lt;br /&gt;
==== Weighted Ranges ====&lt;br /&gt;
&lt;br /&gt;
If mesh size is set to something other than Ignore, these weights will be applied at the granularity of the selected mesh size for purposes of generating random values in each range. This allows random number generation to be non-linear for the given terrain characteristic.&lt;br /&gt;
&lt;br /&gt;
For example, if the Elevation Weighted Range parameters were set to (starting with the 0-20 range) 60:10:10:10:10 (these values do not have to add up to any particular number) and elevation min and max are set to 1 and 400 respectively then about 60% of the grid line intersection points (on average) will be set to an elevation in the range of 1-80 (0% to 20%), and the other ranges will be represented by around 10% of the intersection points each. The exact distribution is still left up to chance though ''on average'' it will be close to this specification.&lt;br /&gt;
&lt;br /&gt;
Weighted ranges do not make rejection checks, although they can be responsible for many rejections if you neglect to adjust or disable some of the [[#Minimum Number of Mid/Low/High Characteristic Squares|Minimum Number of Mid/Low/High Characteristic Squares]] for example.&lt;br /&gt;
&lt;br /&gt;
==== Interaction between Mesh Size and Variance ====&lt;br /&gt;
&lt;br /&gt;
The end result can vary greatly depending on how the corresponding [[#X_and_Y_Variance|X and Y Variance]] parameters are set. First of all, if the variance is too large the noise it adds can completely negate the effect of the weighted ranges. For instance, with a 2x2 mesh, the default variance parameters are high enough that usually the mesh grid can hardly be recognized. How strong the variance's effect is is also dependent on the mesh size. Having a larger mesh size (i.e. smaller grid tiles) means the variance also has to be higher for a visible effect. For instance, with a variance of 400, the effects are clearly visible with a 2x2 mesh and barely visible at all with a 8x8 mesh. Note that this effect is directly dependent on the mesh size and not, as one might expect on the actual size of the grid tiles. This means, that a large world with a 2x2 mesh will look essentially the same as a pocket world with a 2x2 mesh, only stretched to 256 times the size.&lt;br /&gt;
&lt;br /&gt;
Also see this [http://www.bay12forums.com/smf/index.php?topic=139916.0 forum post] for more details.&lt;br /&gt;
&lt;br /&gt;
==== Configuration Tokens ====&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_FREQUENCY:2:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;6&amp;quot; | Valid mesh values:&lt;br /&gt;
&lt;br /&gt;
1 = Ignore&lt;br /&gt;
&lt;br /&gt;
2 = 2x2&lt;br /&gt;
&lt;br /&gt;
3 = 4x4&lt;br /&gt;
&lt;br /&gt;
4 = 8x8&lt;br /&gt;
&lt;br /&gt;
5 = 16x16&lt;br /&gt;
&lt;br /&gt;
6 = 32x32&lt;br /&gt;
&lt;br /&gt;
(limited by world size) &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_FREQUENCY:3:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_FREQUENCY:4:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_FREQUENCY:5:1:2:3:4:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:&amp;lt;mesh&amp;gt;:&amp;lt;0-20 weight&amp;gt;:&amp;lt;20-40 weight&amp;gt;:&amp;lt;40-60 weight&amp;gt;:&amp;lt;60-80 weight&amp;gt;:&amp;lt;80-100 weight&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_FREQUENCY:1:1:1:1:1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Poles ===&lt;br /&gt;
&lt;br /&gt;
With this you can influence how polar regions are added. The poles can be on the north or south edge and the equator will be on the opposite edge or in the middle if there are two poles.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:&amp;lt;placement&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[POLE:NORTH]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Viable options: NONE, NORTH_OR_SOUTH, NORTH_AND_OR_SOUTH, NORTH, SOUTH, NORTH_AND_SOUTH&lt;br /&gt;
|}&lt;br /&gt;
=== Minimum Mountain Peak Number ===&lt;br /&gt;
&lt;br /&gt;
This will cause the world to be rejected if fewer than this many peaks (based on elevation) are present on the map. Elevations of 400 must be possible for mountain peaks to occur. If set to zero then worlds will not be rejected based on number of peaks.&lt;br /&gt;
&lt;br /&gt;
You may need to adjust elevation parameters, such as the highest weighted range, in order to get the desired number of elevation 400 squares needed for larger numbers of peaks. Like volcanoes, mountain peaks can make embark zones more interesting but other than that they don't appear to &amp;quot;do&amp;quot; anything special. Reportedly they do increase the highest Z-level above ground in all embark zones in the same region even if the selected embark zone does not include the peak.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PEAK_NUMBER_MIN:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Elevations of 400 must occur for peaks to form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Partial Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans touching an edge of the map. If set to zero then worlds will not be rejected based on this criterion. Setting both this parameter and Minimum Complete Edge Oceans to values that total more than 4 when added together may cause all worlds to be rejected as you can't have both a partial and complete edge ocean on a given edge.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PARTIAL_OCEAN_EDGE_MIN:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Complete Edge Oceans ===&lt;br /&gt;
&lt;br /&gt;
This will cause a world to be rejected unless there are at least this many oceans which completely cover an edge of the map. Since a square map only has 4 edges, the maximum value possible is 4. If set to zero then worlds will not be rejected based on this criterion but still might end up with complete edge oceans by chance.&lt;br /&gt;
&lt;br /&gt;
Note that the ability for this many edge oceans to exist will be limited by elevation. Therefore to actually create large oceans you will probably need to change things like the Elevation Mesh Size and Weighted Ranges to increase the number and distribution of very low elevation squares on the map.&lt;br /&gt;
&lt;br /&gt;
Given appropriate weight, range, and variance values for things like elevation, a setting of:&lt;br /&gt;
*1 results in a world that seems like a chunk of coastline. One edge of the map will be completely underwater and there will be ocean taking up much of the map on that side.  Think the east or west coast of the United States, the north coast of Canada, or southern Europe.  If your edge ocean happens to pick your world's frozen side most of it will be glacier.&lt;br /&gt;
*2 results in another coastline along with the first one.  The map could end up looking something like Panama if the oceans pick opposite sides of the map.&lt;br /&gt;
*3 results in a peninsula, like Florida in the US.  There will be oceans surrounding 3 sides of the map, and land touching only one side of the map.&lt;br /&gt;
*4 results in one or more island(s) depending on things like elevation variance and weights. Regardless of whether you get one island or multiple islands, the entire map will be surrounded by water.&lt;br /&gt;
Unfortunately there's no easy way to control which oceans end up on which edges, except perhaps setting X and Y variance to different values.&lt;br /&gt;
&lt;br /&gt;
Edge oceans will take up part of the other edges too.  For example a full edge ocean on the east side will have part of the north and south sides underwater, but that does ''not'' add to the ''partial'' edge oceans count.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[COMPLETE_OCEAN_EDGE_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Maximum of 4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Volcano Number ===&lt;br /&gt;
&lt;br /&gt;
Worlds with less than this number of volcanoes will be rejected. Note that this will not just create this many volcanoes at random; there must be at least this many squares with a Volcanism of 100. Therefore adjusting Weighted Range for 80-100 to some higher value is recommended if you want to facilitate a large number of volcanoes. In addition, Maximum Volcanism must be set to 100 or squares with volcanism of 100 will be impossible making volcanoes impossible.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANO_MIN:15]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Volcanoes require a volcanism of 100 to occur.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Mineral Scarcity ===&lt;br /&gt;
&lt;br /&gt;
Controls the frequency at which minerals occur. Setting this value lower will increase the amount of ore present on a map, the number of different types of ore, and the number/types of gems. The default value will result in a maximum of 2-4 metal ores per map (assuming you choose a good embark location) which may be limiting until the economy is fully implemented and desired metals can be traded for.&lt;br /&gt;
&lt;br /&gt;
The options &amp;quot;Very Rare&amp;quot;, &amp;quot;Rare&amp;quot;, &amp;quot;Sparse&amp;quot;, &amp;quot;Frequent&amp;quot;, and &amp;quot;Everywhere&amp;quot; in the [[World_generation#Basic_World_Generation_Menu|basic world generation menu]] use the values 50000, 10000, 2500, 500 and 100 respectively.&lt;br /&gt;
&lt;br /&gt;
According to [http://www.bay12forums.com/smf/index.php?topic=79018.msg2063804#msg2063804 research] by Shandra in v0.31.25, this is the relationship between the value of this setting and the approximate number of gems and ore:&lt;br /&gt;
&lt;br /&gt;
[[File:MineralSetting_v25_limit10k.png]]&lt;br /&gt;
&lt;br /&gt;
This is for the same 8x8 embark region in a world which is otherwise the same except for the mineral scarcity parameter (although most of the detailed information comes from experiments with previous versions).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MINERAL_SCARCITY:2500]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 100 to 100,000&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
'''Note:''' as of v0.34, low mineral scarcity settings do not cause rejections.&lt;br /&gt;
&lt;br /&gt;
=== Max Megabeasts Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of megabeasts placed at the beginning of history. Megabeasts are hydras, bronze colossuses, rocs and dragons which are all placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415177#msg3415177 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. &lt;br /&gt;
&lt;br /&gt;
Increasing this value can lead to early extinction of civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MEGABEAST_CAP:75]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Megabeasts count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Max Semi-Megabeast Caves ===&lt;br /&gt;
&lt;br /&gt;
This is the number of semi-megabeasts placed at the beginning of history. Semi-megabeasts are giants, ettins, minotaurs, and cyclopes, which are placed in equal proportions [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415188#msg3415188 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SEMIMEGABEAST_CAP:150]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Semimegabeasts do not count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Titan Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== Number ====&lt;br /&gt;
&lt;br /&gt;
This controls the number of titans that exist at the beginning of history[http://www.bay12forums.com/smf/index.php?topic=112465.msg3415203#msg3415203 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;]. The number of forgotten beasts is unaffected by this parameter [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415155#msg3415155 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_NUMBER:33]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Titans count towards BEAST_END_YEAR calculation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Attack Population Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once at least this many dwarves inhabit it, regardless of whether any other attack criteria have been met. This number defaults to 80 which isn't usually too difficult to deal with.&lt;br /&gt;
&lt;br /&gt;
==== Exported Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once you have exported at least this many [[Currency|dwarfbucks]] worth of merchandise, regardless of whether or not any other criteria have been met. This parameter defaults to None (disabled).&lt;br /&gt;
&lt;br /&gt;
==== Created Wealth Requirement ====&lt;br /&gt;
&lt;br /&gt;
Megabeasts will begin to attack your fort once the fort's total wealth has reached this many [[Currency|dwarfbucks]] in value. This happens regardless of whether any of the other criteria, such as population, have been met; therefore, even with 1 dwarf, a fort could be attacked if the fort were worth at least this value.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:&amp;lt;population&amp;gt;:&amp;lt;exp wealth&amp;gt;:&amp;lt;created wealth&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TITAN_ATTACK_TRIGGER:80:0:100000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = None (disabled). Only one requirement must be met for an attack.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Demon Types ===&lt;br /&gt;
&lt;br /&gt;
[[Demon|Demons]] are similar to titans and forgotten beasts in that they are procedurally generated, but unlike titans they are not unique. Thus many different types of demons will exist in the world but there will be many members of each type. Setting this to zero means no demons will exist, limiting the amount of fun you can have. Thanks to [[Underworld spire|certain fun things]], no demons also means no goblins.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DEMON_NUMBER:52]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Night Troll Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Night troll|night trolls]] that will exist in the world. These are also procedurally generated. Setting this to zero means that the world will have no night trolls.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NIGHT_TROLL_NUMBER:77]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Bogeyman Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Bogeyman|bogeyman]] forms that will exist in the world. Bogeyman are procedurally generated, though their forms do not vary by much. Setting this to zero, means that the world will have no bogeyman. Additionally setting this to zero will not allow custom bogeymen to appear in the world.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[BOGEYMAN_NUMBER:27]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Vampire Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Vampire|vampires]] that will exist in the world. Although they too are generated at the start of a new world, they generally no different from one another, with the biggest difference being what stat bonuses their vampirism gives {{verify}}. Setting this to zero means no vampires will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VAMPIRE_NUMBER:72]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Werebeast Curse Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Werebeast|werebeasts]] that can exist in the world. It is common for werebeasts, unlike vampires, to assume many different forms and variations, the most well known of these amount as different species of animal beasts. From lizards, to wolves, to maybe even bears. Setting this to zero means no werebeasts will exist.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[WEREBEAST_NUMBER:58]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Secret Types ===&lt;br /&gt;
&lt;br /&gt;
The number of secrets that exist in the world. Currently, all secrets are secrets of life and death, and the ones holding these secrets are necromancers. Setting this to zero means that no [[necromancer]]s will appear.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SECRET_NUMBER:44]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Regional Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of interactions that can be caused in regions, which may incorporate evil rain and cloud types. Currently, only evil region interactions are generated this way.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGIONAL_INTERACTION_NUMBER:20]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Disturbance Interaction Types ===&lt;br /&gt;
&lt;br /&gt;
The number of different [[Mummy|disturbed dead]] {{verify}} that can exist in the world. Setting this to zero, while being as pointless as is, (since you're never forced to enter a tomb anyway), will most likely prevent any toilet roll spooks from appearing, but it may or may not also prevent the existence of the pyramids which house them too.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DISTURBANCE_INTERACTION_NUMBER:10]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Cloud Types ===&lt;br /&gt;
&lt;br /&gt;
This number specifies [[Weather#Evil weather|the total amount of various face-melting, eye-boiling, and zombifyingly-fun]] clouds of pure evil may appear in your world. Setting this to zero means you no longer will ever have to deal with encroaching dust walls of doom in that world. I'd keep this value low...&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_CLOUD_NUMBER:45]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Evil Rain Types ===&lt;br /&gt;
&lt;br /&gt;
The lesser of a relatively large group of evils... evil rain. This number states how many different types of green-ooze drenchers, disconcerting blood-showers, and sickly yellow slime-baths can occur in your world. Compared to evil clouds though, this one hardly is worth stressing out about, usually.... Setting this to zero means the only semi-solid to fully liquid liquids to fall from the sky will be pure H2O. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_RAIN_NUMBER:352]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Generate Divine Materials ===&lt;br /&gt;
&lt;br /&gt;
This turns the generation of [[Divine_metal|divine metals]] on or off. It does not influence the creation of vaults.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GENERATE_DIVINE_MATERIALS:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Desired Good/Evil Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These values change the amount of [[Surroundings#Good|good or evil]] tiles on the map, depending on the size of the region they are being considered for.&lt;br /&gt;
&lt;br /&gt;
The exact size of small, medium, and large are: small is 1-24, medium is 25-99, and large is 100+, for any map size. The counts used here will always be restricted to regions of the given size no matter how large the number. Also, the count is more of a goal than a minimum or maximum. As a result you can end up with many more or many fewer than the requested number of squares in some situations.&lt;br /&gt;
&lt;br /&gt;
In particular, if you have something like a case where only 3 large regions exists in a world, and you request &amp;quot;1 evil square&amp;quot; in large regions, you will end up with one of the large regions being ''entirely evil''. So any non-zero value in one of these settings essentially means &amp;quot;force at least one region of this size to be all good/evil.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;evilness&amp;quot; of evil biomes is also impacted by savagery.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations can not exist in good and/or evil squares, so too many of one or the other may limit the size of certain types of civilizations. Dwarves, for example, need non-aligned biomes. Creating to many evil biomes seem to lead to the danger of an early extincion of many civilizations.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[GOOD_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Set count to zero to disable for that region size.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:&amp;lt;small region&amp;gt;:&amp;lt;med region&amp;gt;:&amp;lt;lg region&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EVIL_SQ_COUNTS:100:1000:2000]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Biome Square Counts ===&lt;br /&gt;
&lt;br /&gt;
These numbers control whether or not a world will be rejected based on a lack of different [[biome|biomes]]. Raising these numbers will '''not''' automatically generate the given number of squares of the given biome! For a biome to exist, certain conditions like elevation and rainfall must exist.&lt;br /&gt;
&lt;br /&gt;
These parameters simply filter out worlds that (for example) randomly fail to have enough high elevation squares to support a given number of mountains, etc. Some settings may cause worlds to always be rejected. For example, if for some reason the maximum elevation parameter is set to a value below what will support mountain biomes, it will be impossible to satisfy a non-zero requirement for mountain squares. The same principle goes for other conditions and biomes such as low elevations and oceans, etc.&lt;br /&gt;
&lt;br /&gt;
Certain civilizations require different biomes to exist (such as dwarves and mountains), so eliminating certain biomes will make it impossible for certain civilizations to form.&lt;br /&gt;
&lt;br /&gt;
These parameters often result in infinite world rejection problems. See [[World rejection]] for information on solving problems related to worlds always being rejected due to one or more of these parameters.&lt;br /&gt;
&lt;br /&gt;
0 means no minimum for rejection. Setting to 0 does not guarantee 0 squares of that biome.&lt;br /&gt;
&lt;br /&gt;
==== Biome Type Requirement Table ====&lt;br /&gt;
&lt;br /&gt;
Terrain requirements for various biomes are described below.{{Verify}} Note that some of the exact ranges are unknown.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Biome&lt;br /&gt;
! colspan=&amp;quot;4&amp;quot;  | Terrain Requirement&lt;br /&gt;
|-&lt;br /&gt;
! Elevation&lt;br /&gt;
! Rainfall&lt;br /&gt;
! Temperature&lt;br /&gt;
! Drainage&lt;br /&gt;
|-&lt;br /&gt;
| Swamp/Marsh&lt;br /&gt;
| 100-299&lt;br /&gt;
| 33-100&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-32&lt;br /&gt;
|-&lt;br /&gt;
| Desert/Badland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-9&lt;br /&gt;
| non-freezing&lt;br /&gt;
| note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Forest&lt;br /&gt;
| 100-299&lt;br /&gt;
| 66-100&lt;br /&gt;
| non-freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|-&lt;br /&gt;
| Mountains&lt;br /&gt;
| 300-400&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Ocean&lt;br /&gt;
| 0-99&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
| N/A&lt;br /&gt;
|-&lt;br /&gt;
| Glacier&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 80(?)-100&lt;br /&gt;
|-&lt;br /&gt;
| Tundra&lt;br /&gt;
| 100-299&lt;br /&gt;
| N/A&lt;br /&gt;
| Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Grassland&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 0-66&lt;br /&gt;
|-&lt;br /&gt;
| Hills&lt;br /&gt;
| 100-299&lt;br /&gt;
| 0-66&lt;br /&gt;
| Non-Freezing&lt;br /&gt;
| 66-100&lt;br /&gt;
|}&lt;br /&gt;
note&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; drainage: 00-32 sand desert, 33-49 rocky wasteland, 50-65 rocky wasteland but different characters/appearance, 66-100 badlands&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Square Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of squares of the given biome that must exist before things like erosion take place.&lt;br /&gt;
&lt;br /&gt;
One thing to keep in mind is the maximum number of squares on a map of a given size. If the total number of squares on a map is lower than the sum of all square count parameters then you will get infinite world rejection.&lt;br /&gt;
&lt;br /&gt;
To determine the number of squares on a map, just multiply the dimensions. In practice these parameters will need to sum to lower than the maximum because some space is needed for &amp;quot;slack&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Map Size&lt;br /&gt;
! Number of Squares&lt;br /&gt;
|-&lt;br /&gt;
| 17x17&lt;br /&gt;
| 289&lt;br /&gt;
|-&lt;br /&gt;
| 33x33&lt;br /&gt;
| 1089&lt;br /&gt;
|-&lt;br /&gt;
| 65x65&lt;br /&gt;
| 4225&lt;br /&gt;
|-&lt;br /&gt;
| 129x129&lt;br /&gt;
| 16614&lt;br /&gt;
|-&lt;br /&gt;
| 257x257&lt;br /&gt;
| 66049&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Minimum Initial Region Count ====&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of regions of contiguous biome squares that must exist before other processes such as erosion take place.&lt;br /&gt;
&lt;br /&gt;
==== Minimum Final Region Count ====&lt;br /&gt;
&lt;br /&gt;
This many regions of the given biome must exist after erosion and similar phases of generation have been completed.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:SWAMP:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:DESERT:1032:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:FOREST:4128:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:MOUNTAINS:8256:9:9]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:OCEAN:8256:7:6]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GLACIER:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:TUNDRA:0:0:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:GRASSLAND:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:&amp;lt;init sq&amp;gt;:&amp;lt;init rg&amp;gt;:&amp;lt;final rg&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[REGION_COUNTS:HILLS:8256:13:12]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
	&lt;br /&gt;
=== Erosion Cycle Count ===&lt;br /&gt;
&lt;br /&gt;
Tells the world-generator how long the world has to erode its tall peaks down to mountainsides during the 'running rivers...' stage of world creation. The higher this number, the less jagged the world will be, and the more wide the major rivers will be. If you use the maximum number, your mountains will dissolve before your eyes into plains which can lead to rejections if there aren't enough mountains to use for river start points and dwarven civilization origin points. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[EROSION_CYCLE_COUNT:250]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum/Desired River Start Locations ===&lt;br /&gt;
&lt;br /&gt;
This is the minimum number of riverheads that must exist before and after erosion takes place. Worlds will be rejected if they fail to meet these numbers. As with minimum biome counts, raising this number doesn't automatically create this many riverheads. Other conditions like terrain and rainfall must exist for rivers to form.&lt;br /&gt;
&lt;br /&gt;
Extremely high pre-erosion values speed erosion greatly, while low post erosion values are useful for limiting rejects due to lack of river origin points. One can try the 800 value to get more lakes.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:&amp;lt;min pre-erosion&amp;gt;:&amp;lt;des post-erosion&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RIVER_MINS:200:400]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 800&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Periodically Erode Extreme Cliffs ===&lt;br /&gt;
&lt;br /&gt;
If enabled, makes every impassable rock wall into a series of ramps. Some prefer to pump up erosion to about 250, and turn the &amp;quot;Desired pre-erosion river count&amp;quot; to 0 for good erosion and no extra canyons.&lt;br /&gt;
&lt;br /&gt;
Normally this is set to Yes (1).&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PERIODICALLY_ERODE_EXTREMES:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Do Orographic Precipitation and Rain Shadows ===&lt;br /&gt;
&lt;br /&gt;
Toggle that allows terrain height to affect rainfall. For example, moist air coming from the ocean blows over the land. As the terrain gets higher, it forces the moist air up, causing it to rain on the seaward side of a mountain. Eventually, all the rain has fallen if the mountain is tall enough. So, when the breeze goes over the top, there's no moisture left to fall on the other side, creating a rain-shadow. In the current version regions where drainage is above 50 will also create rain shadows, regardless of the underlying biome and elevation.{{cite forum|140685/5484064}} The rain shadows will always be created as if the wind is blowing from west to east.&lt;br /&gt;
&lt;br /&gt;
Turning this on should create a tendency for more extreme rainfall in regions, creating more forests, deserts, marshlands, and grasslands. Also note that it can create rainfall outside of min-max rainfall settings, so even in a world with a 0 max rainfall you may get rainfall biomes. Turning it off should result in more controllable, less complex rainfall conditions based on rainfall parameters as it adds a random element which can distort or otherwise mess up the climates on a pregenerated map.&lt;br /&gt;
&lt;br /&gt;
This should be disabled if you're importing a map or using a preset map file that has weather. &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[OROGRAPHIC_PRECIPITATION:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Maximum Number of Subregions ===&lt;br /&gt;
&lt;br /&gt;
This is the number of separate biomes (the flashing regions you see on embark when you hit F1, F2, etc. when there's more than one biome on the embark location) that are allowed to exist on the entire map.&lt;br /&gt;
&lt;br /&gt;
Setting this to very low values will result in numerous rejections depending on [[#X and Y Variance|variance parameters]]. If variance values are set to high numbers, many small biomes will be created causing rejection if this parameter value is not increased beyond the default.&lt;br /&gt;
&lt;br /&gt;
Increasing the value of this tag is often a must when generating &amp;quot;patchwork&amp;quot; worlds with lots of biome variance, but simply increasing it without increasing variance parameters will not guarantee more biomes.&lt;br /&gt;
&lt;br /&gt;
It is also interesting to note that the maximum subregions is 5000 which is more than the total number of squares for a pocket or small map. However for a medium or large map (16641 or 66049 squares) it quickly becomes a mere fraction of the total number of possible subregions. In fact it would be quite easy on a large map to end up with far too many subregions and get endless rejections of this type.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SUBREGION_MAX:2750]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 1 to 5000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Cavern Parameters ===&lt;br /&gt;
[[Caverns]] are the hollow areas underground which dwarves tend to encounter when they're digging around.&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layer Number ====&lt;br /&gt;
&lt;br /&gt;
This parameter determines how many cavern systems will be generated, not including the Magma layer or the Bottom layer.  Defaults to three. Setting it to lower values could help FPS.&lt;br /&gt;
&lt;br /&gt;
'''Warning:'''&lt;br /&gt;
*Disabling caverns by setting this to 0 will make it impossible to grow any underground plants, as none will exist for your civilization to cultivate. (Underground plants will not be available on embark.)&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_COUNT:3]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Cavern Layout Parameters ====&lt;br /&gt;
&lt;br /&gt;
Open caverns and dense passageways are not mutually exclusive. When both are raised, bizarre results can occur, such as layers showing a combination of open caverns, a cluster of network passages, and natural walls sprinkling the inside of an otherwise open cavern. [http://www.bay12forums.com/smf/index.php?topic=76355.msg1936859#msg1936859 Reference]&lt;br /&gt;
&lt;br /&gt;
If you want the largest open spaces possible, then decrease the density and increase the openness. If you want a labyrinth of passageways, lower the openness and raise the passage density.&lt;br /&gt;
&lt;br /&gt;
Another interesting note about the cavern layers is that the seed and number of demon types affect the layout of the caverns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200 heights=200 perrow=2&amp;gt;&lt;br /&gt;
File:Open00Density100.jpg|Cavern slice with Openness of 0 and Density of 100&lt;br /&gt;
File:Open100Density00.jpg|Cavern slice with Openness of 100 and Density of 0&lt;br /&gt;
File:Open100Density100.jpg|Cavern slice with Openness of 100 and Density of 100&lt;br /&gt;
File:Open50Density50.jpg|Cavern slice with Openness of 50 and Density of 50&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Layer Openness Min/Max =====&lt;br /&gt;
&lt;br /&gt;
Dictates the size of cavern passages. When Passage Density (see below) is set to minimum (0), caverns will be open expanses. Raising the maximum will increase the size of the caverns.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_OPENNESS_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Layer Passage Density Min/Max =====&lt;br /&gt;
&lt;br /&gt;
This determines how many passages form the cavern. If openness (see above) is set to minimum and density increased then you will get a maze like network of small criss-crossing passages. Raising the values further increases the number of the maze-like passages.&lt;br /&gt;
&lt;br /&gt;
Caverns will be large, open spaces at 0, and comprised of many small vertical shafts of rock at 100. Setting both values to be the same results in a uniform look for the caverns.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100 &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
See [http://www.bay12forums.com/smf/index.php?topic=76355.0 this forum thread] for more information on openness and density including many more images.&lt;br /&gt;
&lt;br /&gt;
===== Layer Water min\max =====&lt;br /&gt;
&lt;br /&gt;
Determines how many caverns will have water at the bottom.  Note that, even at 100, there will be some amount of ground in caverns, but each cavern 'bubble' will contain some amount of water.&lt;br /&gt;
&lt;br /&gt;
At 0, there will be no water in your caverns.  This may impact future underground plant growth, although maps will still start with underground flora.{{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MIN:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVERN_LAYER_WATER_MAX:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Magma Layer ====&lt;br /&gt;
&lt;br /&gt;
This parameter controls whether the [[magma sea]] exists.&lt;br /&gt;
&lt;br /&gt;
Setting 1/Yes causes the magma layer to exist, value 0/No prevents it. Appears not have impact on volcanoes, nor volcanism, so even if 0/No there will still be embark locations with magma. If a [[volcano]] exists, it appears to always tap the magma sea, but the magma sea will not be revealed by revealing the volcano.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_1:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Bottom Layer ====&lt;br /&gt;
&lt;br /&gt;
Determines if the space below the magma sea exists. If Yes the &amp;quot;HFS&amp;quot; layer is always present. Normally you want to leave this set to Yes for maximum fun.&lt;br /&gt;
&lt;br /&gt;
If enabled, this will force the magma layer above it. (Unknown whether this has any impact on occurrence of HFS &amp;quot;temple&amp;quot;.){{Verify}}&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[HAVE_BOTTOM_LAYER_2:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Z Levels (Depth) Settings ===&lt;br /&gt;
&lt;br /&gt;
These parameters control the &amp;quot;thickness&amp;quot; of various &amp;quot;layers&amp;quot; on the map. Note that a &amp;quot;layer&amp;quot; in this case does not refer to one Z-level, but refers to a number of related Z-levels such as &amp;quot;levels above ground&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The following table assumes that you have 3 cavern layers.  The Levels Above Layer settings control how many Z-Levels are above each layer.  A layer may itself consist of multiple Z-Levels (and almost always does).&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-style=&amp;quot;background:#F2F2F2;text-align:center;&amp;quot;&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;120&amp;quot;|Setting Name&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot; width=&amp;quot;200&amp;quot;|Token&lt;br /&gt;
!style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Ground&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_GROUND:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| The number of Z-Levels of air above the highest surface level.&amp;lt;br /&amp;gt;Has no impact on how many Z-levels deep the surface layer is.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above layer 1&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_1:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of stone above the first cavern layer.  Making this higher will guarantee ''at least'' this many levels to build your fortress, but will have no impact on how many z-levels thick the surface layer is.  Also, the top of a cavern may be higher than the rest of a cavern, so in practice there will be more &amp;quot;solid&amp;quot; levels than this above the cavern.&lt;br /&gt;
As for version 0.31.25 this setting is inaccurate. The actual number of z-levels may vary in a range of approx. ±5, which may result in non-existence of any solid z-levels between a surface layer and first cavern layer.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 2&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_2:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of second cavern and very bottom of first cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 3&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_3:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-levels of earth between very top of third cavern and very bottom of second cavern.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 4&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_4:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Z-Levels of earth between very highest magma and very bottom of third cavern.&amp;lt;br /&amp;gt;Spoiler Hidden (select invisible text to read): &amp;lt;span style='color:#eee;'&amp;gt;Making this high will give a large area for HFS veins, so that it never touches caverns, giving more to mine '''if''' it was impacting the cavern previously.&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Above Layer 5&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_ABOVE_LAYER_5:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Uncertain.  May control the number of levels of &amp;quot;Semi Molten Rock&amp;quot; between HFS and Magma, may control number of levels of magma, may impact both.&amp;lt;br /&amp;gt;In experimentation, the overall depth of all magma sea and semi-molten rock levels appears to increase, but not consistent enough to say for certain.&amp;lt;br /&amp;gt;Only valid if Magma Layer present.&amp;lt;br /&amp;gt;Spoiler Hidden:&amp;lt;span style='color:#eee;'&amp;gt;Often the HFS vein will only extend as high as the highest magma, making this the only guaranteed way to increase amount of HFS to mine, but unfortunately also creating enormous useless semi-molten z-levels&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| At Bottom&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| &amp;lt;nowiki&amp;gt;[LEVELS_AT_BOTTOM:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|style=&amp;quot;border:1px #AAA solid;padding:0.2em;&amp;quot;| Appears to be number of levels of HFS chamber.&amp;lt;br /&amp;gt;Only valid if Bottom Layer present.&amp;lt;br /&amp;gt;Often has no impact.&amp;lt;br /&amp;gt;Values larger than default results in strange things.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Some implications:&lt;br /&gt;
* The number of surface layers (e.g. soil), at this time, can not be controlled.  For example, on a map with 1 layer of Peat, then a layer of Silt, then a layer of Obsidian, there is no control to let you increase either one to be, say, 20 z-levels. (though you may get lucky with the Obsidian).&lt;br /&gt;
* There can be multiple stone layers between the cavern and the surface.  So increasing Levels Above Layer 1 may give you more Conglomerate, or more Granite, and you have no control over which stone layer spans those Z-Levels.&lt;br /&gt;
* The layers shown on embark span across the cavern layers in an unknown and inconsistent way.  Sometimes those 10 different layers of stone are evenly distributed over your 400 z-level deep map, sometimes the first 9 get 1 z-level each and the last gets the other 391 levels.  No way to control found yet.&lt;br /&gt;
* The HFS temple, if present, will always extend into the rock layers, and appears to always make contact with the bottom cave.  Large values for levels above layer 5 and layer 4 can result in enormous temples, but the number of levels at the top (the part with undead) appears to be unaffected.&lt;br /&gt;
* Unconfirmed whether number of levels between caverns has any impact on cavern height.  There will be connecting ramps and/or shafts between cavern layers no matter how many levels are between them.&lt;br /&gt;
* '''Very Important''': These values appear to apply across a whole 16x16 Region, not just embark areas.  That means that if a 16x16 region is completely flat, but has one tall mountain in one far corner, even if you set Levels Above Ground low (e.g. 2 z-levels) you still have all the empty air of the highest mountain in every embark tile (e.g. 200 z-levels).  Also can happen to the semi-molten layer, and can lead to unexpected behavior.&lt;br /&gt;
* Very large values can cause strange things to happen.  Even more true for small values.&lt;br /&gt;
&lt;br /&gt;
=== Cave Parameters ===&lt;br /&gt;
&lt;br /&gt;
Caves are sort of like caverns except that they have a passage to the surface and are generally much smaller. Caves can connect to caverns if they are sufficiently deep.&lt;br /&gt;
&lt;br /&gt;
==== Minimum/Maximum Natural Cave Size ====&lt;br /&gt;
&lt;br /&gt;
These parameters appear to control the length and depth of caves.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MIN_SIZE:5]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 1 to 500&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[CAVE_MAX_SIZE:25]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Number of (Non-)Mountain Caves ====&lt;br /&gt;
&lt;br /&gt;
The number of caves that will be generated. Lurking kobolds set up shop in caves and store stolen items here. A setting of 0 in both will stop kobold civilizations from appearing.  Special note: a cave is not a lair.  &lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[MOUNTAIN_CAVE_MIN:100]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | Range: 0 to 800&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[NON_MOUNTAIN_CAVE_MIN:200]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Make Caves Visible ====&lt;br /&gt;
&lt;br /&gt;
If set to no (default) then the location of caves will not be marked on the map. If set to yes, caves will appear on the map as {{Raw Tile|•|#808080|#00DD00}} symbols so that they may be sought out or avoided as desired.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ALL_CAVES_VISIBLE:0]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Allow Init Options to Show Tunnels ===&lt;br /&gt;
&lt;br /&gt;
This parameter doesn't do anything.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:&amp;lt;0-2&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SHOW_EMBARK_TUNNEL:2]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 0 = No&amp;lt;br/&amp;gt;1 = Only in Finder&amp;lt;br/&amp;gt;2 = Always&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Number of Civilizations ===&lt;br /&gt;
&lt;br /&gt;
This number of civilizations will be placed on the map before history generation begins. These civilizations may later die out due to historical events. The five races are dwarf, elf, human, goblin, and kobold; they will be placed in equal numbers until the quota has been reached. If there is an odd number of civs (not divisible by 5), then the remainder is distributed randomly. Kobold civs require caves to be placed; if no caves exist, then kobolds are skipped and will not appear. This does not cause rejections [http://www.bay12forums.com/smf/index.php?topic=112465.msg3415125#msg3415125 &amp;lt;sup&amp;gt;data&amp;lt;/sup&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
Note that a high value here can cause lots of map rejections, particularly on smaller maps as there simply isn't enough room or regions to put them all in.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:&amp;lt;number&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[TOTAL_CIV_NUMBER:40]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Range: 0 to 300&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Playable Civilization Required ===&lt;br /&gt;
&lt;br /&gt;
If this is set to yes (default) then worlds will be rejected if no civilization with [[Entity token|CIV_CONTROLLABLE]] can be placed. In an unmodded game, only the dwarves have this token.&lt;br /&gt;
&lt;br /&gt;
If set to no, the result may be a world that cannot be played in Fortress Mode.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:&amp;lt;1 or 0&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[PLAYABLE_CIVILIZATION_REQUIRED:1]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| 1/0 = Yes/No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Minimum Number of Mid/Low/High Characteristic Squares ===&lt;br /&gt;
&lt;br /&gt;
Sets the minimum possible number of squares of certain ranges of each of the region qualities, such as elevation, rain, drainage, volcanism, savagery, and temperature. These need to be changed to reflect your regional meshes and weights. These are responsible for a HUGE number of map rejections. These values can all be set to 0 for much fewer map rejections, particularly in the case of more wacky, non-standard maps. &lt;br /&gt;
&lt;br /&gt;
These values will cause worlds to be rejected unless at least the given number of squares of the given type are randomly generated. Setting these values too high could result in worlds always being rejected if other parameters such as the maximum/minimums for elevation, etc., don't allow enough of those squares to get generated.&lt;br /&gt;
&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot;&lt;br /&gt;
! Token&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[ELEVATION_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| rowspan=&amp;quot;5&amp;quot; | Minimum number of squares that must have low, medium, and high amounts of the given attribute.&amp;lt;br/&amp;gt;&lt;br /&gt;
0 = No minimum&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[RAIN_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[DRAINAGE_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[SAVAGERY_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:&amp;lt;low sq&amp;gt;:&amp;lt;mid sq&amp;gt;:&amp;lt;high sq&amp;gt;]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
| &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[VOLCANISM_RANGES:8256:16512:8256]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==World rejection==&lt;br /&gt;
&lt;br /&gt;
:''Main article [[World rejection]]''&lt;br /&gt;
&lt;br /&gt;
If you are having the common problem of your generated worlds always being rejected by the world generator, see [[v0.31:World rejection|Solving World Rejection Problems (v0.31 page)]] as it contains many detailed suggestions on how to troubleshoot and solve these issues.&lt;br /&gt;
&lt;br /&gt;
== Default Worldgen Parameters ==&lt;br /&gt;
&lt;br /&gt;
There is no single default for each parameter. Several advanced world generation profiles come with the game by default. See [[world_gen.txt|Default world_gen.txt]] to take a look at this file.&lt;br /&gt;
&lt;br /&gt;
== Parameter Set Examples ==&lt;br /&gt;
&lt;br /&gt;
If you're trying to do something specific then the [[Worldgen examples|Worldgen examples]] might be helpful. These are complete parameter sets that can be copied directly into your ''world_gen.txt'' file and customized as desired.&lt;br /&gt;
If they have nothing for you try [[Worldgen Tricks|Worldgen Tricks]], for known tricks and tips on making a world just right for you.&lt;br /&gt;
&lt;br /&gt;
For many many more examples see:&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=101280 DF2012 (v0.34) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
* [http://www.bay12forums.com/smf/index.php?topic=140180 DF2014 (v0.40) WorldGen &amp;quot;Cookbook&amp;quot; Thread]&lt;br /&gt;
&lt;br /&gt;
{{World}}&lt;/div&gt;</summary>
		<author><name>Chinchou</name></author>
	</entry>
</feed>