<?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=Ikkonoishi</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=Ikkonoishi"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Ikkonoishi"/>
	<updated>2026-05-26T06:39:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:How_do_I_increase_the_value_of_a_room&amp;diff=55423</id>
		<title>40d:How do I increase the value of a room</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:How_do_I_increase_the_value_of_a_room&amp;diff=55423"/>
		<updated>2009-10-18T14:17:02Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Furniture */  roads and expanded artifacts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Stub]]&lt;br /&gt;
&lt;br /&gt;
=Wall and Floor quality=&lt;br /&gt;
&lt;br /&gt;
==Material==&lt;br /&gt;
Digging a room within a layer consisting of [[obsidian]] or [[flux]] will inherently give it a higher value than a room built inside a mundane stone such as granite or gabbro. Additionally, veins or clusters of precious minerals (whether [[ore]]s or [[gem]]s) which pass through the room can provide a dramatic boost in value.&lt;br /&gt;
&lt;br /&gt;
==Engraving==&lt;br /&gt;
[[Room quality]] can be increased by [[smooth|smoothing]] and [[engrave|engraving]] the walls and the [[floor]].&lt;br /&gt;
Stone can be smoothed by any skilled dwarf without decreasing quality, but always engrave with more skillful Dwarves as unskilled Dwarves will permanently prevent you from putting a nice engraving there.&lt;br /&gt;
&lt;br /&gt;
==Construction==&lt;br /&gt;
Constructing floors in a room using high-value building components (such as [[aluminum]] or [[platinum]] bars, or perhaps [[soap]] made from [[megabeast]] fat) can dramatically increase the value of a room if its location is important but valuable stones do not occur in the region. Note that constructed floors cannot be engraved, and constructing a floor on top of an existing engraving will destroy the engraving, resulting in the usual consequences of [[engraving#Art defacement|art defacement]].&lt;br /&gt;
&lt;br /&gt;
=Furniture=&lt;br /&gt;
Any [[Furniture]] (such as [[statues]], [[chests]], [[cabinets]] or anything listed below) will increase room value.  If made out of a material that the dwarf who owns the room likes, they will perceive the room as more valuable than its listed value, and be [[thought|happier]] for it. For instance, if a dwarf likes [[copper]] and/or [[armor stand]]s and you put a +copper armorstand+ in the room, she may view that as a *copper armorstand*.  Whether this would be better than a +gold armorstand+, which would simply hammer room value without the increased perception, is in doubt.  Dwarves that do not have such preferences perceive the room at its base value.&lt;br /&gt;
&lt;br /&gt;
==Lever==&lt;br /&gt;
[[Lever]]s count as furniture for the purpose of increasing room value, and an unlimited number of mechanisms can be connected to a lever simply by linking it to an object and subsequently deconstructing said object (either directly, or by simply pulling the lever if the object is a [[cage]], [[restraint]], or [[support]]).&lt;br /&gt;
&lt;br /&gt;
==Trap==&lt;br /&gt;
Weapons not being used by your dwarves (whether due to your military structure or due to the weapon being inherently unusable) can be placed in weapon traps, and traps located in a room will increase the value of the room by the value of all components. A trap containing an artifact weapon can easily max out a room's quality. This works for both conventional weapon traps and upright spears. As an added bonus, a strategically placed menacing spike in an annoying [[Noble]]'s room can also be employed for the purpose of arranging an [[unfortunate accident]].&lt;br /&gt;
&lt;br /&gt;
==Cages==&lt;br /&gt;
[[Cages]] seem to add the value of the animals occupying them to the room value, and you can store unlimited amounts of animals in one cage.&lt;br /&gt;
&lt;br /&gt;
==Roads==&lt;br /&gt;
You can set a road to be built at maximum size and therefore use the maximum amount of building material (26 items), and still fit it on a single tile so long as all of the other tiles it would be built on are walls or empty space. This means you can have 26 pieces of aluminum or megabeast tallow soap adding value to a room with little effort.&lt;br /&gt;
&lt;br /&gt;
==Other items==&lt;br /&gt;
[[Coffins]] not set to burial are not considered rooms and so can be built in other rooms without decreasing that room's value. This takes up space, but you do have to put the coffins somewhere anyways. You might as well get value from them.&lt;br /&gt;
&lt;br /&gt;
==Artifacts==&lt;br /&gt;
Most artifacts will boost a room to 'royal'. Furniture artifacts can be built directly, weapons can be put in weapon traps, and buckets can be put in wells.&lt;br /&gt;
&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Obsidian_farming&amp;diff=54268</id>
		<title>40d:Obsidian farming</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Obsidian_farming&amp;diff=54268"/>
		<updated>2009-10-08T15:56:11Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By mixing [[magma]] and [[water]], dwarves can produce [[obsidian]], a highly valued material. This process can be dangerous, but the dangers can be minimized if approached carefully.  It's advised that players research this before proceeding if they want to avoid too much [[fun]] all at once.&lt;br /&gt;
&lt;br /&gt;
If you have a [[magma pipe]] (not a [[magma pool]]!) and an inexhaustible source of water, you can produce an infinite supply of obsidian by setting up an area for magma to flow (and later the obsidian to be dug/channeled out), and for water to be poured on top of it, creating the obsidian.  The trick is to use only as much magma and water as necessary, so deep water does not prevent dwarves from working in &amp;quot;[[dangerous terrain]]&amp;quot;, and the magma pipe has time to refill between harvests.&lt;br /&gt;
&lt;br /&gt;
There are as many designs for &amp;quot;farming&amp;quot; obsidian as there are players who do it.  Below is a basic plan; improvements are up to you and your imagination.&lt;br /&gt;
&lt;br /&gt;
===basic approach===&lt;br /&gt;
&lt;br /&gt;
There are 3 levels to the standard obsidian &amp;quot;farm&amp;quot;; the lowest for magma/obsidian, the middle for dwarves to dig down and channel the obsidian out once it's been created, and the upper-most for a water reservoir.  This is basically all one open area - no floors exist between the levels.&lt;br /&gt;
&lt;br /&gt;
 Level +2   &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;    &amp;lt;- water reservoir&lt;br /&gt;
 Level +1           &amp;lt;- work area &amp;amp; access for miners for channeling &lt;br /&gt;
 Level 0   xxxxxx   &amp;lt;- magma/obsidian &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; SIDE VIEW&lt;br /&gt;
&lt;br /&gt;
Magma is routed to flow directly into the lowest area, using doors/floodgates of [[magma-safe]] materials linked to a [[lever]] with a [[bauxite]] [[mechanism]] to turn the flow on/off.  Only a depth of 2/7 is needed (1/7 can work, but can also [[evaporate]] before the water is added, causing problems later - 2/7 to 3/7 is perhaps a good target to start with).  &lt;br /&gt;
&lt;br /&gt;
The water reservoir is built 2 z-levels above this with a controlled inflow of water (more linked doors/floodgates), sized to provide just enough water to cover the magma area below at a depth of between 1/7* and 2/7*, to fully cover the magma but allow for [[evaporation]].  The floor of this reservoir is channeled out and replaced with one or more retractable bridges, linked to a (single) lever, to drop the water all at once.  It is not necessary that the amount/depths of water and magma be balanced, only the area.  &lt;br /&gt;
&lt;br /&gt;
:''(* The math works like this: Determine the size of the magma level, the number of tiles you want to cover in water between 1/7 and 2/7 when the bridge drops the water. (Better a few too many than a few too few!)  Multiply that by 1.5 (average of 1/7 and 2/7).  Divide that by 7, and round up to the nearest whole number.  This gives the number of 7/7 tiles for your water reservoir.  ''&lt;br /&gt;
&lt;br /&gt;
:''Some players have a &amp;quot;measuring&amp;quot; reservoir that then dumps water onto the bridge reservoir for even distribution - see [[Obsidian farming#self-measuring reservoirs|below]].  Others use hatches or multiple smaller bridges to spread the water out across a wider area.  As mentioned above, there are many, ''many'' different tweaks and &amp;quot;improvements&amp;quot; to this design.)''&lt;br /&gt;
&lt;br /&gt;
One Z-level below the reservoir and above the magma a &amp;quot;working area&amp;quot; should remain empty for your future obsidian miners, covering the full area beneath the bridges plus a single row 'ledge' on at least one side (left/west is best).  Access to the digging level is only required from this on this mid-level, and lockable or linked doors are ''strongly'' suggested.&lt;br /&gt;
&lt;br /&gt;
The area beneath this access area, the lowest, should be channeled out - this is where the magma will be poured, prior to water being added.  The easiest/safest ways to do this are one row at a time, from east to west, or by digging ramps and then removing them all.   The ledge allows the last row of the whole area to be easily channeled.  In-flow of magma into this area is best if kept simple - just put in some gates and dig out a path. If obsidian is created in the middle work level (rather than in the lowest magma level), the water-reservoir bridges will be destroyed when that middle level is channeled out, requiring a re-building process.&lt;br /&gt;
&lt;br /&gt;
The process then is:&lt;br /&gt;
:* Clear all dwarves from area, lock/seal all access doors. (Not ''actually'' necessary, but ''strongly'' recommended!)&lt;br /&gt;
:* Fill lowest level (only!) with magma, at least 2/7.  &lt;br /&gt;
:* (Close magma gate(s) if you have them.)&lt;br /&gt;
:* Drop water from reservoir. ''(Inflow to reservoir should be sealed to prevent excess flooding.)''&lt;br /&gt;
:* Once water has turned all magma to obsidian, open access to middle area for workers.&lt;br /&gt;
:* Channel out obsidian, begin hauling (if no bauxite gates are used (see below), do '''NOT''' channel &amp;quot;plug&amp;quot; yet!)&lt;br /&gt;
:* Refill upper water reservoir while harvesting operations are ongoing&lt;br /&gt;
:* repeat&lt;br /&gt;
&lt;br /&gt;
Note that a ramp can be dug for the haulers, or doors built on the lowest level.  These do not need to be magma-safe (as they are not &amp;quot;submerged&amp;quot; in magma), but the obsidian in front of them must be channeled free for them to open.  It is (again) ''strongly'' recommended that these are locked or link and shut while the magma is flowing.&lt;br /&gt;
&lt;br /&gt;
===no bauxite===&lt;br /&gt;
For a no-bauxite-necessary method of producing obsidian, it's necessary to use water to &amp;quot;plug&amp;quot; the open channel that allows the magma to flow into the lowest level. Once the obsidian is mined and recovered, that &amp;quot;plug&amp;quot; is channeled out last, and the magma flows as above.  (Make sure the dwarf who channels out that plug has a safe escape route!) See [[User:King_of_the_Internet|here]].&lt;br /&gt;
&lt;br /&gt;
===Dangers===&lt;br /&gt;
Dangers are many, and experience is a hard teacher.  [[Fun]] is only funny up to a point.  Some of the common dangers/warnings include...&lt;br /&gt;
&lt;br /&gt;
* Be careful pressurizing the lava via pumps, as this can cause the lower reservoir to overflow.&lt;br /&gt;
* Be aware of up-staircases or other floor-perforations below the magma level that may cause leaking/flooding.&lt;br /&gt;
* Label your levers! (see below)&lt;br /&gt;
* Seal your dwarfs away from the magma until it is ''all'' obsidian.  Linked doors are the only &amp;quot;positive&amp;quot; locking system.  If you think you want to do it manually, keep the number of doors to a minimum.&lt;br /&gt;
* Try to balance the water - too little means left-over magma (which cannot be channeled around), and too much can [[dangerous terrain|disrupt work]] and evaporation may take too long and water can build up over repeated cycles.&lt;br /&gt;
&lt;br /&gt;
===Tricks &amp;amp; tips===&lt;br /&gt;
&amp;lt;!-- PUT PERSONAL DESIGN IDEAS HERE! ABOVE IS ONLY FOR &amp;quot;BASIC&amp;quot; CONCEPT.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====self-measuring reservoirs====&lt;br /&gt;
To create a reservoir that measures a pre-determined amount of fluid, use a combination of door(s) (or hatches/floodgates) and drawbridge(s) attached to one lever, one at the inflow and one at the outflow.  When a lever is thrown one way, doors open and drawbridges &amp;quot;raise&amp;quot; (sealing any path they block); when the lever is thrown the other way, the reverse happens, the doors sealing and the drawbridges opening.  Clever use of this fact can allow liquid to fill a &amp;quot;measuring reservoir&amp;quot;, which then seals the input while being emptied.  Once all the liquid is emptied, the lever is thrown again, the outflow seals, the inflow opens, and it refills to its full capacity, ready to deliver another pre-measured dose of liquid.&lt;br /&gt;
&lt;br /&gt;
====double-wide magma channels====&lt;br /&gt;
To designate a large area for channeling, one row must be designated at a time to prevent idiot miners from trapping themselves on an isolated island of stone.  While this may be the best use of space, creating double-wide channels for the magma/obsidian (possibly with double-wide bridges/water reservoirs immediately above them) is far easier to designate when it comes time to harvest the obsidian, and no dwarf will ever channel themselves into a corner.&lt;br /&gt;
&lt;br /&gt;
             ......................&lt;br /&gt;
             .cccccccccccccccccccc.&lt;br /&gt;
             .cccccccccccccccccccc.&lt;br /&gt;
             .cc...................&lt;br /&gt;
 Magma       .cccccccccccccccccccc.&lt;br /&gt;
 Source -&amp;gt; Gcccccccccccccccccccccc.&lt;br /&gt;
             .cc...................&lt;br /&gt;
             .cccccccccccccccccccc.&lt;br /&gt;
             .cccccccccccccccccccc.&lt;br /&gt;
             ......................&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; G = Magma-Gate (lowest level)&lt;br /&gt;
 c = channel (lowest level)&lt;br /&gt;
 . = floor (mid-level)&lt;br /&gt;
&lt;br /&gt;
====labeling levers====&lt;br /&gt;
One way or another, whenever handling magma it's a good idea to be sure which lever is which.  Using the [[note|labeling]] function is a good idea, especially if you leave your fortress and come back later.  But a visual cue is also a good idea, either by making the levers of [[The Non-Dwarf's Guide to Rock|different color stone]], or adding colored flooring or walls around/near them.  Perhaps &amp;quot;red&amp;quot; for magma, &amp;quot;blue&amp;quot; for water, and &amp;quot;green&amp;quot; for the lockable doors - whatever works best for you.  And/or placing them in order of use, from left to right.  Anything and everything that makes it safer and more &amp;quot;fool proof&amp;quot; can only be a good thing.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Using Pressure===&lt;br /&gt;
It is very useful to note that magma that is pumped will carry pressure and move up z-levels. It is possible to use this to set up a very simple and foolproof magma farm. &lt;br /&gt;
&lt;br /&gt;
First one level below where you want your farm you set up an access point for magma. Then on the level of your farm you build a pump. Connect the pump with your farm with a pipe on the level below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;(Side View)&lt;br /&gt;
        Pump&lt;br /&gt;
           |       Farm&lt;br /&gt;
           |       |&lt;br /&gt;
           V       V&lt;br /&gt;
        ######&lt;br /&gt;
        # =&amp;gt; #_____ _____#&lt;br /&gt;
Magma-&amp;gt; ~~##        ######  &lt;br /&gt;
Source  ##################&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When ready to fill just start pumping.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;(Side View)&lt;br /&gt;
        Pump(Running)&lt;br /&gt;
           |       Farm&lt;br /&gt;
           |       |(Full of Magma)&lt;br /&gt;
           V       V&lt;br /&gt;
        ######&lt;br /&gt;
        # =&amp;gt;~#~~~~~~~~~~~#&lt;br /&gt;
Magma-&amp;gt; ~~##~~~~~~~~######  &lt;br /&gt;
Source  ##################&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once it gets above 2 units on each tile stop pumping and pour water on the farm.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;(Side View)&lt;br /&gt;
        Pump(Stopped)&lt;br /&gt;
           |       Farm&lt;br /&gt;
           |       |(Full of Obsidian)&lt;br /&gt;
           V       V&lt;br /&gt;
        ######~~~~~~~~~~~~ &amp;lt;-- Water&lt;br /&gt;
        # =&amp;gt;~#############&lt;br /&gt;
Magma-&amp;gt; ~~##~~~~~~~~######  &lt;br /&gt;
Source  ##################&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then drain the water and dig up stairs in the obsidian. No need to channel the upstairs will allow your Dwarves easy access from above, and so long as the pump is stopped no magma will flow into the farm.&lt;br /&gt;
&lt;br /&gt;
'''See also:''' [http://www.bay12games.com/forum/index.php?topic=26805.0 Obsidian Farming 101], for an excellent forum discussion of this topic.&lt;br /&gt;
[[Category:Guides]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Experience&amp;diff=26373</id>
		<title>40d Talk:Experience</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Experience&amp;diff=26373"/>
		<updated>2009-10-02T06:26:41Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Special announcement on reaching legendary status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==from old wiki ==&lt;br /&gt;
Until experience points have been re-verified, this page should be marked as having been copied from the old Wiki.  I don't know how to do that and am too tired to research it right now.&lt;br /&gt;
&lt;br /&gt;
I will add that I intend to re-verify experience fairly soon.  &amp;amp;mdash;[[User:0x517A5D|0x517A5D]] 02:52, 14 November 2007 (EST)&lt;br /&gt;
:Done [[User:VengefulDonut|VengefulDonut]] 09:42, 14 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
==Strand extractor==&lt;br /&gt;
:Since I had a pile of Adamantine around, I decided to do the Extraction experiment.  It took a dwarf who had never extracted adamantine before 17 iterations to reach novice.  That makes it more than 29 and at most 32 xp per action.  I expect that it's a 30xp task, like so many others. [[User:Doctorlucky|Doctorlucky]] 05:07, 14 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
:I've now taken the dwarf to named level (Strand Extractor) with exactly 37 tasks, so it's 30xp. [[User:Doctorlucky|Doctorlucky]] 18:14, 14 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
:: Heh. On the Real Wiki, it's right about now that you'd be shot down for doing primary research! [[User:Runspotrun|Runspotrun]] 14:17, 1 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
::: Then we're the exact opposite of them: primary research is 99% of what we post. (The rest being essentially divine scripture--verifiably from the creator of the subject of our wiki.) --[[User:Alfador|Alfador]] 12:21, 6 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
==percentage calculation==&lt;br /&gt;
 ...but 27% of the time when Legendary+5, based off of a random d20 roll.&lt;br /&gt;
&lt;br /&gt;
27% on a d20?  You mean like rolling a 5.4 and below?  I'm curious how one can roll higher than a 5 and lower than a 6 on an integer-numbered die.--[[User:Draco18s|Draco18s]] 17:41, 1 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
:Rather easy when you consider that more than one test should be done and 27% ends up being the average. Odds are that if the game actually uses a d20 roll, then the programmed average is 25% with 2% margin of error in the experiment, well within acceptable margin. --[[User:N9103|Edward]] 18:20, 1 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
::It is not calculated from a d20 roll.  It is calculated from rolls of a d5, d10, d15, d20, d25, and potentially a d3.  And a quite complicated formula.  At least it was back in the 2D version.  Gory details in the [http://archive.dwarffortresswiki.net/index.php/Item_Quality archive].&amp;lt;br/&amp;gt;&amp;amp;mdash;[[User:0x517A5D|0x517A5D]] 14:24, 3 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mining and legendary +1,+2, ect. ==&lt;br /&gt;
&lt;br /&gt;
Do miners get any bonus for reaching legendary +1-5? --[[User:Heliopios|Heliopios]] 14:55, 1 December 2007 (EST)&lt;br /&gt;
:a legendary+5 will be faster than a legendary, but I don't know if that is just because of the 5 stat bumps that all classes get for moving from legendary to legendary+5.  I may look into it, but no promises.&amp;lt;br/&amp;gt;&amp;amp;mdash;[[User:0x517A5D|0x517A5D]] 22:53, 3 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
whats the experience gain for a pump operator? this would be interesting to see. Also, how long does a single pump operation take?&lt;br /&gt;
&lt;br /&gt;
==How many Exp other things give==&lt;br /&gt;
&lt;br /&gt;
Easier bundling of information for verification of missing experience point gain numbers. got a glassmaker at &amp;quot;accomplished&amp;quot; skill-level, he wasnt even dabbling when starting to produce glass and is the only glassmaker in my fortress. &amp;lt;br&amp;gt;i got 317 glass items in my fortress and havent sold a single. 9500/317=29.9... so that means 30 exp per made item. though he was only making windows, terrariums and blocks, so i dont know what about crafts and such smaller items, i'll add it to the table&amp;lt;br&amp;gt;&lt;br /&gt;
[[User:EvilTwin|EvilTwin]] 12:26, 16 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Gathering Silk==&lt;br /&gt;
&lt;br /&gt;
I'm pretty sure that a dwarf gains experience towards weaving by gathering silk only if the dwarf actually returns the thread to the loom.  I'd like someone else to verify it before I make a note of it somewhere.  [[User:Bouchart|Bouchart]] 09:50, 13 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Crafting Skills==&lt;br /&gt;
&lt;br /&gt;
Are we sure that crafting experience is awarded per item? Because sometimes you can get two or three items for one. [[Goblets]] always come in threes. Does this also apply to clothing and leatherwork? Because gloves and shoes always come in matched pairs. I'm hunting for ways to maximize experience gain. --[[User:Strangething|Strangething]] 02:25, 23 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:My best guess is per task, but I haven't actually tried to verify this.  &lt;br /&gt;
:Maximizing xp gain seems to involve giving a dwarf something they can do relatively quickly (engrave, tunnel through soil, etc...) or without much oversight (siege operation on a catapult, operate pump - likely slower but doesn't bias their 'strange mood' stat useage) to get them some stat upgrades, and then stick them doing what you actually want them doing.  Also, minimize hauling tasks, as that wastes dwarf time with no xp gain.  Unfortunately, most industry skills produce something, and so some hauling is essential to minimalize their time by avoiding clutter.  In other words, you can't simultaneously optimize every dwarf's xp gain at the same time, though you can maximize average xp gain over the whole fortress, but it likely involves not only cross-training but also efficient fortress design and finding a balance between clutter and wasted dwarf-time spent hauling.  Not to mention careful micromanagement of who exactly is hauling what to where to avoid unnecessarily long walks.  Ie, its complicated, and you'll probably spend hours setting up hauling tasks each fortress month. --[[User:Squirrelloid|Squirrelloid]] 07:29, 23 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::My approach is to focus on leveling up some key dwarves, and let the peons do the hauling and cleaning. I have seen random dwarves haul finished goods out of an occupied workshop, letting the craftsdwarf continue working. &lt;br /&gt;
--[[User:Strangething|Strangething]] 22:15, 25 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::I have a new theory on optimizing xp gain for all dwarves simultaneously, based on what i've observed military dwarves doing - let them stand around idle and throw parties.  They all gain social skills (and xp), there's no hauling involved, and thus no dwarf is wasting time doing non-xp earning activities.  Of course, you also aren't producing anything...  (It might make an interesting slow start for turbo cross-training later...).  I suppose the optimal economy would be a food producing one because the hauling involved in harvesting plants gives xp, and while this introduces some hauling (from stills and kitchens) without xp gain, its pretty minimal and easy to come up with a reasonably optimal fortress design for a single industry fortress.  And of course you'll need to produce beds and dining facilities for everyone, so a carpenter and mason are required, but we're mostly talking about a minimally hauling fortress that emphasizes social skill xp gain. --[[User:Squirrelloid|Squirrelloid]] 08:37, 26 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::::Yes, social actions are indeed overpowered, causing the majority of children to reach legendary well before adulthood. Obviously, such a system completely destroys both the economy (everyone ends up acting like it's pre-econ, since everyone's legendary social) and the meaning of gaining legendary dwarves, as opposed to specific legendaries, which are the only thing that has meaning still. --[[User:N9103|Edward]] 09:04, 26 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Any way to turn off the announcements? ==&lt;br /&gt;
&lt;br /&gt;
Every two seconds I'm getting &amp;quot;blablabla, blala is more experienced&amp;quot;. Is there a way of turning those messages off? --[[User:AlexFili|AlexFili]] 11:24, 4 June 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Nope. --[[User:Savok|Savok]] 11:23, 4 June 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Oh well, guess its another thing to add to &amp;quot;the list&amp;quot;. --[[User:AlexFili|AlexFili]] 11:24, 4 June 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[User:Ghoulsblade|Ghoulsblade]] 16:37, 28 February 2009 (EST) : making metal bars gives 30 exp each, i tried it : a dwarf with no skill reached novice blacksmith/metalsmith after making 17 metal blocks (x30=510 exp).&lt;br /&gt;
diff : http://www.dwarffortresswiki.net/index.php?title=Experience&amp;amp;diff=40788&amp;amp;oldid=36483&lt;br /&gt;
high skill is useful for making hiqh-quality anvils for selling.&lt;br /&gt;
It might even be possible to train this up at no cost, if the metal blocks are molten again using magma, but i still have to try that.&lt;br /&gt;
&lt;br /&gt;
[[User:Ghoulsblade|Ghoulsblade]] 17:37, 28 February 2009 (EST) : hmm, didn't work as well as i hoped, at least bronze seems to be completely destroyed by by the magma after a while. but it might work with an iron bin. it's just rather tricky to get it where you want it&lt;br /&gt;
&lt;br /&gt;
== Merging with [[skill]] ==&lt;br /&gt;
&lt;br /&gt;
I suggest this be merged with [[skill]].  They cover the same topic. --[[User:Zchris13|Zchris13]] 23:16, 28 March 2009 (UTC)&lt;br /&gt;
:No, they cover related topics.  And the two combined would become very cumbersome, perhaps overwhelming. There's enough for each to fill their own page nicely, and not much is redundant.--[[User:Albedo|Albedo]] 20:48, 1 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Appraisal, Broker==&lt;br /&gt;
&lt;br /&gt;
I was going to post this (and the code is on the page, simply hidden via &amp;lt;nowiki&amp;gt;&amp;lt;!-- ... --&amp;gt;&amp;lt;/nowiki&amp;gt;), then had a moment of clarity and decided to post here first for comment, criticism, confirmation or refutation. I ran several tests w/ diff trades/fortresses, it seems to be right, or as close as the notes explain it to be. --[[User:Albedo|Albedo]] 20:48, 1 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-left: 1px solid black; border-right: 1px solid black; border-spacing: 0 1px; background: black&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background: #288&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding: 0.2em 0.4em&amp;quot; | [[Appraisal]]        || View Goods for trade&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || align=&amp;quot;right&amp;quot; style=&amp;quot;padding: 0.2em 0.4em&amp;quot; | ≈7.5/item&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&lt;br /&gt;
|- style=&amp;quot;background: #288&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding: 0.2em 0.4em&amp;quot; | &amp;quot;[[Broker]]&amp;quot;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;        || Successful [[trade]]&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; || align=&amp;quot;right&amp;quot; style=&amp;quot;padding: 0.2em 0.4em&amp;quot; | ≈7.5&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:'''Notes:'''&lt;br /&gt;
::1) ''The first time the {{k|t}}rade button is used at a Depot for any single caravan, the dwarf who responded as broker immediately gains this amount, ≈7.5 experience x the number of items.  No further experience can be gained in Appraisal for this caravan for this dwarf or any other, but another dwarf can replace them as [[Broker]], respond to the call for a &amp;quot;Trader requested at depot&amp;quot;, and use their ''existing'' skill to see the value of goods and make trades.''&lt;br /&gt;
::2) ''In this context, &amp;quot;Broker&amp;quot; skills include [[Negotiator]], [[Judge of Intent]], [[Intimidator]], [[Persuader]], [[Comedian]], [[Flatterer]], and (apparently depending on the dwarf) [[Liar]].''&lt;br /&gt;
::3) ''There seem to be a lot of variables in a &amp;quot;successful trade&amp;quot;, and different skills seem to increase more or less depending on the exact combination of factors. More research is needed, but over trading sessions this average seems to hold true.''&lt;br /&gt;
&lt;br /&gt;
If no one can poke holes in this, I'll finish the edit..--[[User:Albedo|Albedo]] 20:48, 1 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Designed buildings ==&lt;br /&gt;
&lt;br /&gt;
From a few tests, I've observed that the dwarves that finish construction on buildings that were designed by an architect do not gain a static amount of experience, but instead gradually gain experience points as they continue the construction process. Two 1x1 tile paved roads gave my architect 6 experience each, while a 3x3 road gave 18 experience. Pump operating seems to also give this sort of 'gradual' experience. --[[User:Quietust|Quietust]] 21:23, 1 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Special announcement on reaching '''legendary''' status ==&lt;br /&gt;
&lt;br /&gt;
The announcements section needs to mention the announcement made when a dwarf becomes '''legendary''' - but there must be more than one given that on being made a Champion the message is very &amp;quot;warlike&amp;quot;.&amp;lt;font face=&amp;quot;FixedSys&amp;quot; color=&amp;quot;#00FFFF&amp;quot;&amp;gt;[[User:GarrieIrons|Gar]]&amp;lt;/font&amp;gt;[[User Talk:GarrieIrons|rie]] 03:20, 2 October 2009 (UTC)&lt;br /&gt;
:The message when a dwarf becomes a champion is&lt;br /&gt;
::''(Name) has become a legendary champion! Hail (Name)!''&lt;br /&gt;
:Does this translate to&lt;br /&gt;
::''(Name) has become a legendary (profession)! Hail (Name)!''&lt;br /&gt;
:&amp;lt;font face=&amp;quot;FixedSys&amp;quot; color=&amp;quot;#00FFFF&amp;quot;&amp;gt;[[User:GarrieIrons|Gar]]&amp;lt;/font&amp;gt;[[User Talk:GarrieIrons|rie]] 03:23, 2 October 2009 (UTC)&lt;br /&gt;
::Check the [[String dump]]. The short answer is no.--[[User:Ikkonoishi|Ikkonoishi]] 06:26, 2 October 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Decoration&amp;diff=16171</id>
		<title>40d:Decoration</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Decoration&amp;diff=16171"/>
		<updated>2009-09-04T12:12:29Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A decorative image raises the [[value]] of an object by adding another material to the base item.  Decorations have quality levels. The base value of a decoration is 10☼, multiplied by its [[Item_value#Material_Multipliers|material multiplier]] and [[Quality|quality multiplier]] that are separate from the item itself. &lt;br /&gt;
&lt;br /&gt;
When an item is decorated, it is shown with double angle brackets - for example, a (no quality) decorated +steel battle axe+ becomes a «+steel battle axe+». Decorations are outside the double angle-brackets, the item quality remains within them with the item. So if you have *«+steel battle axe+»*, you have a +steel battle axe+ with *decorations* on it.  These decorations do not affect combat multipliers. Decorating an ''imported'' item will remove it from that category (remove the (item) brackets) and reclassify it into the according category of your created [[wealth]].&lt;br /&gt;
&lt;br /&gt;
An object may be decorated with any number of materials, provided the materials are of different types.  For example, you can decorate an object with turtle shell and cave lobster shell, but you can't decorate it with turtle shell twice.&lt;br /&gt;
&lt;br /&gt;
You cannot specify a specific object for a dwarf to decorate.  Dwarves will use the closest object that has not already been decorated with the material they intend to decorate the next object with.  The exception is when encrusting something with gems, where you are able to specify a category of goods to be decorated. Of course you can always seal in (forbidden doors) your artisan Rumpelstiltskin style, complete with workshop, the materials you want him to use and the objects you want decorated (dumping them inside the to-be-sealed-off area might work best) to ensure proper conduct.&lt;br /&gt;
&lt;br /&gt;
For more information regarding the different types of decorations, see [[value]].&lt;br /&gt;
&lt;br /&gt;
;Bone, Shell&lt;br /&gt;
:  Objects can be decorated with [[bone]] or [[shell]] at a [[craftdwarf's workshop]]. Requires [[bone carving]].&lt;br /&gt;
&lt;br /&gt;
;Gem&lt;br /&gt;
:  Objects can be encrusted with [[Gem|cut gem]]s (and cut glass) at a [[jeweler's workshop]].  You may specify whether to decorate furniture, finished goods or ammo.  Requires [[gem setting]].&lt;br /&gt;
&lt;br /&gt;
;Metal studs&lt;br /&gt;
:  Objects can be studded with various metals at a metalsmith's forge.  Requires [[metalcrafting]].  This does not require [[fuel]]. Metal studs are the only way to decorate weapons and metal armor. &lt;br /&gt;
&lt;br /&gt;
;Cloth&lt;br /&gt;
:  [[Cloth]] images (both plant fiber and silk) can be sewn onto clothing items (including leather armor) and bags at a [[clothier's shop]].  Cloth images cannot be sewn onto bags or quivers that contain items. Requires [[clothier]]. &lt;br /&gt;
&lt;br /&gt;
;Leather&lt;br /&gt;
:  Leather images can be sewn onto clothing items in the same manner as cloth, with the same restrictions.  Requires [[leatherworking]] and a [[leather works]].&lt;br /&gt;
&lt;br /&gt;
The type of decoration does not affect the value it adds to the item, be it spikes, bands or pictures. Highly skilled decorators will often create a picture of something special, like an artifact, or even parts of your history, similar to [[engraving]] a natural wall or floor.&lt;br /&gt;
&lt;br /&gt;
'''Makeshift tapestries'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If your fortress is above ground or you otherwise have inadequate natural rock walls to [[engrave]], [[Restraint|rope]]s or [[bags]] sewn with [[image]]s can be a way of recording your fortress' history instead of [[stone detailing]]. When built as restraints (for decorated ropes), or as [[container]]s (for decorated [[bag]]s), dwarves can gain happy [[thought]]s by admiring them, so they can function as makeshift tapestries. Though be cautious of building unowned bags as your Dwarves will constantly perform the Check Chest job on them.&lt;br /&gt;
&lt;br /&gt;
[[Category:Items]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:How_do_I_increase_the_value_of_a_room&amp;diff=50664</id>
		<title>40d:How do I increase the value of a room</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:How_do_I_increase_the_value_of_a_room&amp;diff=50664"/>
		<updated>2009-09-02T13:42:00Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Created page with 'Category:Stub  =Stone engraving= Room quality can be increased by smoothing and engraving the walls and the floor. Stone can be smoothed by any...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Stub]]&lt;br /&gt;
&lt;br /&gt;
=Stone engraving=&lt;br /&gt;
[[Room quality]] can be increased by [[smooth|smoothing]] and [[engrave|engraving]] the walls and the [[floor]].&lt;br /&gt;
Stone can be smoothed by any skilled dwarf without decreasing quality, but always engrave with more skillful Dwarves as unskilled Dwarves will permanently prevent you from putting a nice engraving there.&lt;br /&gt;
&lt;br /&gt;
=Traps=&lt;br /&gt;
==Lever==&lt;br /&gt;
[[Lever|Trap levers]] can be linked to a [[support]] and up to 10 mechanisms can be placed on both the lever and support to increase the room value if you create the Link Support to Trigger job on the lever 10 times before the first link is completed.&lt;br /&gt;
If desired the lever can then be triggered and the support rebuilt to add unlimited mechanisms to the lever.&lt;br /&gt;
&lt;br /&gt;
The [[support]] will also add the value of the material used to make the support plus the architecture skill of the dwarf that built it.&lt;br /&gt;
==Weapons Trap==&lt;br /&gt;
[[Trap#Weapon_Trap|Weapon Traps]] can be built in the room to allow you to add valuable artifact weapons to the room's value.&lt;br /&gt;
&lt;br /&gt;
=Cages=&lt;br /&gt;
[[Cages]] seem to add the value of the animals occupying them to the room value, and you can store unlimited amounts of animals in one cage.&lt;br /&gt;
&lt;br /&gt;
=Making the most of other items=&lt;br /&gt;
[[Coffins]] set to burial are not considered rooms and so can be built in other rooms without decreasing that room's value. This takes up space, but you do have to put the coffins somewhere anyways. You might as well get value from them.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Weapon_trap&amp;diff=32026</id>
		<title>Weapon trap</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Weapon_trap&amp;diff=32026"/>
		<updated>2009-09-02T13:36:57Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Redirected page to Trap#Weapon Trap&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Trap#Weapon_Trap]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Template:Buildings_FAQ&amp;diff=29576</id>
		<title>Template:Buildings FAQ</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Template:Buildings_FAQ&amp;diff=29576"/>
		<updated>2009-09-02T13:20:31Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!---To add a new question, COPY the following two lines. ALL OF THEM. Yes I *DO* mean the |- stuff TOO. And I said copy, NOT *CUT*. And PASTE them BETWEEN the ###### comments lower on this page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[Your question exactly as you want it to be read by others]]&lt;br /&gt;
&lt;br /&gt;
LEAVE THE QUESTION MARK OUT, as this wiki engine doesn't cope well with creating %3F pages.&lt;br /&gt;
---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed infobox&amp;quot; style=&amp;quot;background-color: #f9f9f9; border: 1px solid #aaa; font-size: 90%; margin: 1em 0em 0em; padding: 2px; text-align: center; width: 60%;&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;border: 1px solid #aaa; font-weight:bold; background-color: #ccf; padding-left: 1em; padding-right: 1em;&amp;quot; | ''' Buildings, Constructions and Rooms  FAQ'''&lt;br /&gt;
 |-&lt;br /&gt;
 | [[Furniture|Why when I try to build a bed/door/chair does it say needs bed/door/chair?]]&lt;br /&gt;
|-&lt;br /&gt;
| [[How do I construct a wall from a particular direction|How do I construct a wall from a particular direction?]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Room|How do I designate rooms or areas?]]&lt;br /&gt;
|-&lt;br /&gt;
| [[Door|Help! My doors are stuck open!]]&lt;br /&gt;
&amp;lt;!--- ########### Insert new questions below this line ########### ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[How do I increase the value of a room quickly and easily|How do I increase the value of a room quickly and easily?]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!--- ########### Insert new questions above this line ########### ---&amp;gt;&lt;br /&gt;
 |-&lt;br /&gt;
 |height=&amp;quot;10&amp;quot;| &lt;br /&gt;
 |-&lt;br /&gt;
 | {{Edit|Template:Buildings_FAQ|Add a question to the Building FAQ}}&lt;br /&gt;
 |-&lt;br /&gt;
 | [[Frequently Asked Questions|Back to the Main FAQ]]&lt;br /&gt;
 |}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:FAQ - Buildings]]&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:FAQ templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Room&amp;diff=8872</id>
		<title>40d:Room</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Room&amp;diff=8872"/>
		<updated>2009-09-02T13:16:21Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Saving on noble's rooms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is a room? ==&lt;br /&gt;
&lt;br /&gt;
The answer is not as obvious as it seems. A chamber with a [[bed]] in it is not yet a [[bedroom]]; you have to select the [[bed]] and ''define'' a bedroom from it. The functional room, as the game understands it, is not defined by [[wall]]s and [[door]]s; it is a [[zone]] extending out from a piece of [[furniture]] (in our example, the bed) that defines the room, created when the room is ''defined from'' that piece of furniture. Everything covered by that zone is considered part of the room, and will contribute to both the room's [[value]] and its effectiveness. This zone does '''not''' need to extend to the walls. It is well possible to define several such rooms in one actual enclosed space; they may even overlap, although this comes at a penalty to the room's value. &lt;br /&gt;
&lt;br /&gt;
Rooms can also be assigned to specific [[dwarves]] (to satisfy a [[noble|noble's]] requirements, for instance). Unassigned bedrooms will be spontaneously claimed by individual dwarves not already possessing a bedroom. Married couples will share a bedroom (except for some nobles). Once the [[economy]] starts, dwarves will have to pay rent for their bedrooms.&lt;br /&gt;
&lt;br /&gt;
== Creating rooms ==&lt;br /&gt;
&lt;br /&gt;
To create a room, you must first have built something capable of supporting a room from the {{k|b}}uild menu, such as a [[table]] or [[bed]]. Then you must select the completed item in question with the {{k|q}} command and choose to create a room. The room's radius extends outward in a rectangle, but will stop when it hits walls or external [[door]]s. If you first build the door to create a closed space, then the game will define the room so you won't need to resize it unless it is very big. &lt;br /&gt;
&lt;br /&gt;
If you want to have a door dividing a single, defined room into multiple areas without blocking the room's zone, you can set the door to &amp;quot;internal&amp;quot; in the door's {{k|q}} menu. Rooms do not have to be blocked off on all sides, and can even overlap, but for various reasons you will usually want to avoid overlapping rooms and give them proper boundaries.&lt;br /&gt;
&lt;br /&gt;
In general, you only need to define a room from ''one'' object in the room. For instance, a communal [[dining room]] is defined from one table -- just give the room a large enough radius to cover the whole space.&lt;br /&gt;
&lt;br /&gt;
Rooms can not span z-levels; when you define a room it can only be on a single level.&lt;br /&gt;
&lt;br /&gt;
{{Buildings FAQ}}&lt;br /&gt;
&lt;br /&gt;
== Types of rooms ==&lt;br /&gt;
&lt;br /&gt;
* Archery Range, defined from an [[archery target]]&lt;br /&gt;
* [[Barracks]], defined from a [[bed]], [[weapon rack]], or [[armor stand]]&lt;br /&gt;
* [[Bedroom]], defined from a [[bed]]&lt;br /&gt;
* [[Dining room]], defined from a [[table]]&lt;br /&gt;
* [[Jail]], defined from a [[cage]] or [[restraint]]&lt;br /&gt;
* [[Meeting hall]], defined from a [[well]] or [[table]]&lt;br /&gt;
* [[Sculpture garden]], defined from a [[statue]]&lt;br /&gt;
* [[Office|Study]]/[[Office]]/[[Office|Throne Room]], defined from a [[chair]] or [[throne]]&amp;lt;br /&amp;gt;(These are actually the same thing, even though the game refers to them with different names)&lt;br /&gt;
* [[Tomb]], defined from a [[coffin]]&lt;br /&gt;
* [[Shared cage]] (&amp;quot;Zoo&amp;quot;), defined from a [[cage]] or [[aquarium]]&lt;br /&gt;
&lt;br /&gt;
== Room quality ==&lt;br /&gt;
&lt;br /&gt;
Bedrooms, dining rooms, offices, and tombs will have different quality grades depending on their size and [[furniture|furnishings]]. Higher-quality room grades will produce happy [[thought]]s in [[dwarves]] utilizing these rooms. If a room contains items made from materials a [[dwarf]] favors, the room will have a higher perceived quality to that dwarf. You can also increase the grade of a room by [[smooth|smoothing]] and [[engrave|engraving]] the walls and the [[floor]].&lt;br /&gt;
&lt;br /&gt;
Rooms can be viewed in the [[building list]] by hitting the {{k|r}} key.&lt;br /&gt;
&lt;br /&gt;
=== Influences on room quality ===&lt;br /&gt;
&lt;br /&gt;
* [[Furniture]] adds to the quality, &amp;lt;s&amp;gt;by exactly the value of the furniture&amp;lt;/s&amp;gt; ''(most likely no longer true)'', which itself depends on material [[Item value|value]] and object [[quality]], plus the value of any [[decoration]]s. Price adjustments by nobles do not affect this value. [[Statue]]s and [[window]]s are a special case; any wall they block access to does not count towards room value.&lt;br /&gt;
* Doors add to room value only if they are set to internal '''and''' the room is (re-)sized afterwards, though the room still has to extend only as far as to the door, not beyond (40d).&lt;br /&gt;
* Floor and wall grids add to value. See table below.&lt;br /&gt;
* Rooms should normally be separate. If rooms share floor space, then the quality 'score' is lowered for those rooms. Details missing. Rooms can share walls and external doors just fine at no penalty.&lt;br /&gt;
* Any material, stone type or furniture that an assigned dwarf has a [[preference]] for will increase the perceived value of a room for that dwarf - other dwarfs will perceive the standard value.&lt;br /&gt;
&lt;br /&gt;
=== Factors ===&lt;br /&gt;
&lt;br /&gt;
==== The room ====&lt;br /&gt;
Taken from Draxxalon's study. ('''wrong/outdated''') Each tile touched by the room's designated area adds to its rental cost and quality (as per Room Grades below)&lt;br /&gt;
&lt;br /&gt;
{|{|cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! Type !! Rough Floor !! Smooth Floor !! Rough Wall !! Smooth Wall&lt;br /&gt;
|-&lt;br /&gt;
| Normal rock || 1 || 4 || 1 || 5&lt;br /&gt;
|-&lt;br /&gt;
| [[Flux]] || 2 || 14 || 2 || 18&lt;br /&gt;
|-&lt;br /&gt;
| [[Obsidian]] || 3 || 21 || 3 || 27&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Smoothing and engraving of grey rock has a base value of 10. This is multiplied by [[quality]] (x1 - x12) in the same way as objects. Note that walls are only detailed on one side (the side that the engraver is on). The values for detailed light and dark [[stone]] are unexpected and may be buggy in the current version.&lt;br /&gt;
&lt;br /&gt;
* Example: a 3x3 Room&lt;br /&gt;
 XXXXX&lt;br /&gt;
 X...X&lt;br /&gt;
 X...X&lt;br /&gt;
 X....&lt;br /&gt;
 XXXXX&lt;br /&gt;
As you need to knock out one bit of wall for the entrance, a 3x3 room has ten floor and 11 wall tiles (the corners are inaccessible and don't count). That makes a basic value of 22. When smoothed, it will score ((10 * 4) + (11 * 5)) = 95, assuming it's all grey rock.&lt;br /&gt;
Building a floor on top of engraved tiles adds to the room value. This comes handy if space is a premium. (Build platinum floor tiles on top of engraved rock - bliss!)&lt;br /&gt;
&lt;br /&gt;
==== Furniture ====&lt;br /&gt;
All standard furniture ([[bed]]s, [[coffer]]s, [[weapon rack]]s, etc.) has a base [[value]] of 10. The value of doors is unknown but they seem to be counted in somehow. The base value is multiplied by the material value and the item's [[quality]]. For example, a *Marble Door* is worth 10 (door) * 2 ([[marble]]) * 4 (*superior quality*) = 80☼.  A few pieces of high-quality furniture can increase a room's value quite a bit, and high-quality high-material-value furniture can add thousands to the value of the room. &lt;br /&gt;
&lt;br /&gt;
* The floor space that the furniture is standing on still counts. Therefore, really valuable soap floors might be a good idea.&lt;br /&gt;
* Windows act as walls and statues and block the value of tile that they are built on. You can use the high value of a high-quality clear glass window as a separator of rooms to make both rooms very valuable.&lt;br /&gt;
* Statues (basic value 25) block the tile they're built on.  They also cause any wall they're blocking to no longer contribute to room value.&lt;br /&gt;
&lt;br /&gt;
==== Artifacts ====&lt;br /&gt;
If you are the lucky owner of [[artifact]] furniture, placing it in a nobles office or bedroom is the best thing you can do, as even a 'cheap' all-stone artifact will be worth at least 2400☼, boosting the room very close to '''grand'''.  In practice artifacts frequently exceed 10,000☼ and can turn a single tile of dirt into a '''royal''' room.&lt;br /&gt;
&lt;br /&gt;
=== Specific room quality grades ===&lt;br /&gt;
&lt;br /&gt;
The grades of quality of rooms are as follows. These quality grades only apply to bedrooms, dining rooms, offices, and tombs. &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; cellspacing=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
! [[Bedroom]] !! [[Dining room]] !! [[Office]] !! [[Tomb]] !! Rent&lt;br /&gt;
|-&lt;br /&gt;
| Meager Quarters || Meager Dining Room ||Meager Office || Grave || 1 - 99&lt;br /&gt;
|-&lt;br /&gt;
| Modest Quarters || Modest Dining Room || Modest Office || Servant's Burial Chamber || 100 - 249&lt;br /&gt;
|-&lt;br /&gt;
| Quarters || Dining Room || Office || Burial Chamber || 250 - 499&lt;br /&gt;
|-&lt;br /&gt;
| Decent Quarters || Decent Dining Room || Decent Office || Tomb || 500 - 999&lt;br /&gt;
|-&lt;br /&gt;
| Fine Quarters || Fine Dining Room || Splendid Office || Fine Tomb || 1000 - 1499&lt;br /&gt;
|-&lt;br /&gt;
| Great Quarters || Great Dining Room || Throne Room || Mausoleum || 1500 - 2499&lt;br /&gt;
|-&lt;br /&gt;
| Grand Quarters || Grand Dining Room || Opulent Throne Room || Grand Mausoleum || 2500 - 9999&lt;br /&gt;
|-&lt;br /&gt;
| Royal* Quarters|| Royal* Dining Room || Royal* Throne Room || Royal* Mausoleum || 10000+&lt;br /&gt;
|}&lt;br /&gt;
:''(* aka &amp;quot;Legendary&amp;quot;)''&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* Modest Quarters:&lt;br /&gt;
** a 3x2 room with one or two masterpieces in it.&lt;br /&gt;
** a 3x2 room, smoothed wall and floors, half-decent furniture (+ or * ).&lt;br /&gt;
* Quarters:&lt;br /&gt;
** 3x2, smooth walls, two or more excellent pieces of furniture. &lt;br /&gt;
** A 3x3 room single detailed everywhere (with no [[ore]] or [[gem]]s in the walls) with an exceptional (triple [[bar]]) door, bed, cabinet, coffer, weapon rack and armor stand (rent 395).&lt;br /&gt;
* Decent Quarters:&lt;br /&gt;
** A 3x3 room single detailed everywhere (with no ore or gems in the walls) with a masterpiece door, bed, cabinet, coffer, weapon rack, and armor stand (rent 815).&lt;br /&gt;
** A 5x5 room, double detailed floor, good quality furniture.&lt;br /&gt;
* Grand Quarters:&lt;br /&gt;
** A 6* 6 room with smoothed walls, engraved floors and three exceptional pieces of furniture.&lt;br /&gt;
** A 3* 13 room with smoothed walls, engraved floors, six exceptional pieces of furniture and one masterful piece.&lt;br /&gt;
&lt;br /&gt;
== Saving on noble's rooms ==&lt;br /&gt;
You can make one large room, and install every noble there. The quality reduction for overlapping rooms is sufferable compared to the savings over constructing and furnishing a large number of rooms, particularly if you can add to the room's value with artifacts.  If the [[king]] shows up, you must furnish this room to four times the &amp;quot;Royal&amp;quot; quality for it to count as Royal or just build a separate room for him. This is a risky strategy as nobles could be upset that their rooms are not '''better''' than lesser nobles. &lt;br /&gt;
&lt;br /&gt;
[[Category:Rooms]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Irrigation&amp;diff=6312</id>
		<title>40d:Irrigation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Irrigation&amp;diff=6312"/>
		<updated>2009-09-01T14:18:12Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Underground River Irrigation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Irrigation''' is the process of making rocky ground suitable for [[farming]]. This is done by [[flood]]ing it with [[water]]; when the water evaporates, the tiles are labeled as &amp;quot;muddy&amp;quot;.  This is also called '''muddying''' the floor, as the dry floor tile is then a &amp;quot;muddy &amp;lt;type of stone&amp;gt; floor&amp;quot;.  Inside [[cave]]s, [[rock]] cavern floor tiles that are covered with water instantly become muddy tiles, which you can then build [[farm plot]]s on.  &lt;br /&gt;
&lt;br /&gt;
There are several methods for getting the water onto (and then off of) the floor tiles.  Dwarf Fortress uses reasonably-realistic water dynamics, including measures of [[water depth]]. A depth of 7 is full, depths of 1 will evaporate, leaving the stone wet and thus suitable for farming. Your goal in irrigation is to get a section of ground to be 1/7s, so it will evaporate to muddy. Usually it can't be avoided that part of the section will be flooded with higher levels, but water will  disperse and eventually evaporate. If the water level gets too high it will no longer evaporate.&lt;br /&gt;
&lt;br /&gt;
[[Smooth]]ed floors that are muddied will remain smooth, however if/when [[shrub]]s or [[tower cap]]s grow, that tile will then revert to a rough stone floor tile.  Constructed floors that have been muddied will not prevent the growth of shrubs or tower caps.&lt;br /&gt;
&lt;br /&gt;
== Dryland Farming: farming without irrigation ==&lt;br /&gt;
&lt;br /&gt;
Some locations have layers of [[soil]]* a few z-levels thick. It is not necessary to irrigate soil in order to grow crops on it; it is possible to build a farm plot directly on any soil tiles, although the dwarven crops such as [[plump helmet]]s can only be grown in a [[subterranean]] plot.  Likewise, a farm plot built on any tile marked [[Tile_attributes|Above Ground]] can be used to grow outdoor crops such as [[whip vine]]. This method obviates the need for irrigation entirely, so is recommended for newbies.&lt;br /&gt;
&lt;br /&gt;
(* Note: ''Any'' type of [[soil]] is the same for this purpose in Dwarf Fortress, so you can build farm plots on sand, mud, ooze, clay, whatever.)&lt;br /&gt;
&lt;br /&gt;
Once the proper requirements are met, [[Tower cap]]s will grow on any unimproved (i.e., non-irrigated, non-farm plot) underground soil, but very sparsely - irrigating is always recommended for tower cap farms. &lt;br /&gt;
&lt;br /&gt;
== Pump Irrigation ==&lt;br /&gt;
&lt;br /&gt;
[[Stone]] floors can be irrigated conveniently from a water source on the level below, by use of a [[screw pump]].  Simply dig a channel to access the water on z-1, install a pump and set to Start Pump Manually ({{k|q}} + {{k|Enter}}). Any dwarf with the 'Pump Operating' duty active will quickly pump enough water to irrigate a large area (so rapidly that irrigating other rooms becomes a concern!). This can be improved by installing a second pump to draw water out of the room, allowing you to rapidly drain the room in the event of over-filling, or by other creative designs. &lt;br /&gt;
&lt;br /&gt;
== Wave Irrigation ==&lt;br /&gt;
&lt;br /&gt;
Although seawater is unfit for carrying to your farm in a bucket, areas muddied by seawater seem to be farmable. One favored method of achieving this is building a farm room under a beach and making a hole in its roof, closeable with a hatch, to let waves in.  Alternately, water is desalinated by pumping, so pumping it to your farming room will work if the water does not pass through an aquifer.&lt;br /&gt;
&lt;br /&gt;
== Outdoor Irrigation ==&lt;br /&gt;
&lt;br /&gt;
Outdoor irrigation of rocky locations is possible using similar techniques, though you may have to construct walls to make water channels, pumps to get it out of rivers, and/or stairs up to pour water down on top of a pond zone. This only works in certain biomes; thus, since mountain biomes are the generally preferred starting location for many players, they often find out the hard way that outdoor seeds will not grow on rocky locations in that biome.  The specific message is, &amp;quot;No seeds available for this location&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An &amp;quot;outdoor&amp;quot; plot can be built on indoor soil by opening up the ceiling, and optionally flooring it over again, but this won't work on indoor mud{{Verify}}. If the farm plot includes at least one soil/grass tile, this does not appear to happen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== De-Irrigation ==&lt;br /&gt;
&lt;br /&gt;
On soil, building a wall and then removing it results in furrowed soil. However, on mud, the process results in rough but dry rock. This may be a bug in v0.28.181.40d, however.&lt;br /&gt;
&lt;br /&gt;
==Design Examples==&lt;br /&gt;
&lt;br /&gt;
=== Easy Irrigation ===&lt;br /&gt;
&lt;br /&gt;
# {{K|d}}ig from the [[farm plot]] to any source of water, but keep a single tile of [[wall]] between the newbuilt passage and the water.&lt;br /&gt;
# Dig a passage from the plot towards lower ground or a pit, to serve as a water drain ''(this stage is not 100% necessary, but means you don't have to worry about having too much water and so is recommended)''.&lt;br /&gt;
# Build a [[floodgate]], and three [[mechanism]]s. (If you're worried about delay, use [[door]]s instead of floodgates.&lt;br /&gt;
# Place the floodgate in the passage. The idea is that it'll block the water from coming through when it's closed.&lt;br /&gt;
# Build a [[lever]] and link it to the floodgate.&lt;br /&gt;
# If you are building a drain, follow steps 3-5 again and place the second floodgate at the entrance to the drainage channel, linked to the second lever.&lt;br /&gt;
# {{K|P}}ull the first lever so the gate opens.&lt;br /&gt;
# Send a miner to dig that last wall keeping the water from rushing in.&lt;br /&gt;
#: Alternatively, have the miner dig a [[channel]] ({{K|d}},{{K|h}}) on that last wall from the Z-level above. This is much safer, since the miner will dig out the wall without actually having to stand in the way of the water.&lt;br /&gt;
# Use the first lever to close the channel once you've got enough water to spread over the area. If you have a drain, you can now let any excess drain off using your second lever.&lt;br /&gt;
# The water should now cover (or have covered) 1/7 of each tile.&lt;br /&gt;
# Wait for the water to evaporate and/or drain off (Dwarves can built farm plots in 1/7 water, so you don't need to wait).&lt;br /&gt;
# Enjoy your newly irrigated land.&lt;br /&gt;
&lt;br /&gt;
===Easier, safer irrigation===&lt;br /&gt;
&lt;br /&gt;
Here's a relatively safe and simple irrigation plan.  As shown it's set up for an underground [[tower cap]] farm, but can easily be adapted to any level, surface or deep underground.  &lt;br /&gt;
&lt;br /&gt;
This is a passive system - it's never connected to the river, so it won't do anything unless manned by a dwarf, and it doesn't need any levers or floodgates to work - or to ''stop'' working.  Unless you forget about it, no [[flood]]ing should occur - and even if you do and it does, it's foolproof to stop.&lt;br /&gt;
&lt;br /&gt;
Dig a tunnel from ''next to'' your river (don't breach!) to roughly the ''middle'' of your future TC farm, and up to it.  2-3 tiles wide should provide a good, controlled rate of flow from one pump, and ramps or stairs work fine for connecting levels.  &lt;br /&gt;
&lt;br /&gt;
Now, the trick is to use a pump on the surface level to provide the water, the pressure, and the control.  Build your pump next to the river - (if it's a [[brook]] you'll have to channel 1 tile of the brook for the inflow - don't breach the tunnel!).  For the outflow, build a retaining wall around the start of your irrigation tunnel. &lt;br /&gt;
&lt;br /&gt;
It will look something like this:&lt;br /&gt;
                                            &lt;br /&gt;
 surface level      __   xX(   )__________________________________ &lt;br /&gt;
 river water level    &amp;lt;nowiki&amp;gt;~~~&amp;lt;/nowiki&amp;gt;   |_|== |            ____TC_   _Farm____ &lt;br /&gt;
 water -1                       |_|===================|_|          &amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt;       &amp;lt;nowiki&amp;gt;~~~&amp;lt;/nowiki&amp;gt; = river/brook*&amp;lt;br /&amp;gt;        xX  = pump ''(pumps from left, from west in this diagram)''&lt;br /&gt;
       (  ) = small walled retaining area on surface, to contain outflow of pump.&lt;br /&gt;
        |_| = channels, ramps, and/or stairs up to next level&lt;br /&gt;
        === = underground tunnel for water flow&lt;br /&gt;
&lt;br /&gt;
:''(* This can work from a [[pool]], but that is not an infinite source of water.  Plan accordingly.)''&lt;br /&gt;
&lt;br /&gt;
Order the pump to &amp;quot;start pump(ing) manually&amp;quot; ({{k|q}} + {{k|Enter}}), a dwarf will respond, the retaining wall will try to fill but will drain down, the tunnel will fill, and the water will start welling up out of the far end.&lt;br /&gt;
&lt;br /&gt;
When at least 1/7 depth has covered ''almost'' the entire area ''(yes, you have to keep half an eye on it, so '''you''' are the sole point of failure!)'', go to the pump and tell it to stop pumping - order it deconstructed and then cancel that, and/or {{k|A}}ctivating the dwarf will do fine and be immediate, no lag.&lt;br /&gt;
&lt;br /&gt;
The water settles out and [[evaporation]] begins immediately.  You can then seal up the tunnel or ignore it as you choose (even if you later, accidentally, breach the river/brook, the u-bend won't cause flooding if the irrigation is on the same level, as shown above.)&lt;br /&gt;
&lt;br /&gt;
If the layout of your underground rooms prevents a one-level tunnel, you can easily drop it down additional levels - it's the difference between the inflow and outflow that matters.  Avoid single-diagonal paths - keeping the tunnel 2-3 wide will always provides pressure and flow.&lt;br /&gt;
&lt;br /&gt;
One drawback is that the lower tunnel will stay full of water, which can be a small problem if you ever, later wish to expand the tunnel for other purposes. One or more drawbridges, acting to block the passage, will allow you to seal it later for easier expansion projects, and, if your first effort, is a good safe opportunity to practice in a non-critical situation. (See also: [[fun]].)&lt;br /&gt;
&lt;br /&gt;
=== Reservoir Irrigation ===&lt;br /&gt;
&lt;br /&gt;
The reservoir method involves building a small reservoir between two [[floodgate|floodgates]] and a farming chamber about 7 times as large as the reservoir. A reservoir of 12 tiles, for instance, can water a 70 tile chamber effectively. Water is let into the reservoir by lowering, then raising one floodgate. The other floodgate then releases the water into the farming chamber. It spreads around, then evaporates after becoming 1 deep.&lt;br /&gt;
&lt;br /&gt;
The reservoir may be built above the plot to be irrigated with a [[hatch]] or [[bridge]] in the floor, to one side using floodgates, or below and [[pump]]ed upwards. Note that [[Bridge|bridges]], in their default state, will block water from falling between levels. The large surface area you can get this way can make the water spread over your farm area much faster than by using floodgates.&lt;br /&gt;
&lt;br /&gt;
It is possible to achieve the same result using a natural pond as the water reservoir. Doing so is easier in the short term but it is not advised if you want to keep replenishing your reservoir for other uses, such as [[well]](s), for natural ponds have a very finite amount of water available. On particular maps, natural ponds can replenish themselves at the beginning of each spring.&lt;br /&gt;
&lt;br /&gt;
===== Worked Example =====&lt;br /&gt;
&lt;br /&gt;
To create this irrigation system, you need: [[Image:Tree_farm.png|right]] &amp;lt;!-- GreyMario sez: Had to play around with the placement for this image. This looks like the best spot for it, as it doesn't interrupt the Wood FAQ. --&amp;gt; &amp;lt;!-- Fastjack's comment: You got a problem with this system after cave-ins are reinstated --&amp;gt; &amp;lt;!-- GreyMario: Oh, right. Okay. It won't be too hard to modify that design, though. Water can flow through supports IIRC. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* A large growing room.&lt;br /&gt;
:*The large room can be any size. (For this example, we will use a 24 by 24 size room.)&lt;br /&gt;
* An adjacent smaller filling room that will be filled with exactly the right amount of water.&lt;br /&gt;
:*To calculate the size of this room, see below.&lt;br /&gt;
* A water supply line such as a tube leading to a water source. &lt;br /&gt;
* Lever-controlled [[door]]s or floodgates connecting the large room to the smaller one, and the smaller one to the water supply. Doors are preferred as you don't need levers for your [[dwarf]] to pass. (However, if you're paranoid or your dwarves are particularly dumb, you might want to lever them anyways. The creator of this method ([[User:GreyMario|GreyMario]]) recommends using doors because they have no delay when triggered.)&lt;br /&gt;
&lt;br /&gt;
'''Calculating Room Size'''&lt;br /&gt;
&lt;br /&gt;
There are 576 (24²) floor tiles in the large room (L). The small room (S) must hold enough water to cover the large room, the small room, and the space occupied by the door(s) (D) in between with 1 unit of water. Each tile of the small room can hold 7 units of water, so:&lt;br /&gt;
&lt;br /&gt;
S = (L + S + D) / 7&lt;br /&gt;
&lt;br /&gt;
-or-&lt;br /&gt;
&lt;br /&gt;
S = (L + D) / 6&lt;br /&gt;
&lt;br /&gt;
577/6 = 96 1/6; rounding up, this gives 97. This is the number of floor tiles in the smaller room: a 9X10 room with 7 extra tiles. Be aware, however, that if you make your &amp;quot;large&amp;quot; room ''too'' large, some of the water from the &amp;quot;small&amp;quot; room will [[evaporate]] before reaching the other end, and you will not have enough [[water]] to coat the floor. This behavior was observed in a room of 42X35 tiles.&lt;br /&gt;
&lt;br /&gt;
Now, get digging. The water supply connects to the smaller filling room by a 1-tile hole where a door or [[floodgate]] will go. The filling room connects to the growing room the same way, and the growing room needs a door too. Remember to have the [[door|doors]] in place before breaching the water source and flooding the water supply line!&lt;br /&gt;
&lt;br /&gt;
When you do breach the water source, immediately forbid the first door your miner runs through (see, this is why we use doors), which should be the door closest to the water source. Don't bother forbidding the other two. Link all three doors to three separate [[lever|levers]] and test the system. Close the door between the filling chamber and main farm area and open the door that leads to the water source. When the filling chamber is full, close the door to the water source, close the door leading to the farm, and open the door between the [[farm]] and filling chamber. The water should spread out and coat the entire farm in a thin layer of water. At this time, plant your farms and begin the wait until they yield products.&lt;br /&gt;
&lt;br /&gt;
=== Pond Irrigation ===&lt;br /&gt;
&lt;br /&gt;
Dig a ramp down from a tunnel, preferably near a well or other water source, and dig a farm room next to the ramp on the lower level. Create a [[zone]] above the ramp, and make it a pond. Your dwarves will attempt to fill it with water carried in buckets. As they dump water in, it will muddy the farm room floor. After it has been sufficiently muddied, disable or remove the pond zone until you need to irrigate it again. Dwarves can build farm plots in 1 unit deep water.&lt;br /&gt;
&lt;br /&gt;
Even though it works, this is probably the slowest way to irrigate a room since dwarves only carry 1 unit of water per trip. It's especially slow if you don't have more than one or two idle dwarves and buckets, or if the water source is far away. If you need to irrigate a larger area -- maybe even one as small as 2x3, depending on distance to the water source --  you will need to do it in pieces, filling one small pond area to avoid evaporation while your dwarves carry the water, then releasing it into the farming area. Really big areas will probably need a multi-stage construction on multiple levels or with pumps to avoid losing all your carried water -- note that closing a floodgate in a water-filled area destroys the water previously there. The method works great with constructed staircases for creating outdoor farm plots where there's an occasional stone in the ground, though.&lt;br /&gt;
&lt;br /&gt;
NOTE: Digging a ramp or channel down from the surface will label the tile below as &amp;quot;Outside&amp;quot;. This means that cave plants will not grow there.&lt;br /&gt;
&lt;br /&gt;
=== Underground River Irrigation ===&lt;br /&gt;
&lt;br /&gt;
Underground rivers are often what makes living in freezing climates possible, because they don't freeze over.  Its very easy to tap one if you know what you're doing.  Once you've located it, pick out a good spot for your farm room and dig it out.  Make sure you're on the same level as the water; that is, where the actual water is located, not where the 'Open Space' is.  Channel out one tile in the farm room and replace it with a floor hatch.  Dig a narrow tunnel to the underground river and put a wall grate and a floodgate in it.  Link the floodgate and hatch to seperate levers.  Dig one level down and dig a drainage shaft from the tile below the hatch to the point where the river 'drops'; you'll see a 5x5 area of 'Open Space'.  When your ready, dig a small tunnel and channel out the floor so you breach the river below and send it into your grate and floodgate.  Open the floodgate to water your crops, close it when you're done and open the hatch to drain.&lt;br /&gt;
&lt;br /&gt;
NOTE: The grate is necessary to filter out nasty creatures that might otherwise come in with the water.&lt;br /&gt;
&lt;br /&gt;
An easier method is to find a location where the cave river falls for more than three z levels and simply build a screw pump to suck the falling water from midair. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        &amp;lt;- Empty room which will be used to farm.&lt;br /&gt;
##╬%╬## &amp;lt;- Screw pump with doors on each side to keep the water from possibly washing the pumping dwarf into the river.&lt;br /&gt;
###%###&lt;br /&gt;
##~~~## &amp;lt;-- Water is falling here.&lt;br /&gt;
#     #&lt;br /&gt;
#     #&lt;br /&gt;
#     #&lt;br /&gt;
##   ##&lt;br /&gt;
#######&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Testing ==&lt;br /&gt;
&lt;br /&gt;
The type of rock is changed (at least in v0.28.181.40d) - perhaps to that of the rock wall below? What if there is no rock wall below?&lt;br /&gt;
&lt;br /&gt;
**it would seem this only affects the non-native stone of a layer, and changes it into the native stone, it definitely does not turn it into the rock type in the layer beneath if it is another non-native stone.  (non-native means stone like orthoclase or microline)&lt;br /&gt;
&lt;br /&gt;
[[Category:Agriculture]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=File:Lotofmeat.png&amp;diff=50553</id>
		<title>File:Lotofmeat.png</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=File:Lotofmeat.png&amp;diff=50553"/>
		<updated>2009-08-17T01:54:12Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Bugged meat. Was in a trade caravan and prevented me from trading them anything.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bugged meat. Was in a trade caravan and prevented me from trading them anything.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Jifodus/CMV_file_format&amp;diff=28221</id>
		<title>User:Jifodus/CMV file format</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Jifodus/CMV_file_format&amp;diff=28221"/>
		<updated>2009-08-15T11:11:43Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Hacking]]&lt;br /&gt;
=File Format=&lt;br /&gt;
==Header==&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! width=&amp;quot;12%&amp;quot; align=&amp;quot;right&amp;quot; | Offset (+Hex)&lt;br /&gt;
! width=&amp;quot;25%&amp;quot; | Type&lt;br /&gt;
! width=&amp;quot;13%&amp;quot; | Name&lt;br /&gt;
! width=&amp;quot;50%&amp;quot; | Information&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0000&lt;br /&gt;
| dword&lt;br /&gt;
| version&lt;br /&gt;
| Version numbers:&amp;lt;br /&amp;gt;0x2711 - New movies&amp;lt;br /&amp;gt;0x2710 - Old movies&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0004&lt;br /&gt;
| dword&lt;br /&gt;
| columns&lt;br /&gt;
| The number of columns.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0008&lt;br /&gt;
| dword&lt;br /&gt;
| rows&lt;br /&gt;
| The number of rows.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 000C&lt;br /&gt;
| dword&lt;br /&gt;
| unknown1&lt;br /&gt;
| Unknown value, it's 1 in the begining movies.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
==Sounds==&lt;br /&gt;
If the version is 0x2711 then this section comes right after the header.&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! width=&amp;quot;12%&amp;quot; align=&amp;quot;right&amp;quot; | Offset (+Hex)&lt;br /&gt;
! width=&amp;quot;25%&amp;quot; | Type&lt;br /&gt;
! width=&amp;quot;13%&amp;quot; | Name&lt;br /&gt;
! width=&amp;quot;50%&amp;quot; | Information&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0000&lt;br /&gt;
| dword&lt;br /&gt;
| sounds&lt;br /&gt;
| The number of sounds in the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0004&lt;br /&gt;
| char[50 * sounds]&lt;br /&gt;
| sound_files&lt;br /&gt;
| A sound file name is 50 bytes long. It's an array with sounds giving the number of sound files there are.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | *&lt;br /&gt;
| dword[3200]&lt;br /&gt;
| unknown&lt;br /&gt;
| It undoubtedly has something to do with sounds. However, the only movie file that has values other than 0xFFFFFFFF in all the slots is dwarf_fortress.cmv so it's purpose is still unknown.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I do know from testing that it specifies when sounds get played, but due to the finite number of slots I have not come up with a theory explaining how it relates.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Chunk==&lt;br /&gt;
The [[User:Jifodus/CMV_file_format#Sounds|Sounds]] section &amp;amp; [[User:Jifodus/CMV_file_format#Header|Header]] section comes before this. The remainder of the file is made up this way.&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! width=&amp;quot;12%&amp;quot; align=&amp;quot;right&amp;quot; | Offset (+Hex)&lt;br /&gt;
! width=&amp;quot;25%&amp;quot; | Type&lt;br /&gt;
! width=&amp;quot;13%&amp;quot; | Name&lt;br /&gt;
! width=&amp;quot;50%&amp;quot; | Information&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0000&lt;br /&gt;
| dword&lt;br /&gt;
| size&lt;br /&gt;
| The size of the following compressed data.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0004&lt;br /&gt;
| byte[size]&lt;br /&gt;
| sound_files&lt;br /&gt;
| Zlib's deflate compressed data, comprising no more than 200 sequential [[User:Jifodus/CMV_file_format#Frame|frames]].&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
=Data Format=&lt;br /&gt;
==Frame==&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! width=&amp;quot;12%&amp;quot; align=&amp;quot;right&amp;quot; | Offset (+Hex)&lt;br /&gt;
! width=&amp;quot;25%&amp;quot; | Type&lt;br /&gt;
! width=&amp;quot;13%&amp;quot; | Name&lt;br /&gt;
! width=&amp;quot;50%&amp;quot; | Information&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0000&lt;br /&gt;
| char[Header.columns * Header.rows]&lt;br /&gt;
| characters&lt;br /&gt;
| The characters making up the frame.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | *&lt;br /&gt;
| attribute[Header.columns * Header.rows]&lt;br /&gt;
| attributes&lt;br /&gt;
| The [[Color#Color_flags|color attributes]] of each character in the frame.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
Iterate through the frame data:&lt;br /&gt;
  +---------&amp;gt; +Y&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  |&lt;br /&gt;
  V&lt;br /&gt;
 +X&lt;br /&gt;
Or: Index = X * Header.rows + Y&lt;br /&gt;
&lt;br /&gt;
==Attribute==&lt;br /&gt;
A frame is a single byte long, the bits are layed out as:&lt;br /&gt;
 0ibbbfff&lt;br /&gt;
 i   - Foreground Intensity Bit&lt;br /&gt;
 bbb - Background Color Bits&lt;br /&gt;
 fff - Foreground Color Bits&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Macros_and_keymaps&amp;diff=31796</id>
		<title>40d:Macros and keymaps</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Macros_and_keymaps&amp;diff=31796"/>
		<updated>2009-07-31T14:34:16Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Playing Dwarf Fortress means lots of typing.  Although the game has no internal macro/keymap system (except in alpha version 40d12), using an external program can save you a great deal of time when dumping, rewalling, designating, and so forth.&lt;br /&gt;
&lt;br /&gt;
#  Go to [[Utilities#AutoHotKey]] and download AutoHotKey.  Installation is simple and the program uses few system resources.&lt;br /&gt;
#  Write macro scripts (file type .ahk), which may contain any number of commands.  You activate scripts by double-clicking .ahk files and deactivate them by right-clicking the AutoHotKey icon on the task bar.  Both of these can be done at any time - even right in the middle of a game.  AutoHotKey also allows for automated activation of scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting Scripts==&lt;br /&gt;
Users may experience some issues in getting scripts to work, particularly when using looping scripts when experiencing low frame-rates.&lt;br /&gt;
* If experiencing low frame-rates, try adding delays (&amp;quot;Sleep 100&amp;quot; to pause for 100 milliseconds for example) within loops to allow the interface to keep up. If there are nested loops, sometimes adding a pause at the end of an inner loop is all that is needed to flush the keyboard buffer&lt;br /&gt;
* Make sure that Dwarf Fortress maintains focus. IM windows are the enemy! Who needs friends anyhow? You've got Dwarf Fortress.&lt;br /&gt;
* This may go without saying, but most macros assume standard key-mappings. If you're using non-standard ones, you may have to edit the macro to get it to work.&lt;br /&gt;
* Visiting liaisons can bring up screens that eat keystrokes, throwing a long-looping script out-of-phase with where it expects the game to be.  Wait for the farewell screen before running a long script.&lt;br /&gt;
* The &amp;lt;B&amp;gt;SendPlay&amp;lt;/B&amp;gt; function supports keys that the &amp;lt;B&amp;gt;Send&amp;lt;/B&amp;gt; function does not, for example {{key|Shift-Enter}}.  According to the AutoHotKey documentation, &amp;lt;B&amp;gt;SendPlay&amp;lt;/B&amp;gt; may also be better at preventing dropped keystrokes.&lt;br /&gt;
&lt;br /&gt;
== [http://sun2design.com/quickfort/ Quickfort] ==&lt;br /&gt;
&lt;br /&gt;
Quickfort is an AutoHotkey-based utility for Dwarf Fortress that helps you build fortresses from &amp;quot;blueprint&amp;quot; .CSV files (comma separated values). These files are easily created and edited in an app like Excel. Most building-oriented DF commands are supported through the use of multiple .CSV files to describe the different phases of DF construction (designation, building, stockpiles, and making adjustments). Many of the examples below can be reproduced in Quickfort.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Built-in Macros ==&lt;br /&gt;
&lt;br /&gt;
With the release of df_28_181_40d13, Dwarf Fortress supports macros without any outside program. They can be created by hitting escape to access the options menu and choosing the Key Bindings section. Once in the Key Bindings menu hit Shift+Tab to open the macro screen. The macros you create here are saved in the file &amp;quot;\data\init\interface.txt&amp;quot;. Adding the following to the end of that file will create a macro that selects every item on the trade screen when you hit the tilde key (`).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[BIND:MACRO0]&lt;br /&gt;
[SYM:`]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
[MACRO:SELECT:1]&lt;br /&gt;
[MACRO:STANDARDSCROLL_DOWN:1]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== AutoHotKey Examples ==&lt;br /&gt;
&lt;br /&gt;
===Dumping===&lt;br /&gt;
====Stock Screen Dump====&lt;br /&gt;
Taken from an old version of [[User:Jackard|Jackard's user page]].&lt;br /&gt;
&lt;br /&gt;
To use, first have your bookeeper do enough desk work so you can view individual items in the stocks listing.  Then bring it up and press del to quickly mark stuff.  To adjust the key repeat rate, edit the KEY_HOLD_MS value in \data\init\init.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
del::&lt;br /&gt;
IfWinActive Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
  send d{down}&lt;br /&gt;
  return&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
  send {del}&lt;br /&gt;
  return&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Designation Dump====&lt;br /&gt;
A dumping script by [[User:Dukederek|Dukederek]]:&lt;br /&gt;
&lt;br /&gt;
This script uses a system similar the commands in the designations menu to mark most of the contents of a large area for dumping. [[User:Dukederek|My talk page]] has more detailed instruction.&lt;br /&gt;
&lt;br /&gt;
Essentially you need to create two text files with the following titles and content. When playing DF it is safe to have blockdumpinit running constantly as long as you dont plan on using the ctrl-d combination for something else.&lt;br /&gt;
&lt;br /&gt;
'''blockdumpinit.ahk'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^d::&lt;br /&gt;
RunWait, &amp;quot;blockdumpmain.ahk&amp;quot;&lt;br /&gt;
Return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''blockdumpmain.ahk'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetKeyDelay 25&lt;br /&gt;
return::&lt;br /&gt;
Send k&lt;br /&gt;
return&lt;br /&gt;
up::&lt;br /&gt;
Send w&lt;br /&gt;
return&lt;br /&gt;
left::&lt;br /&gt;
Send a&lt;br /&gt;
return&lt;br /&gt;
down::&lt;br /&gt;
Send s&lt;br /&gt;
return&lt;br /&gt;
right::&lt;br /&gt;
Send d&lt;br /&gt;
return&lt;br /&gt;
q::&lt;br /&gt;
ExitApp&lt;br /&gt;
return&lt;br /&gt;
shift::&lt;br /&gt;
x := 0&lt;br /&gt;
y := 1&lt;br /&gt;
Loop{&lt;br /&gt;
Input, keypress, B, {esc} , w,a,s,d,k,q&lt;br /&gt;
if keypress = w&lt;br /&gt;
{&lt;br /&gt;
y := --y&lt;br /&gt;
Send {up}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = s&lt;br /&gt;
{&lt;br /&gt;
y := ++y&lt;br /&gt;
Send {down}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = a&lt;br /&gt;
{&lt;br /&gt;
x := --x&lt;br /&gt;
Send {left}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = d&lt;br /&gt;
{&lt;br /&gt;
x := ++x&lt;br /&gt;
Send {right}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = k &lt;br /&gt;
{&lt;br /&gt;
break&lt;br /&gt;
}else if keypress = q&lt;br /&gt;
{&lt;br /&gt;
ExitApp&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
y := y / 2&lt;br /&gt;
z := y&lt;br /&gt;
z := Floor(z)&lt;br /&gt;
z := y/z&lt;br /&gt;
Send d{NumpadAdd}d&lt;br /&gt;
If z = 0&lt;br /&gt;
{	&lt;br /&gt;
If x = 0&lt;br /&gt;
ExitApp&lt;br /&gt;
Else{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d&lt;br /&gt;
}ExitApp&lt;br /&gt;
}&lt;br /&gt;
}If z &amp;lt;&amp;gt; 1&lt;br /&gt;
{&lt;br /&gt;
Loop %y%{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {right}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d{NumpadAdd}d&lt;br /&gt;
}Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}&lt;br /&gt;
}Else If z = 1&lt;br /&gt;
{&lt;br /&gt;
y := y + 0.5&lt;br /&gt;
Loop %y%{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {right}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d{NumpadAdd}d&lt;br /&gt;
}Send d{NumpadSub}d&lt;br /&gt;
}ExitApp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rewalling ===&lt;br /&gt;
Taken from [[User:Valdemar|Valdemar's user page]].&lt;br /&gt;
&lt;br /&gt;
This is a macro to aid with rewalling. To use, copy-paste the script into a new .ahk file and run the script with AutoHotkey. Then, in Dwarf Fortress, press b-C-w, move the cursor to where you want to start the wall, and hold Ctrl-Shift-Arrowkey, using the direction you want to rewall in. To build floors, press b-C-f instead, and use Ctrl-Alt-Arrowkey. To stop, just release the keys.&lt;br /&gt;
&lt;br /&gt;
The script will use the first material in the list. I suggest you create a stockpile near the construction site that only accepts the item you wish to build with and temporarily forbid any nearby materials you don't want to build with. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$^+Left:: ProcessEvent(&amp;quot;Left&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Right:: ProcessEvent(&amp;quot;Right&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Up:: ProcessEvent(&amp;quot;Up&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Down:: ProcessEvent(&amp;quot;Down&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
$^!Left:: ProcessEvent(&amp;quot;Left&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Right:: ProcessEvent(&amp;quot;Right&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Up:: ProcessEvent(&amp;quot;Up&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Down:: ProcessEvent(&amp;quot;Down&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ProcessEvent(direction, type)&lt;br /&gt;
{   &lt;br /&gt;
    Send {Enter}&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send {Enter}&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send %type%&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send {%direction%}&lt;br /&gt;
    Loop&lt;br /&gt;
    {&lt;br /&gt;
        if not GetKeyState(direction, &amp;quot;P&amp;quot;) &lt;br /&gt;
            break  &lt;br /&gt;
        Send {Enter}&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send {Enter}&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send %type%&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send {%direction%}&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Grid-by-grid designation===&lt;br /&gt;
For easier diagonal and fancy mining.  Assumes that DF is active.  &amp;quot;^!&amp;quot; means ctrl-alt-direction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^!NumpadEnd::&lt;br /&gt;
send {Enter}{Enter}{NumpadEnd}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadDown::&lt;br /&gt;
send {Enter}{Enter}{NumpadDown}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadPgDn::&lt;br /&gt;
send {Enter}{Enter}{NumpadPgDn}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadLeft::&lt;br /&gt;
send {Enter}{Enter}{NumpadLeft}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadRight::&lt;br /&gt;
send {Enter}{Enter}{NumpadRight}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadHome::&lt;br /&gt;
send {Enter}{Enter}{NumpadHome}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadUp::&lt;br /&gt;
send {Enter}{Enter}{NumpadUp}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadPgUp::&lt;br /&gt;
send {Enter}{Enter}{NumpadPgUp}&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Embark Settings macros===&lt;br /&gt;
These macros are used to ease the setup of skills and supplies before you embark.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Improved Food/Alcohol buying macro====&lt;br /&gt;
This macro buys all the cost-2 food (that I have seen), as well as the four types of alcohol.  Just press ctrl+f on the Items screen.&lt;br /&gt;
It can deal with meat or drink that you already have, or is not currently featured.   By [[User:Redfenix|Redfenix]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^f::&lt;br /&gt;
&lt;br /&gt;
send ndwarven{SPACE}ale{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}rum{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}beer{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}wine{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndonkey{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nchimpanzee{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngazelle{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nbonobo{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmule{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndeer{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nraccoon{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nfox{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nrhesus{SPACE}macaque{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nhorse{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngroundhog{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmountain{SPACE}goat{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nhoary{SPACE}marmot{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngorilla{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send norangutan{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nsiamang{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nbilou{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send npileated{SPACE}gibbon{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmandrill{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nturtle{RIGHT}{ENTER}{F9}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===='First Fortress' setup====&lt;br /&gt;
This macro works with the default setup of DF, and starts you with (almost) the setup suggested in the &amp;quot;Your first fortress&amp;quot; tutorial.  The amounts are adjustable with the variables at the top of the macro.&lt;br /&gt;
&amp;lt;pre&amp;gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
; materialplanner.ahk					  	;&lt;br /&gt;
; this is a ahk script to set up the embark settings roughly as	;&lt;br /&gt;
;suggested in the &amp;quot;your first fortress&amp;quot; tutorial.  Inventory	;&lt;br /&gt;
;can be customized slightly.					;&lt;br /&gt;
; use ctrl+shift+e to run				  	;&lt;br /&gt;
;							  	;&lt;br /&gt;
; NOTEs:						  	;&lt;br /&gt;
; change variables to suit your desires			 	;&lt;br /&gt;
; the fourth guy is a Stonecrafter instead of Herbalist		;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;&lt;br /&gt;
;;VARIABLES;;&lt;br /&gt;
;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
PICKS = 2	;number of picks to pack&lt;br /&gt;
AXES = 1 	;number of axes to pack&lt;br /&gt;
ANVILS = 0	;number of anvils to pack&lt;br /&gt;
MEATS = 7	;how much meat to take, each buys one of each cheap type (total number depends on locale)&lt;br /&gt;
DRINKS = 26	;how many drinks to take, each one buys 4 drinks, one of each type&lt;br /&gt;
SEEDS = 5	;each increment buys 5 plump helmet spawn, 2 pig tail, and 2 rock nuts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SetKeyDelay, 12	;Key delay, to keep Dwarf Fortress from being overwhelmed.&lt;br /&gt;
		;Set higher if you get weird results, or lower to get the&lt;br /&gt;
		;script to run faster&lt;br /&gt;
SLEEPTIME = 12	;same thing, only used in the repeated key press loops though&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;&lt;br /&gt;
;;The code;;&lt;br /&gt;
;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
^+e::&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			;remove all of the items&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
loop 105{&lt;br /&gt;
	Send {NumpadSub}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
			;place the skills&lt;br /&gt;
			;first guy&lt;br /&gt;
			;Proficient Miner&lt;br /&gt;
Send {right}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;novice appraiser&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 7{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
			;novice Judge of Intent&lt;br /&gt;
Send {Up}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
			;competent gem setter&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 7{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 3{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;second guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
			;Proficient Miner&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Mason&lt;br /&gt;
loop 3{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;third guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Carpenter&lt;br /&gt;
Send {UP}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Wood Cutter&lt;br /&gt;
Send {UP}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;fourth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Grower&lt;br /&gt;
Send {PgDn}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Down}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Stone Crafter&lt;br /&gt;
loop 9{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;fifth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Mechanic&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Building Designer&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;sixth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Weaponsmith&lt;br /&gt;
loop 1{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Armorsmith&lt;br /&gt;
loop 2{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;seventh guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Cook&lt;br /&gt;
Send {PgDn}&lt;br /&gt;
loop 2{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Brewer&lt;br /&gt;
loop 1{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
			;do the inventory&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
			;Meat&lt;br /&gt;
&lt;br /&gt;
if MEATS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
tmp := MEATS - 1&lt;br /&gt;
send ndonkey{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nchimpanzee{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngazelle{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nbonobo{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmule{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ndeer{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nraccoon{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nfox{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nrhesus{SPACE}macaque{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nhorse{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngroundhog{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmountain{SPACE}goat{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nhoary{SPACE}marmot{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngorilla{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send norangutan{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nsiamang{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nbilou{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send npileated{SPACE}gibbon{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmandrill{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nturtle{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			;copper picks&lt;br /&gt;
if PICKS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}copper picks{Right}{Enter}&lt;br /&gt;
tmp := PICKS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Axes&lt;br /&gt;
if AXES &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}steel axes{Right}{Enter}&lt;br /&gt;
tmp := AXES - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Seeds&lt;br /&gt;
if SEEDS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
send {n}Rock nuts{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
send {n}plump helmet spawn{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
send {n}Pig tail Seeds{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
&lt;br /&gt;
tmp := SEEDS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
			;Anvils&lt;br /&gt;
if ANVILS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}iron anvils{Right}{Enter}&lt;br /&gt;
tmp := ANVILS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Drinks&lt;br /&gt;
if DRINKS &amp;gt; 0{&lt;br /&gt;
send {n}Dwarven ale{Right}{Enter}&lt;br /&gt;
send {n}Dwarven beer{Right}{Enter}&lt;br /&gt;
send {n}Dwarven wine{Right}{Enter}&lt;br /&gt;
send {n}Dwarven rum{Right}{Enter}&lt;br /&gt;
&lt;br /&gt;
tmp := DRINKS - 1&lt;br /&gt;
loop 4{&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===A more modular approach===&lt;br /&gt;
Hit WIN+G to go once you are on the empty item screen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#g::&lt;br /&gt;
;add an anvil&lt;br /&gt;
Additem(&amp;quot;iron anvils&amp;quot;,1)&lt;br /&gt;
;add 31 of the boozes (kind of iffy might end up with dwarven cheese or something if the civilization does not have 4 boozes)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
;adds copper nuggets &lt;br /&gt;
Additem(&amp;quot;copper n&amp;quot;,5)&lt;br /&gt;
;adds cassiterite&lt;br /&gt;
Additem(&amp;quot;cass&amp;quot;,5)&lt;br /&gt;
;bitumous coal&lt;br /&gt;
Additem(&amp;quot;coal&amp;quot;,5)&lt;br /&gt;
;tower cap logs&lt;br /&gt;
Additem(&amp;quot;logs&amp;quot;,11)&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
IsCurrentItemThere()&lt;br /&gt;
{&lt;br /&gt;
	;color of text in the new item screen 0xFFFF00(selected) or 0x808000 (unselected)&lt;br /&gt;
	;location of text in the new item screen 305, 150&lt;br /&gt;
	PixelSearch, , , 305, 150, 315, 160, 0x808000, 3,&lt;br /&gt;
	return !ErrorLevel&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AddItem(name,amount)&lt;br /&gt;
{&lt;br /&gt;
	Sleep 100&lt;br /&gt;
	amount -= 1&lt;br /&gt;
	SetKeyDelay 150&lt;br /&gt;
	SendInput n&lt;br /&gt;
	SendInput %name%&lt;br /&gt;
	;MsgBox Name Check&lt;br /&gt;
	Sleep 200&lt;br /&gt;
	if IsCurrentItemThere() &lt;br /&gt;
	{&lt;br /&gt;
		Sleep 200&lt;br /&gt;
		SendInput {Right}&lt;br /&gt;
		SendInput {Enter}&lt;br /&gt;
		Sleep 200&lt;br /&gt;
		Loop&lt;br /&gt;
		{&lt;br /&gt;
			if amount &amp;lt;= 0 &lt;br /&gt;
			{&lt;br /&gt;
				break&lt;br /&gt;
			}&lt;br /&gt;
			SendInput {NumpadAdd}&lt;br /&gt;
			Sleep 10&lt;br /&gt;
			amount --&lt;br /&gt;
		}&lt;br /&gt;
		;MsgBox Done&lt;br /&gt;
	}&lt;br /&gt;
	else &lt;br /&gt;
	{&lt;br /&gt;
		SendInput {F9}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bed Assigning macro===&lt;br /&gt;
This will assign bedrooms to your dwarfs. Press F3 followed by a single digit indicating how many beds to assign. Can repeat the action, as the number of beds assigned is stored in a counter. Room size is default, but easily edited into the script. By [[User:Napsterbater|Napsterbater]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bedcounter = 0&lt;br /&gt;
F3::&lt;br /&gt;
  Input, counter, L1&lt;br /&gt;
  SetKeyDelay, 100&lt;br /&gt;
  loop  %counter% {&lt;br /&gt;
    loop %bedcounter%&lt;br /&gt;
      send {Down}&lt;br /&gt;
    loop % A_Index - 1&lt;br /&gt;
      send {Down}&lt;br /&gt;
    send {q}{r}{Enter}{a}&lt;br /&gt;
    loop %bedcounter%&lt;br /&gt;
      send {NumPadAdd}&lt;br /&gt;
    loop % A_Index - 1&lt;br /&gt;
      send {NumPadAdd}&lt;br /&gt;
    send {NumPadAdd}{Enter}&lt;br /&gt;
    send {space}{r}&lt;br /&gt;
  }&lt;br /&gt;
  bedcounter += counter&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Room-designation macros===&lt;br /&gt;
&lt;br /&gt;
====Valdemar's Designator Macro====&lt;br /&gt;
This macro can read a spreadsheet and designate rooms according to it. [http://www.bay12games.com/forum/index.php?topic=1428.0 Version 1]&lt;br /&gt;
&lt;br /&gt;
Version 2 of this macro apparently only works in versions up to and including 38c &amp;lt;sup&amp;gt;[[verify]]&amp;lt;/sup&amp;gt;, and can be found here: [http://www.bay12games.com/forum/index.php?topic=1890.0 Version 2]&lt;br /&gt;
&lt;br /&gt;
====Fedor's chambered circle====&lt;br /&gt;
A circular room with eight equal-sized chambers, suitable for everything from housing to workshops to a mausoleum.&amp;lt;br&amp;gt;&lt;br /&gt;
[http://mkv25.net/dfma/movie-216-room-designationmacro01 See this macro in action]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Macros_and_Keymaps_Examples#Room-designation Macro 01|Macro text]]&lt;br /&gt;
&lt;br /&gt;
====Valdemar's bedroom complex====&lt;br /&gt;
A large fractal bedroom/dining complex, with 56 bedrooms and room for 24 tables.&lt;br /&gt;
&lt;br /&gt;
You can press Alt-B to create a bedroom block, or Alt-C to create a full complex with 4 bedroom blocks and a dining block in the center.&lt;br /&gt;
&lt;br /&gt;
Note - the macro is much faster than the demo movie shows, it is done in under a minute.&lt;br /&gt;
&lt;br /&gt;
[http://mkv25.net/dfma/movie-252 Demo Movie]&lt;br /&gt;
&lt;br /&gt;
[http://www.pindi.us/files/fractalbr.zip Download]&lt;br /&gt;
&lt;br /&gt;
====Tulip's room macros====&lt;br /&gt;
Based on [[Bedroom_design|the bedroom designs.]]&lt;br /&gt;
&lt;br /&gt;
^g means alt+g, !g means ctrl+g, and so on.&lt;br /&gt;
Open up the designations window before using these:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
; This will make a basic 'x' pattern workshop/room layout&lt;br /&gt;
; and will 'land' back on the same tile it starts on each time,&lt;br /&gt;
; which happens to be the center.&lt;br /&gt;
; It is modified so that you will have 3 staircases, and an extra tile&lt;br /&gt;
; because many workshops do not have corner access.&lt;br /&gt;
!r::&lt;br /&gt;
Send di2{enter}88{enter}4d{enter}4{enter}67{enter}77{enter}66666666&lt;br /&gt;
Send {enter}11{enter}1{enter}6{enter}114{enter}4{enter}2{enter}11{enter}&lt;br /&gt;
Send 66666666{enter}77{enter}7{enter}6{enter}74&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes GnomeChomsky's Tessellated Apartments, bedrooms only.&lt;br /&gt;
; Your cursor will be over the left staircase.&lt;br /&gt;
!g::&lt;br /&gt;
Send i999866{enter}{enter}33332{enter}{enter}11114{enter}{enter}&lt;br /&gt;
Send d3{enter}22{enter}4{enter}{enter}&lt;br /&gt;
Send 78{enter}44{enter}8{enter}{enter}&lt;br /&gt;
Send 96{enter}88{enter}6{enter}{enter}	&lt;br /&gt;
Send 32{enter}66{enter}2{enter}{enter}&lt;br /&gt;
Send 96{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 96{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 1444{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 88{enter}88{enter}6{enter}{enter}&lt;br /&gt;
Send 78{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 66{enter}22{enter}4{enter}{enter}&lt;br /&gt;
Send 14{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 32{enter}{enter}6{enter}88{enter}7i{enter}{enter}&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes GnomeChomsky's Tessellated Apartments, bedrooms plus dining.&lt;br /&gt;
; Everything above applies.&lt;br /&gt;
^g::&lt;br /&gt;
Send i{enter}{enter}999866{enter}{enter}33332{enter}{enter}11114{enter}{enter}d&lt;br /&gt;
Send 444{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 32{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 9966{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 96{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 7788{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 1144{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 36{enter}8886666666{enter}&lt;br /&gt;
Send 9{enter}4444444{enter}&lt;br /&gt;
Send 8{enter}6666{enter}744{enter}{enter}&lt;br /&gt;
Send 222222441{enter}6666666{enter}&lt;br /&gt;
Send {enter}22{enter}8{enter}4444{enter}&lt;br /&gt;
Send 7778&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; This makes THLawrence's Living Pods (the A is for Arabia).&lt;br /&gt;
; Put your cursor where you want the upper left staircase to be.&lt;br /&gt;
; Like my other scripts, it recenters on that tile.&lt;br /&gt;
; Also, thank you THLawrence, this one was really easy write!&lt;br /&gt;
!a::&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 96666666&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 33222&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 7444&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 9988888&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes the lobby for THLawrence's Living pods.&lt;br /&gt;
^a::&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}66{enter}9{enter}66{enter}3{enter}41i{enter}{enter}&lt;br /&gt;
Send 36d{enter}1444444{enter}&lt;br /&gt;
Send 74{enter}1{enter}22{enter}3{enter}3i{enter}{enter}d1{enter}1{enter}666{enter}9{enter}&lt;br /&gt;
Send 66{enter}3{enter}66{enter}9{enter}88{enter}7{enter}74{enter}1144{enter}&lt;br /&gt;
Send 36666i{enter}{enter}777777&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====LordGrunt's room macro====&lt;br /&gt;
Based on 1 of the fractal [[Bedroom_design| bedroom designs.]]&lt;br /&gt;
&lt;br /&gt;
[http://mkv25.net/dfma/movie-1226-fractalbedrooms Demo Movie]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;&lt;br /&gt;
; Fractal Apts&lt;br /&gt;
; Start script while in 'dig' mode with cursor on desired position of left up staircase&lt;br /&gt;
;&lt;br /&gt;
; ALT+G to generate,&lt;br /&gt;
; CTRL+ALT+G to erase in case of failure&lt;br /&gt;
;&lt;br /&gt;
     &lt;br /&gt;
!g::&lt;br /&gt;
base_cross()&lt;br /&gt;
sleep 100&lt;br /&gt;
mid_sqr()&lt;br /&gt;
sleep 100&lt;br /&gt;
corridors()&lt;br /&gt;
sleep 100&lt;br /&gt;
all_rooms()&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
base_cross()&lt;br /&gt;
{&lt;br /&gt;
Send i{ENTER}3{ENTER}&lt;br /&gt;
Send d1{ENTER}6{SHIFT}+2{SHIFT}+2{SHIFT}+2{SHIFT}+28{ENTER}&lt;br /&gt;
Send d{SHIFT}+8{SHIFT}+8{SHIFT}+8{SHIFT}+888{ENTER}4{SHIFT}+8{SHIFT}+8{SHIFT}+8{SHIFT}+82{ENTER}&lt;br /&gt;
Send d{SHIFT}+2{SHIFT}+2{SHIFT}+2{SHIFT}+24{ENTER}2{SHIFT}+4{SHIFT}+4{SHIFT}+4{SHIFT}+46{ENTER}&lt;br /&gt;
Send d{SHIFT}+6{SHIFT}+6{SHIFT}+6{SHIFT}+666{ENTER}8{SHIFT}+6{SHIFT}+6{SHIFT}+6{SHIFT}+64{ENTER}&lt;br /&gt;
Send d{SHIFT}+4{SHIFT}+4{SHIFT}+4{SHIFT}+4474{SHIFT}+8{SHIFT}+888888{ENTER}66666{SHIFT}+2{SHIFT}+2{SHIFT}+2{SHIFT}+2{SHIFT}+2222{ENTER}8&lt;br /&gt;
Send d{SHIFT}+8{SHIFT}+88884488888{SHIFT}+6{SHIFT}+6666666{ENTER}22222{SHIFT}+4{SHIFT}+4{SHIFT}+4{SHIFT}+4{SHIFT}+4444{ENTER}6&lt;br /&gt;
}&lt;br /&gt;
mid_sqr()&lt;br /&gt;
{&lt;br /&gt;
Send d{SHIFT}+3666&lt;br /&gt;
send d{ENTER}{SHIFT}+9{SHIFT}+999999{ENTER}1{ENTER}9999{ENTER}9{ENTER}111{ENTER}&lt;br /&gt;
send d{SHIFT}+1{SHIFT}+1{SHIFT}+1{ENTER}999{ENTER}99{ENTER}1111{ENTER}99&lt;br /&gt;
send d{SHIFT}+8{SHIFT}+8{SHIFT}+8444{ENTER}333{ENTER}33{ENTER}7777{ENTER}&lt;br /&gt;
send d{SHIFT}+3{SHIFT}+3{SHIFT}+37{ENTER}333{ENTER}7{ENTER}7777{ENTER}&lt;br /&gt;
}&lt;br /&gt;
corridors()&lt;br /&gt;
{&lt;br /&gt;
send d{SHIFT}+7{SHIFT}+7{SHIFT}+7999{ENTER}{SHIFT}+6{SHIFT}+6{SHIFT}+66{ENTER}&lt;br /&gt;
send d333333{ENTER}{SHIFT}+2{SHIFT}+2{SHIFT}+22{ENTER}&lt;br /&gt;
send d111111{ENTER}{SHIFT}+4{SHIFT}+4{SHIFT}+44{ENTER}&lt;br /&gt;
send d777777{ENTER}{SHIFT}+8{SHIFT}+8{SHIFT}+88{ENTER}&lt;br /&gt;
sleep 100&lt;br /&gt;
send d3333222{ENTER}{SHIFT}+466{ENTER}&lt;br /&gt;
send d{SHIFT}+2{SHIFT}+2888{ENTER}{SHIFT}+644{ENTER}&lt;br /&gt;
send d{SHIFT}+9{SHIFT}+9{SHIFT}+6{SHIFT}+6333&lt;br /&gt;
send d{ENTER}{SHIFT}+466{ENTER}&lt;br /&gt;
send d{SHIFT}+2{SHIFT}+2888{ENTER}{SHIFT}+644{ENTER}&lt;br /&gt;
sleep 100&lt;br /&gt;
send d{SHIFT}+4{SHIFT}+1966&lt;br /&gt;
send d{ENTER}{SHIFT}+288{ENTER}&lt;br /&gt;
send d{SHIFT}+4{SHIFT}+4666{ENTER}{SHIFT}+822{ENTER}&lt;br /&gt;
sleep 100&lt;br /&gt;
send d{SHIFT}+9{SHIFT}+9{SHIFT}+8{SHIFT}+8777&lt;br /&gt;
send d{ENTER}{SHIFT}+288{ENTER}&lt;br /&gt;
send d{SHIFT}+4{SHIFT}+4666{ENTER}{SHIFT}+822{ENTER}&lt;br /&gt;
sleep 100&lt;br /&gt;
send d999988{ENTER}{SHIFT}+64{ENTER}&lt;br /&gt;
send d{SHIFT}+3{SHIFT}+3{SHIFT}+3777{ENTER}{SHIFT}+28{ENTER}&lt;br /&gt;
send d{SHIFT}+1{SHIFT}+1{SHIFT}+1999{ENTER}{SHIFT}+46{ENTER}&lt;br /&gt;
send d{SHIFT}+7{SHIFT}+7{SHIFT}+7333{ENTER}{SHIFT}+82{ENTER}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
rooms_up()&lt;br /&gt;
{&lt;br /&gt;
send d78{ENTER}96{ENTER}&lt;br /&gt;
send d223{ENTER}32{ENTER}&lt;br /&gt;
send d44444{ENTER}87{ENTER}&lt;br /&gt;
send d63{ENTER}{ENTER}98{ENTER}{ENTER}23{ENTER}{ENTER}7&lt;br /&gt;
}&lt;br /&gt;
rooms_down()&lt;br /&gt;
{&lt;br /&gt;
send d32{ENTER}14{ENTER}&lt;br /&gt;
send d887{ENTER}78{ENTER}&lt;br /&gt;
send d66666{ENTER}32{ENTER}&lt;br /&gt;
send d74{ENTER}{ENTER}21{ENTER}{ENTER}78{ENTER}{ENTER}3&lt;br /&gt;
}&lt;br /&gt;
rooms_left()&lt;br /&gt;
{&lt;br /&gt;
send d14{ENTER}87{ENTER}&lt;br /&gt;
send d996{ENTER}63{ENTER}&lt;br /&gt;
send d2222{ENTER}41{ENTER}&lt;br /&gt;
send d98{ENTER}{ENTER}47{ENTER}{ENTER}96{ENTER}{ENTER}1&lt;br /&gt;
}&lt;br /&gt;
rooms_right()&lt;br /&gt;
{&lt;br /&gt;
send d96{ENTER}32{ENTER}&lt;br /&gt;
send d114{ENTER}47{ENTER}&lt;br /&gt;
send d8888{ENTER}96{ENTER}&lt;br /&gt;
send d21{ENTER}{ENTER}63{ENTER}{ENTER}14{ENTER}{ENTER}9&lt;br /&gt;
}&lt;br /&gt;
;======= WIDE&lt;br /&gt;
rooms_upw()&lt;br /&gt;
{&lt;br /&gt;
send d78{ENTER}966{ENTER}&lt;br /&gt;
send d223{ENTER}32{ENTER}&lt;br /&gt;
send d444444{ENTER}87{ENTER}&lt;br /&gt;
send d63{ENTER}{ENTER}98{ENTER}6{ENTER}23{ENTER}{ENTER}74&lt;br /&gt;
}&lt;br /&gt;
rooms_downw()&lt;br /&gt;
{&lt;br /&gt;
send d32{ENTER}144{ENTER}&lt;br /&gt;
send d887{ENTER}78{ENTER}&lt;br /&gt;
send d666666{ENTER}32{ENTER}&lt;br /&gt;
send d74{ENTER}{ENTER}21{ENTER}4{ENTER}78{ENTER}{ENTER}36&lt;br /&gt;
}&lt;br /&gt;
rooms_leftw()&lt;br /&gt;
{&lt;br /&gt;
send d14{ENTER}887{ENTER}&lt;br /&gt;
send d996{ENTER}63{ENTER}&lt;br /&gt;
send d22222{ENTER}41{ENTER}&lt;br /&gt;
send d98{ENTER}{ENTER}47{ENTER}8{ENTER}96{ENTER}{ENTER}12&lt;br /&gt;
}&lt;br /&gt;
rooms_rightw()&lt;br /&gt;
{&lt;br /&gt;
send d96{ENTER}322{ENTER}&lt;br /&gt;
send d114{ENTER}47{ENTER}&lt;br /&gt;
send d88888{ENTER}96{ENTER}&lt;br /&gt;
send d21{ENTER}{ENTER}63{ENTER}2{ENTER}14{ENTER}{ENTER}98&lt;br /&gt;
}&lt;br /&gt;
;============&lt;br /&gt;
rooms3up()&lt;br /&gt;
{&lt;br /&gt;
send d8888888&lt;br /&gt;
rooms_up()&lt;br /&gt;
send d1111222&lt;br /&gt;
rooms_left()&lt;br /&gt;
send d66666666&lt;br /&gt;
rooms_right()&lt;br /&gt;
send d4444&lt;br /&gt;
}&lt;br /&gt;
rooms3down()&lt;br /&gt;
{&lt;br /&gt;
send d2222222&lt;br /&gt;
rooms_down()&lt;br /&gt;
send d7777888&lt;br /&gt;
rooms_left()&lt;br /&gt;
send d66666666&lt;br /&gt;
rooms_right()&lt;br /&gt;
send d4444&lt;br /&gt;
}&lt;br /&gt;
rooms3left()&lt;br /&gt;
{&lt;br /&gt;
send d4444444&lt;br /&gt;
rooms_left()&lt;br /&gt;
send d9999666&lt;br /&gt;
rooms_up()&lt;br /&gt;
send d22222222&lt;br /&gt;
rooms_down()&lt;br /&gt;
send d8888&lt;br /&gt;
}&lt;br /&gt;
rooms3right()&lt;br /&gt;
{&lt;br /&gt;
send d6666666&lt;br /&gt;
rooms_right()&lt;br /&gt;
send d7777444&lt;br /&gt;
rooms_up()&lt;br /&gt;
send d22222222&lt;br /&gt;
rooms_down()&lt;br /&gt;
send d8888&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;==========&lt;br /&gt;
all_rooms()&lt;br /&gt;
{&lt;br /&gt;
;left wide:&lt;br /&gt;
rooms_up()&lt;br /&gt;
send d222222222&lt;br /&gt;
rooms_down()&lt;br /&gt;
send d7777444&lt;br /&gt;
rooms_leftw()&lt;br /&gt;
;bottom wide:&lt;br /&gt;
send d{SHIFT}+3{SHIFT}+3{SHIFT}+3{SHIFT}+378&lt;br /&gt;
rooms_downw()&lt;br /&gt;
send d9999888&lt;br /&gt;
rooms_right()&lt;br /&gt;
send d444444444&lt;br /&gt;
rooms_left()&lt;br /&gt;
;right wide:&lt;br /&gt;
send d{SHIFT}+9{SHIFT}+9{SHIFT}+999{SHIFT}+66&lt;br /&gt;
rooms_rightw()&lt;br /&gt;
send d7777444&lt;br /&gt;
rooms_up()&lt;br /&gt;
send d222222222&lt;br /&gt;
rooms_down()&lt;br /&gt;
;top wide&lt;br /&gt;
send d{SHIFT}+7{SHIFT}+7{SHIFT}+777{SHIFT}+88&lt;br /&gt;
rooms_upw()&lt;br /&gt;
send d1111222&lt;br /&gt;
rooms_left()&lt;br /&gt;
send d666666666&lt;br /&gt;
rooms_right()&lt;br /&gt;
;remainin 9-room chambers&lt;br /&gt;
send d{SHIFT}+26666&lt;br /&gt;
rooms3right()&lt;br /&gt;
send d{SHIFT}+4{SHIFT}+4666&lt;br /&gt;
rooms3left()&lt;br /&gt;
send d{SHIFT}+1111&lt;br /&gt;
rooms3up()&lt;br /&gt;
send d{SHIFT}+2{SHIFT}+2888&lt;br /&gt;
rooms3down()&lt;br /&gt;
send d{SHIFT}+3333&lt;br /&gt;
rooms3left()&lt;br /&gt;
send d{SHIFT}+6{SHIFT}+6444&lt;br /&gt;
rooms3right()&lt;br /&gt;
send d{SHIFT}+9999&lt;br /&gt;
rooms3down()&lt;br /&gt;
send d{SHIFT}+8{SHIFT}+8222&lt;br /&gt;
rooms3up()&lt;br /&gt;
;send d{SHIFT}+7777&lt;br /&gt;
;rooms3right()&lt;br /&gt;
;send d{SHIFT}+2{SHIFT}+4666&lt;br /&gt;
;rooms3left()&lt;br /&gt;
send d1111144499{ENTER}{SHIFT}+1{SHIFT}+4{SHIFT}+41{ENTER}&lt;br /&gt;
send d77444444444{ENTER}8888888{SHIFT}+6{SHIFT}+6{SHIFT}+6{SHIFT}+6{SHIFT}+6666{ENTER}&lt;br /&gt;
send d{SHIFT}+7{SHIFT}+487{ENTER}{SHIFT}+1{SHIFT}+2{SHIFT}+21{ENTER}&lt;br /&gt;
send d33222222222{ENTER}6666666{SHIFT}+8{SHIFT}+8{SHIFT}+8{SHIFT}+8{SHIFT}+8888{ENTER}&lt;br /&gt;
send d{SHIFT}+2{SHIFT}+2221111&lt;br /&gt;
send i{ENTER}3{ENTER}7&lt;br /&gt;
deco()&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
deco()&lt;br /&gt;
{&lt;br /&gt;
send x77774{ENTER}{ENTER}9{ENTER}{ENTER}6669{ENTER}6{ENTER}3666{ENTER}{ENTER}3{ENTER}{ENTER}&lt;br /&gt;
send x2223{ENTER}2{ENTER}1222{ENTER}{ENTER}1{ENTER}{ENTER}1444{ENTER}4{ENTER}4447&lt;br /&gt;
send x{ENTER}{ENTER}7{ENTER}{ENTER}7888{ENTER}8{ENTER}666666&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
; CTRL+ALT+G to erase all&lt;br /&gt;
!^g::&lt;br /&gt;
send x{SHIFT}+1{SHIFT}+1{SHIFT}+1{SHIFT}+1{SHIFT}+1{ENTER}{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{SHIFT}+9{ENTER}{SHIFT}+1{SHIFT}+1{SHIFT}+1{SHIFT}+1{SHIFT}+1&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Pyrofyr's room macro====&lt;br /&gt;
Based on Palin88's Apartment design based on Raynard's Fractal Design.&lt;br /&gt;
&lt;br /&gt;
[[File:Pyrofor_room_macro.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * Macro by Pyrofyr for Room Design -- Cleaned up by 0x517A5D&lt;br /&gt;
 * Enter (d)esignate mode, position the cursor where you want the&lt;br /&gt;
 * middle of the design to be, then press Ctrl+Alt+D to start the Macro.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
;Attn Pyrofor: for slash-star style comments, the ending star-slash must&lt;br /&gt;
;be the first thing on its line.  Otherwise the comment isn't terminated.&lt;br /&gt;
&lt;br /&gt;
#SingleInstance Force&lt;br /&gt;
#IfWinActive, Dwarf Fortress&lt;br /&gt;
SetKeyDelay 0,, Play&lt;br /&gt;
&lt;br /&gt;
; Ctrl+Alt+D&lt;br /&gt;
^!d::&lt;br /&gt;
send d{NumPadUp 18}{NumPadLeft 18}&lt;br /&gt;
;Attn Pyrofor: note how repeated keystrokes are done in AHK.&lt;br /&gt;
;no need for tehLoop().&lt;br /&gt;
directions()&lt;br /&gt;
send {NumPadRight 18}&lt;br /&gt;
directions()&lt;br /&gt;
send {NumPadLeft 18}&lt;br /&gt;
send {NumPadDown 18}&lt;br /&gt;
directions()&lt;br /&gt;
send {NumPadRight 18}&lt;br /&gt;
directions()&lt;br /&gt;
middle()&lt;br /&gt;
stairs()&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
directions()&lt;br /&gt;
{&lt;br /&gt;
    ;hallway box&lt;br /&gt;
    send {Enter}{NumPadRight 18}{Enter}&lt;br /&gt;
    send {Enter}{NumPadDown 18}{Enter}&lt;br /&gt;
    send {Enter}{NumPadLeft 18}{Enter}&lt;br /&gt;
    send {Enter}{NumPadUp 18}{Enter}&lt;br /&gt;
    ;indentations on box&lt;br /&gt;
    send {Enter}{NumPadRight 1}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadDown 6}{Enter}{NumPadDown 2}{NumPadRight 1}{Enter}&lt;br /&gt;
    send {NumPadLeft 1}{NumPadDown 6}{Enter}{NumPadDown 1}{Enter}&lt;br /&gt;
    send {NumPadRight 6}{Enter}{NumPadRight 4}{Enter}&lt;br /&gt;
    send {NumPadRight 6}{Enter}{NumPadUp 1}{Enter}&lt;br /&gt;
    send {NumPadUp 6}{Enter}{NumPadUp 2}{NumPadLeft 1}{Enter}&lt;br /&gt;
    send {NumPadRight 1}{NumPadUp 6}{Enter}{NumPadUp 1}{Enter}&lt;br /&gt;
    send {NumPadLeft 6}{Enter}{NumPadLeft 4}{Enter}&lt;br /&gt;
    ; middle hallways&lt;br /&gt;
    send {NumPadRight 2}{Enter}{NumPadDown 6}{Enter}&lt;br /&gt;
    send {NumPadRight 1}{Enter}{NumPadDown 4}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadRight 1}{Enter}{NumPadDown 6}{Enter}&lt;br /&gt;
    send {NumPadUp 8}{NumPadLeft 6}{Enter}{NumPadRight 14}{Enter}&lt;br /&gt;
    ; cross apartments, horizontal segments&lt;br /&gt;
    send {NumPadDown 4}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadDown 1}{NumPadLeft 3}{Enter}{NumPadLeft 6}{Enter}&lt;br /&gt;
    send {NumPadUp 1}{NumPadLeft 3}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadDown 3}{NumPadRight 2}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    send {NumPadRight 8}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    send {NumPadUp 5}{NumPadLeft 1}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadLeft 6}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadUp 4}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    send {NumPadRight 6}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    send {NumPadRight 3}{NumPadUp 2}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadUp 1}{NumPadLeft 3}{Enter}{NumPadLeft 6}{Enter}&lt;br /&gt;
    send {NumPadDown 1}{NumPadLeft 3}{Enter}{NumPadLeft 2}{Enter}&lt;br /&gt;
    send {NumPadUp 3}{NumPadRight 2}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    send {NumPadRight 8}{Enter}{NumPadRight 2}{Enter}&lt;br /&gt;
    ; cross apartments, vertical segments&lt;br /&gt;
    send {NumPadRight 1}{NumPadDown 2}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadDown 6}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadDown 3}{NumPadLeft 2}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadLeft 1}{NumPadUp 3}{Enter}{NumPadUp 6}{Enter}&lt;br /&gt;
    send {NumPadRight 1}{NumPadUp 3}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadLeft 3}{NumPadDown 2}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadDown 8}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadLeft 4}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadUp 8}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadUp 2}{NumPadLeft 3}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadRight 1}{NumPadDown 3}{Enter}{NumPadDown 6}{Enter}&lt;br /&gt;
    send {NumPadLeft 1}{NumPadDown 3}{Enter}{NumPadDown 2}{Enter}&lt;br /&gt;
    send {NumPadLeft 2}{NumPadUp 3}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadUp 6}{Enter}{NumPadUp 2}{Enter}&lt;br /&gt;
    send {NumPadUp 4}{NumPadLeft 2}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
middle()&lt;br /&gt;
{&lt;br /&gt;
    send {NumPadUp 10}{NumPadLeft 2}{Enter}{NumPadRight 4}{NumPadDown 20}{Enter}&lt;br /&gt;
    send {NumPadUp 5}{NumPadRight 1}{Enter}{NumPadUp 10}{NumPadLeft 6}{Enter}&lt;br /&gt;
    send {NumPadLeft 1}{NumPadDown 1}{Enter}{NumPadDown 8}{NumPadRight 8}{Enter}&lt;br /&gt;
    send {NumPadUp 2}{NumPadRight 1}{Enter}{NumPadUp 4}{NumPadLeft 10}{Enter}&lt;br /&gt;
    send {NumPadDown 1}{NumPadLeft 6}{Enter}{NumPadDown 2}{NumPadRight 22}{Enter}&lt;br /&gt;
    send {NumPadUp 1}{NumPadLeft 11}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
stairs()&lt;br /&gt;
{&lt;br /&gt;
    send i{NumPadUp 18}{NumPadLeft 9}{Enter 2}&lt;br /&gt;
    send {NumPadRight 18}{Enter 2}&lt;br /&gt;
    send {NumPadRight 9}{NumPadDown 9}{Enter 2}&lt;br /&gt;
    send {NumPadLeft 18}{Enter 2}&lt;br /&gt;
    send {NumPadLeft 18}{Enter 2}&lt;br /&gt;
    send {NumPadRight 9}{NumPadDown 9}{Enter 2}&lt;br /&gt;
    send {NumPadRight 18}{Enter 2}&lt;br /&gt;
    send {NumPadRight 9}{NumPadDown 9}{Enter 2}&lt;br /&gt;
    send {NumPadLeft 18}{Enter 2}&lt;br /&gt;
    send {NumPadLeft 18}{Enter 2}&lt;br /&gt;
    send {NumPadDown 9}{NumPadRight 9}{Enter 2}&lt;br /&gt;
    send {NumPadRight 18}{Enter 2}&lt;br /&gt;
    send {NumPadLeft 9}{NumPadUp 18}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Easy Exploration Mining in 2 steps===&lt;br /&gt;
This macro will make a 5 row, 11 column UP/DOWN stairway grid (2 empty spaces between each row/column).&amp;lt;br&amp;gt;&lt;br /&gt;
Starting point as indicated (row 3, column 11)&amp;lt;br&amp;gt;&lt;br /&gt;
'''MUST BE IN DESIGNATION MODE WITH CURSOR AT THE ''&amp;lt;-- START HERE'' LOCATION'''&amp;lt;br&amp;gt;&lt;br /&gt;
Link is &amp;lt;ctrl&amp;gt; &amp;lt;windowskey&amp;gt; `&amp;lt;br&amp;gt;&lt;br /&gt;
Dive is &amp;lt;ctrl&amp;gt; &amp;lt;alt&amp;gt; `&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Link&lt;br /&gt;
X--X--X--X--X--X--X--X--X--X--X&lt;br /&gt;
|              |              |&lt;br /&gt;
|              |              |&lt;br /&gt;
X--X--X--X--X--X--X--X--X--X--X&lt;br /&gt;
|              |              |&lt;br /&gt;
|              |              |&lt;br /&gt;
X--X--X--X--X--X--X--X--X--X--X &amp;lt;-- start here&lt;br /&gt;
|              |              |&lt;br /&gt;
|              |              |&lt;br /&gt;
X--X--X--X--X--X--X--X--X--X--X&lt;br /&gt;
|              |              |&lt;br /&gt;
|              |              |&lt;br /&gt;
X--X--X--X--X--X--X--X--X--X--X&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Filename is ExploreMine-Link.ahk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;Link&lt;br /&gt;
^#`::&lt;br /&gt;
&lt;br /&gt;
send d&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadLeft}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(6,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(12,&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadLeft}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(9,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(6,&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadLeft}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(15,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(12,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
send {Enter}&lt;br /&gt;
tehLoop(15,&amp;quot;{NumPadLeft}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send i&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(6,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
tehLoop(tehTimes,tehDir)&lt;br /&gt;
{&lt;br /&gt;
	loop&lt;br /&gt;
	{&lt;br /&gt;
		if tehTimes &amp;lt;= 0&lt;br /&gt;
		{&lt;br /&gt;
			break&lt;br /&gt;
		}&lt;br /&gt;
		send %tehDir%&lt;br /&gt;
		tehTimes--&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
tehOtherLoop(tehOtherDir)&lt;br /&gt;
{&lt;br /&gt;
	loop 4&lt;br /&gt;
	{		&lt;br /&gt;
		tehLoop(3,tehOtherDir)		&lt;br /&gt;
		send {Enter}{Enter}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dive&lt;br /&gt;
X  X  X  X  X  X  X  X  X  X  X&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
X  X  X  X  X  X  X  X  X  X  X&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
X  X  X  X  X  X  X  X  X  X  X &amp;lt;-- start here&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
X  X  X  X  X  X  X  X  X  X  X&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
X  X  X  X  X  X  X  X  X  X  X&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Filename is ExploreMine-Dive.ahk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;Dive&lt;br /&gt;
^!`::&lt;br /&gt;
tehLoop(30,&amp;quot;{NumPadLeft}&amp;quot;)&lt;br /&gt;
tehLoop(6,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send i&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
tehLoop(3,&amp;quot;{NumPadRight}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
send {Enter}{Enter}&lt;br /&gt;
tehOtherLoop(&amp;quot;{NumPadDown}&amp;quot;)&lt;br /&gt;
tehLoop(6,&amp;quot;{NumPadUp}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
tehLoop(tehTimes,tehDir)&lt;br /&gt;
{&lt;br /&gt;
	loop&lt;br /&gt;
	{&lt;br /&gt;
		if tehTimes &amp;lt;= 0&lt;br /&gt;
		{&lt;br /&gt;
			break&lt;br /&gt;
		}&lt;br /&gt;
		send %tehDir%&lt;br /&gt;
		tehTimes--&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
tehOtherLoop(tehOtherDir)&lt;br /&gt;
{&lt;br /&gt;
	loop 4&lt;br /&gt;
	{		&lt;br /&gt;
		tehLoop(3,tehOtherDir)		&lt;br /&gt;
		send {Enter}{Enter}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Fancy Exploration Mining===&lt;br /&gt;
This script digs a connected series of mine shafts, as in [[Mineshaft Stitching]]. Start this script in the upper-left corner of the area you want to explore. Set the spacing to a value greater than 1 if you want to look for large clusters. Note that this pattern creates a very long walkway back to the start of the mineshafts. If you do not excavate routinely, consider connecting the top-level paths of areas you have already explored.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
 ; stitching.ahk					   ;&lt;br /&gt;
 ; this is an ahk script to place exploratory mine shafts. ;&lt;br /&gt;
 ; press d and place the cursor				   ;&lt;br /&gt;
 ; in the top left corner of the area to be explored	   ;&lt;br /&gt;
 ; then use ctrl+shift+s to run				   ;&lt;br /&gt;
 ; to change parameters, use ctrl+shift+c		   ; &lt;br /&gt;
 ; Increasing spacing will increase some shafts		   ;&lt;br /&gt;
 ; This version resets it's state so that it can be re-run ;&lt;br /&gt;
 ; without having to reload the script			   ;&lt;br /&gt;
 ;							   ;&lt;br /&gt;
 ; NOTE:					           ;&lt;br /&gt;
 ; Author: Corey Amend					   ;&lt;br /&gt;
 ; Based on a script by Seth Fogarty,		           ;&lt;br /&gt;
 ; Which was based on a script by StrawberryBunny	   ;&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
x = 4&lt;br /&gt;
y = 4&lt;br /&gt;
depth = 3&lt;br /&gt;
wait =  100&lt;br /&gt;
spacing = 1&lt;br /&gt;
vdir = +.&lt;br /&gt;
&lt;br /&gt;
DropShaft(vertdir, depth, wait)&lt;br /&gt;
{&lt;br /&gt;
	Send i&lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Loop %depth%&lt;br /&gt;
	{&lt;br /&gt;
		Send %vertdir%&lt;br /&gt;
		Send {Enter}&lt;br /&gt;
		Send {Enter}&lt;br /&gt;
		Sleep %wait%&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 ^+c::&lt;br /&gt;
inputbox x, Input Length, Vertical pattern length: x-axis&lt;br /&gt;
inputbox y, Input Width, Horizontal pattern width: y-axis&lt;br /&gt;
inputbox depth, Input Depth, Mineshaft depth: z-axis&lt;br /&gt;
inputbox spacing, Input Spacing, Spacing multiplier (1 for complete visiblity)&lt;br /&gt;
inputbox wait, Input Delay, Delay in miliseconds (100 recommended)&lt;br /&gt;
return &lt;br /&gt;
&lt;br /&gt;
 ^+s::&lt;br /&gt;
shafts := (x * y) -1&lt;br /&gt;
i := x-1&lt;br /&gt;
hdir = {Down}&lt;br /&gt;
next = {Up} &lt;br /&gt;
&lt;br /&gt;
Loop %shafts%&lt;br /&gt;
{&lt;br /&gt;
	DropShaft(vdir, depth, wait)&lt;br /&gt;
        if (vdir = &amp;quot;+.&amp;quot;) &lt;br /&gt;
	{&lt;br /&gt;
		vdir = +,&lt;br /&gt;
	}	&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		vdir = +.&lt;br /&gt;
	}&lt;br /&gt;
	Send d&lt;br /&gt;
	k := spacing-1&lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Loop %k%&lt;br /&gt;
	{&lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Send {Enter}&lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Send {Enter}&lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Sleep %wait%&lt;br /&gt;
	}&lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Sleep %wait%&lt;br /&gt;
	i--&lt;br /&gt;
	if (i = 0)&lt;br /&gt;
	{&lt;br /&gt;
		if (hdir = &amp;quot;{Down}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = {Right}&lt;br /&gt;
			next = {Up}&lt;br /&gt;
			i=1&lt;br /&gt;
		}&lt;br /&gt;
		else if (hdir = &amp;quot;{Right}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = %next%&lt;br /&gt;
			i := x-1&lt;br /&gt;
		}&lt;br /&gt;
		else if (hdir = &amp;quot;{Up}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = {Right}&lt;br /&gt;
			next = {Down}&lt;br /&gt;
			i=1&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
DropShaft(vdir, depth, wait)&lt;br /&gt;
if (vdir = &amp;quot;+.&amp;quot;) &lt;br /&gt;
{&lt;br /&gt;
	Loop %depth%&lt;br /&gt;
	{&lt;br /&gt;
		Send +,&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
	vdir = +.&lt;br /&gt;
}	&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Upstairs Mineshaft Finisher===&lt;br /&gt;
This script is used to create a series of up staircases in a pattern for use with mineshaft scripts (like the mineshaft stitching above). Most mineshaft scripts use up/down staircases all the way to the bottom, but the lowest z-level will not allow up/down staircases so you mineshafts will be unfinished. This script allows you to correct this problem and place up stairs where the up/down stairs would be.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
 ; Upstair stitching.ahk				   ;&lt;br /&gt;
 ; this is an ahk script to place up stairs at regular	   ;&lt;br /&gt;
 ; intervals (useful for completing mine shafts).	   ;&lt;br /&gt;
 ; press d and place the cursor				   ;&lt;br /&gt;
 ; in the top left corner of the area to be explored	   ;&lt;br /&gt;
 ; then use ctrl+shift+u to run				   ;&lt;br /&gt;
 ; to change parameters, use ctrl+shift+p		   ; &lt;br /&gt;
 ; Increasing spacing will increase some shafts		   ;&lt;br /&gt;
 ;							   ;&lt;br /&gt;
 ; NOTE:					           ;&lt;br /&gt;
 ; Author: Corey Amend					   ;&lt;br /&gt;
 ; Based on a script by Seth Fogarty,		           ;&lt;br /&gt;
 ; Which was based on a script by StrawberryBunny	   ;&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
x = 4&lt;br /&gt;
y = 4&lt;br /&gt;
wait =  100&lt;br /&gt;
spacing = 1&lt;br /&gt;
vdir = +.&lt;br /&gt;
&lt;br /&gt;
 ^+p::&lt;br /&gt;
inputbox x, Input Length, Vertical pattern length: x-axis&lt;br /&gt;
inputbox y, Input Width, Horizontal pattern width: y-axis&lt;br /&gt;
inputbox spacing, Input Spacing, Spacing multiplier (1 for complete visiblity)&lt;br /&gt;
inputbox wait, Input Delay, Delay in miliseconds (100 recommended)&lt;br /&gt;
return &lt;br /&gt;
&lt;br /&gt;
 ^+u::&lt;br /&gt;
shafts := (x * y) -1&lt;br /&gt;
i := x-1&lt;br /&gt;
hdir = {Down}&lt;br /&gt;
next = {Up} &lt;br /&gt;
&lt;br /&gt;
Loop %shafts%&lt;br /&gt;
{&lt;br /&gt;
	Send u&lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Send {Enter}&lt;br /&gt;
	Sleep %wait%&lt;br /&gt;
&lt;br /&gt;
	k := spacing-1&lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Loop %k%&lt;br /&gt;
	{&lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Send %hdir% &lt;br /&gt;
		Sleep %wait%&lt;br /&gt;
	}&lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Send %hdir% &lt;br /&gt;
	Sleep %wait%&lt;br /&gt;
	i--&lt;br /&gt;
	if (i = 0)&lt;br /&gt;
	{&lt;br /&gt;
		if (hdir = &amp;quot;{Down}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = {Right}&lt;br /&gt;
			next = {Up}&lt;br /&gt;
			i=1&lt;br /&gt;
		}&lt;br /&gt;
		else if (hdir = &amp;quot;{Right}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = %next%&lt;br /&gt;
			i := x-1&lt;br /&gt;
		}&lt;br /&gt;
		else if (hdir = &amp;quot;{Up}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			hdir = {Right}&lt;br /&gt;
			next = {Down}&lt;br /&gt;
			i=1&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
Send u&lt;br /&gt;
Send {Enter}&lt;br /&gt;
Send {Enter}&lt;br /&gt;
Sleep %wait%&lt;br /&gt;
&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interface Enhancement Scripts===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The MOUSE control====&lt;br /&gt;
For unrivaled mouse control in DF try [http://www.dwarffortresswiki.net/index.php/User:Digger this DF Mouse script]&lt;br /&gt;
&lt;br /&gt;
====Tile Counter or Scrolling Accelerator====&lt;br /&gt;
Lack of reference plus slow scroll speed make planning digging area frustrating,so here is the script that shows coordinate and speed scrolling up.&lt;br /&gt;
[http://www.dwarffortresswiki.net/index.php/User:Daedalusai ShowXY]&lt;br /&gt;
&lt;br /&gt;
===4-Pour Water Creation script===&lt;br /&gt;
For Automating creation of water using Gibbeds Tweak.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;&lt;br /&gt;
;	4-pour.ahk&lt;br /&gt;
;	Dwarf fortress water creation script.&lt;br /&gt;
;&lt;br /&gt;
;Use this script in conjunction with Gibbeds Dwarf Fortress Tweak to create endless amounts of water.;&lt;br /&gt;
;&lt;br /&gt;
;Directions&lt;br /&gt;
;&lt;br /&gt;
;1. Have DF running and position the screen such that when you press &amp;quot;K&amp;quot; the X will appear where you &lt;br /&gt;
&lt;br /&gt;
;want the water to appear.&lt;br /&gt;
;2. Have Gbbed's Dwarf Fortress tweak running in the background (with the proper process selected)&lt;br /&gt;
;3. run the 4-pour script&lt;br /&gt;
;4. press alt-p to get Pouring&lt;br /&gt;
;&lt;br /&gt;
;The script will then begin a cycle that moves the cursor around in a little 2x2 square editing each &lt;br /&gt;
&lt;br /&gt;
;tile to have 7/7 of water, it then pauses for a half a seond to let the water flow a bit, and repeats. &lt;br /&gt;
&lt;br /&gt;
;It does this until you..&lt;br /&gt;
;&lt;br /&gt;
;5. press and hold &amp;lt;shift&amp;gt; to stop&lt;br /&gt;
;&lt;br /&gt;
;As always, save before you experiment with this&lt;br /&gt;
;I hold no responsibility for what this script ends up doing to your dwarves/fortress/computer/carpet&lt;br /&gt;
;Feel free to clean it up, make it more usable, whatever&lt;br /&gt;
;&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.&lt;br /&gt;
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.&lt;br /&gt;
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.&lt;br /&gt;
&lt;br /&gt;
!p::&lt;br /&gt;
loop &lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
GetKeyState, state, Shift&lt;br /&gt;
if state = D&lt;br /&gt;
    Break&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IfWinActive Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
send k&lt;br /&gt;
sleep 100&lt;br /&gt;
  send {NumpadRight}&lt;br /&gt;
&lt;br /&gt;
IfWinExist Gibbed's Dwarf Fortress Tweak [1.2.0.0]&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
click 38, 184, 2&lt;br /&gt;
sleep 100&lt;br /&gt;
&lt;br /&gt;
IfWinExist Tile Edit&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
click 63, 448&lt;br /&gt;
sleep 100&lt;br /&gt;
click 106, 70&lt;br /&gt;
sleep 100&lt;br /&gt;
click 207, 255&lt;br /&gt;
sleep 100&lt;br /&gt;
send {backspace}&lt;br /&gt;
sleep 100&lt;br /&gt;
send 7&lt;br /&gt;
sleep 100&lt;br /&gt;
click 348, 449&lt;br /&gt;
sleep 100&lt;br /&gt;
IfWinExist Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
  send {NumpadDown}&lt;br /&gt;
&lt;br /&gt;
IfWinExist Gibbed's Dwarf Fortress Tweak [1.2.0.0]&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
click 38, 184, 2&lt;br /&gt;
sleep 100&lt;br /&gt;
&lt;br /&gt;
IfWinExist Tile Edit&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
click 63, 448&lt;br /&gt;
sleep 100&lt;br /&gt;
click 106, 70&lt;br /&gt;
sleep 100&lt;br /&gt;
click 207, 255&lt;br /&gt;
sleep 100&lt;br /&gt;
send {backspace}&lt;br /&gt;
sleep 100&lt;br /&gt;
send 7&lt;br /&gt;
sleep 100&lt;br /&gt;
click 348, 449&lt;br /&gt;
sleep 100&lt;br /&gt;
IfWinExist Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
  send {NumpadLeft}&lt;br /&gt;
&lt;br /&gt;
IfWinExist Gibbed's Dwarf Fortress Tweak [1.2.0.0]&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
click 38, 184, 2&lt;br /&gt;
sleep 100&lt;br /&gt;
&lt;br /&gt;
IfWinExist Tile Edit&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
click 63, 448&lt;br /&gt;
sleep 100&lt;br /&gt;
click 106, 70&lt;br /&gt;
sleep 100&lt;br /&gt;
click 207, 255&lt;br /&gt;
sleep 100&lt;br /&gt;
send {backspace}&lt;br /&gt;
sleep 100&lt;br /&gt;
send 7&lt;br /&gt;
sleep 100&lt;br /&gt;
click 348, 449&lt;br /&gt;
sleep 100&lt;br /&gt;
IfWinExist Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
  send {NumpadUp}&lt;br /&gt;
&lt;br /&gt;
IfWinExist Gibbed's Dwarf Fortress Tweak [1.2.0.0]&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
click 38, 184, 2&lt;br /&gt;
sleep 100&lt;br /&gt;
&lt;br /&gt;
IfWinExist Tile Edit&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
sleep 100&lt;br /&gt;
click 63, 448&lt;br /&gt;
sleep 100&lt;br /&gt;
click 106, 70&lt;br /&gt;
sleep 100&lt;br /&gt;
click 207, 255&lt;br /&gt;
sleep 100&lt;br /&gt;
send {backspace}&lt;br /&gt;
sleep 100&lt;br /&gt;
send 7&lt;br /&gt;
sleep 100&lt;br /&gt;
click 348, 449&lt;br /&gt;
sleep 100&lt;br /&gt;
IfWinExist Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
    WinActivate&lt;br /&gt;
}&lt;br /&gt;
send {space}&lt;br /&gt;
sleep 800&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tesselated Apartments Builder===&lt;br /&gt;
&lt;br /&gt;
This one is another tesselated apartments script, with some larger areas added. Credit for layout to GnomeChomsky.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;&lt;br /&gt;
; TessApts.ahk&lt;br /&gt;
; Start script while in 'dig' mode with cursor on desired position of leftmost staircase&lt;br /&gt;
;&lt;br /&gt;
; CTRL+G       : Central room, 8 apartments (necessary on at least one z-level)&lt;br /&gt;
; ALT+G        : No central room, 16 apartments&lt;br /&gt;
; CTRL+ALT+G   : Four &amp;quot;central room&amp;quot; layouts connected in center (28 apartments)&lt;br /&gt;
; CTRL+SHIFT+G : Four &amp;quot;16 apartment&amp;quot; layouts, unconnected in center&lt;br /&gt;
;&lt;br /&gt;
!g::&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}114444444&lt;br /&gt;
return&lt;br /&gt;
^g::&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}&lt;br /&gt;
Send 7444{ENTER}{ENTER}1114{ENTER}{ENTER}3332{ENTER}{ENTER}9996{ENTER}{ENTER}788{ENTER}11111{ENTER}&lt;br /&gt;
return&lt;br /&gt;
!^g::&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}&lt;br /&gt;
Send 7444{ENTER}{ENTER}1114{ENTER}{ENTER}3332{ENTER}{ENTER}9996{ENTER}{ENTER}788{ENTER}11111{ENTER}88899999999&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}&lt;br /&gt;
Send 7444{ENTER}{ENTER}1114{ENTER}{ENTER}3332{ENTER}{ENTER}9996{ENTER}{ENTER}788{ENTER}11111{ENTER}3333332&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}&lt;br /&gt;
Send 7444{ENTER}{ENTER}1114{ENTER}{ENTER}3332{ENTER}{ENTER}9996{ENTER}{ENTER}788{ENTER}11111{ENTER}111114444444&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}&lt;br /&gt;
Send 7444{ENTER}{ENTER}1114{ENTER}{ENTER}3332{ENTER}{ENTER}9996{ENTER}{ENTER}788{ENTER}11111{ENTER}&lt;br /&gt;
Send 9988888888{ENTER}999{ENTER}+444444&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
+^g::&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}888889&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}+221&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}+1+46&lt;br /&gt;
Send i{ENTER}{ENTER}33332{ENTER}{ENTER}99996{ENTER}{ENTER}77778{ENTER}{ENTER}&lt;br /&gt;
Send d7{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 111{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}&lt;br /&gt;
Send 333333{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}32{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}&lt;br /&gt;
Send 99999988{ENTER}66{ENTER}2{ENTER}{ENTER}14{ENTER}22{ENTER}4{ENTER}{ENTER}78{ENTER}44{ENTER}8{ENTER}{ENTER}96{ENTER}88{ENTER}6{ENTER}{ENTER}+71144444&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===File pattern builder===&lt;br /&gt;
&lt;br /&gt;
This is a script to create a macro out of any building pattern you like. If you like tesselated, this script will do it. If you like blocky, this script can do that, too. Just create a text file that contains the pattern you want to use and this macro will create it like nobody's business.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
 ; File Pattern.ahk				   	   ;&lt;br /&gt;
 ; this is an ahk script to read a text file and use	   ;&lt;br /&gt;
 ; the pattern contained inside as a blueprint for digging ;&lt;br /&gt;
 ; press d and place the cursor				   ;&lt;br /&gt;
 ; in a corner of the area to be explored		   ;&lt;br /&gt;
 ; then use ctrl+shift+d to run				   ;&lt;br /&gt;
 ; to change parameters, use ctrl+shift+f		   ; &lt;br /&gt;
 ;							   ;&lt;br /&gt;
 ; NOTE:					           ;&lt;br /&gt;
 ; Author: Corey Amend					   ;&lt;br /&gt;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
filename = C:\pattern.txt&lt;br /&gt;
loc = ul&lt;br /&gt;
wait = 100&lt;br /&gt;
&lt;br /&gt;
wallsymbol = 1&lt;br /&gt;
floorsymbol = 0&lt;br /&gt;
updownsymbol = 2&lt;br /&gt;
downsymbol = 3&lt;br /&gt;
upsymbol = 4&lt;br /&gt;
rampsymbol = 5&lt;br /&gt;
channelsymbol = 6&lt;br /&gt;
&lt;br /&gt;
digcommand = d&lt;br /&gt;
upcommand = u&lt;br /&gt;
downcommand = j&lt;br /&gt;
updowncommand = i&lt;br /&gt;
rampcommand = r&lt;br /&gt;
channelcommand = h&lt;br /&gt;
&lt;br /&gt;
hdir = {Right}&lt;br /&gt;
vdir = {Down}&lt;br /&gt;
&lt;br /&gt;
upperleft = ul&lt;br /&gt;
upperright = ur&lt;br /&gt;
lowerleft = ll&lt;br /&gt;
lowerright = lr&lt;br /&gt;
&lt;br /&gt;
inrun = 0&lt;br /&gt;
&lt;br /&gt;
 ^+f::&lt;br /&gt;
inputbox filename, Enter Path, Enter the full path to the file that contains the pattern to use&lt;br /&gt;
inputbox loc, Enter Cursor Location, Enter the location of the cursor within the pattern (Upper Left = ul`, Lower Right = lr...etc.)&lt;br /&gt;
inputbox wait, Enter Delay, Enter the delay to use (default is 100)&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
 ^+d::&lt;br /&gt;
&lt;br /&gt;
IfExist,  %filename%&lt;br /&gt;
{&lt;br /&gt;
	FileRead, contents, %filename%&lt;br /&gt;
	StringSplit Array, contents, `r, `n&lt;br /&gt;
&lt;br /&gt;
	if (loc = upperleft)&lt;br /&gt;
	{&lt;br /&gt;
		hdir = {Right}&lt;br /&gt;
		vdir = {Down}&lt;br /&gt;
	}&lt;br /&gt;
	else if (loc = upperright)&lt;br /&gt;
	{&lt;br /&gt;
		hdir = {Left}&lt;br /&gt;
		vdir = {Down}&lt;br /&gt;
	}&lt;br /&gt;
	else if (loc = lowerleft)&lt;br /&gt;
	{&lt;br /&gt;
		hdir = {Right}&lt;br /&gt;
		vdir = {Up}&lt;br /&gt;
	}&lt;br /&gt;
	else if (loc = lowerright)&lt;br /&gt;
	{&lt;br /&gt;
		hdir = {Left}&lt;br /&gt;
		vdir = {Up}&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		MsgBox, Invalid cursor location!&lt;br /&gt;
		return&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	Loop %Array0%&lt;br /&gt;
	{&lt;br /&gt;
		if (loc = upperleft || loc = upperright)&lt;br /&gt;
		{&lt;br /&gt;
			current_line = %a_index%&lt;br /&gt;
		}&lt;br /&gt;
		else if (loc = lowerleft || loc = lowerright)&lt;br /&gt;
		{&lt;br /&gt;
			current_line := (Array0 - a_index + 1)&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		current_value := Array%current_line%&lt;br /&gt;
		&lt;br /&gt;
		len := StrLen(current_value)&lt;br /&gt;
&lt;br /&gt;
		if (hdir = &amp;quot;{Left}&amp;quot;)&lt;br /&gt;
		{&lt;br /&gt;
			new_value =&lt;br /&gt;
&lt;br /&gt;
			Loop %len%&lt;br /&gt;
			{&lt;br /&gt;
				new_value := new_value . SubStr(current_value, (len - a_index) + 1, 1)&lt;br /&gt;
			}&lt;br /&gt;
			&lt;br /&gt;
			current_value := new_value&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		Loop %len%&lt;br /&gt;
		{&lt;br /&gt;
			current_char := SubStr(current_value, a_index, 1)&lt;br /&gt;
&lt;br /&gt;
			if (current_char != wallsymbol)&lt;br /&gt;
			{				&lt;br /&gt;
				if (!inrun)&lt;br /&gt;
				{&lt;br /&gt;
					if (current_char = floorsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %digcommand%&lt;br /&gt;
					}&lt;br /&gt;
					else if (current_char = updownsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %updowncommand%&lt;br /&gt;
					}&lt;br /&gt;
					else if (current_char = downsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %downcommand%&lt;br /&gt;
					}&lt;br /&gt;
					else if (current_char = upsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %upcommand%&lt;br /&gt;
					}&lt;br /&gt;
					else if (current_char = rampsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %rampcommand%&lt;br /&gt;
					}&lt;br /&gt;
					else if (current_char = channelsymbol)&lt;br /&gt;
					{&lt;br /&gt;
						Send %channelcommand%&lt;br /&gt;
					}&lt;br /&gt;
&lt;br /&gt;
					Send {Enter}&lt;br /&gt;
					inrun = 1&lt;br /&gt;
				}&lt;br /&gt;
&lt;br /&gt;
				;;If we're at the end of a line or the next char is different, then end the run&lt;br /&gt;
				if ((a_index &amp;gt;= len) || (current_char != SubStr(current_value, a_index + 1, 1)))&lt;br /&gt;
				{&lt;br /&gt;
					Send {Enter}&lt;br /&gt;
					inrun = 0&lt;br /&gt;
					Sleep %wait%&lt;br /&gt;
				}&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			if (a_index &amp;lt; len)&lt;br /&gt;
			{&lt;br /&gt;
				Send %hdir%&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
		&lt;br /&gt;
		if (a_index &amp;lt; Array0)&lt;br /&gt;
		{&lt;br /&gt;
			Send %vdir%&lt;br /&gt;
&lt;br /&gt;
			if (hdir = &amp;quot;{Right}&amp;quot;)&lt;br /&gt;
			{&lt;br /&gt;
				hdir = {Left}&lt;br /&gt;
			}&lt;br /&gt;
			else if (hdir = &amp;quot;{Left}&amp;quot;)&lt;br /&gt;
			{&lt;br /&gt;
				hdir = {Right}&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
	MsgBox File not found&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sample file to show how this all works:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
111111&lt;br /&gt;
100001&lt;br /&gt;
100201&lt;br /&gt;
103001&lt;br /&gt;
100401&lt;br /&gt;
105001&lt;br /&gt;
100601&lt;br /&gt;
100001&lt;br /&gt;
111111&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a room filled with up/down stairs, a ramp, and a channel.&lt;br /&gt;
&lt;br /&gt;
And finally, here's a sample pattern based on the decentralized workshop:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1111111111111111111111111111111111111&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000000000000000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000111101111111110111111111011110001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000000000000010000000100000000000001&lt;br /&gt;
1000111101111000100010001111011110001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1101100010001000100010001000100011011&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000111101111111100011111111011110001&lt;br /&gt;
1000100000000000030400000000000010001&lt;br /&gt;
1010000000000000030400000000000000101&lt;br /&gt;
1000100000000000030400000000000010001&lt;br /&gt;
1000111101111111100011111111011110001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1101100010001000100010001000100011011&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000111101111000100010001111011110001&lt;br /&gt;
1000000000000010000000100000000000001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000100000001000100010001000000010001&lt;br /&gt;
1000111101111111110111111111011110001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000000000000000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1000000000000001000001000000000000001&lt;br /&gt;
1111111111111111111111111111111111111&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Game_Interface FAQ}}&lt;br /&gt;
[[Category:ahk scripts]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:String_dump&amp;diff=45952</id>
		<title>40d Talk:String dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:String_dump&amp;diff=45952"/>
		<updated>2008-12-25T08:28:28Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;What is this?  [[User:Gairabad|Gairabad]] 20:22, 11 November 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
I agree, is this even useful? it has three pages linking to it, and no one(did I spell that right?) would ever search for it. I found it because it had been edited recently, but only recently realized how unimportant it was, and then I had internet problems for a week or so. Anyway, whoever made this can tel us why it is useful, or else it should probably be deleted.--[[User:Destor|Destor]] 20:06, 24 December 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
:It provides clues into what is hard-coded into the game.  It's mostly of use to this wiki's editors, not to the game's players.--[[User:Maximus|Maximus]] 02:25, 25 December 2008 (EST)&lt;br /&gt;
::Its really useful for finding out how the game catagorizes items. I used one extensively while I was working on the reaction page. --[[User:Ikkonoishi|Ikkonoishi]] 03:28, 25 December 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Creature_token&amp;diff=37630</id>
		<title>40d Talk:Creature token</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Creature_token&amp;diff=37630"/>
		<updated>2008-09-26T12:28:52Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Body parts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Children==&lt;br /&gt;
Does anyone know which tag cause an animal to breed? I believe it's either [CHILD:] or [CHILDNAME:][[User:Moonman|Moonman]] 18:18, 23 July 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== HOW DO I SHOT WEB? ==&lt;br /&gt;
first, does [WEBBER] imply the ability to shoot web, make webs or both?&lt;br /&gt;
second (assuming the answer to at least one of the above is true), how would one use this in adventure mode?{{user:yrael/sig|DATE=12:45, 14 May 2008 (EDT)}}&lt;br /&gt;
*it adds the ability to shoot web, but creatures will only shoot web at other creatures they are hostile to.[[User:Moonman|Moonman]] 18:16, 23 July 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== MAGICAL ==&lt;br /&gt;
&lt;br /&gt;
I think this tag was meant for creatures not from natural origin. Its the same as Natural, but elves might react differently to it. &amp;lt;br&amp;gt;&lt;br /&gt;
-Booken 06:22, 26 April 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
== ITEMCORPSE ==&lt;br /&gt;
&lt;br /&gt;
(see [http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=13&amp;amp;t=000602 this forum thread])&lt;br /&gt;
&lt;br /&gt;
[ITEMCORPSE:&amp;lt;type&amp;gt;:&amp;lt;subtype&amp;gt;:&amp;lt;material&amp;gt;:&amp;lt;matgloss&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
Does the sub-type field actually have a use, or is the only option &amp;quot;NO_SUBTYPE&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Anyway, the USE_RACEGLOSS for the matgloss field seems to only work for some (built-in?) materials.  For example, the [[Treant|Treants]] use the entry:&lt;br /&gt;
    [HAS_RACEGLOSS:WOOD]&lt;br /&gt;
    [ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:USE_RACEGLOSS]&lt;br /&gt;
[[Treant|Treants]] will appear as &amp;quot;Mahogany treant&amp;quot;, &amp;quot;Oak treant&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
However, when using a custom matgloss file, this functionality stops working, and treants (and there log remains) are undescriptive.  I've tried creating a ''matgloss_treant.txt'' file and adding a few unique entries, like [MATGLOSS_WOOD:FOOBAR_TREE] and [MATGLOSS_WOOD:BAZ_TREE], and editing the [Treant] to:&lt;br /&gt;
    [HAS_RACEGLOSS:TREANT]&lt;br /&gt;
    [ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:USE_RACEGLOSS]&lt;br /&gt;
...this doesn't seem to do anything.  If I want the [[Treant]] to leave special remains, like my Foobar Tree, I have to change the creature tokens to:&lt;br /&gt;
    [HAS_RACEGLOSS:TREANT]&lt;br /&gt;
    [ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:FOOBAR_TREE]&lt;br /&gt;
But here, I can only have &amp;quot;Foobar treants&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== PACK_ANIMAL ==&lt;br /&gt;
&lt;br /&gt;
Anybody happen to know anything about the [PACK_ANIMAL] tag?  I noticed that [[muskox|muskoxen]], [[mule|mules]] and [[donkey|donkeys]] all share this distinction.  I also noticed someone in the [[muskox]] page had said that muskoxen could serve as haulers.  Has Toady implemented a tag for animal haulers and sneaked it past everyone?  Perhaps they can only perform this function if they serve as a pet to haulers?  Or is it simply that merchants can carry goods on them? [[User:Some1else|Some1else]] 01:05, 19 February 2008 (EST)&lt;br /&gt;
:It's only merchants, I believe. --[[User:Penguinofhonor|Penguinofhonor]] 21:31, 29 July 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== VERMIN_ tags ==&lt;br /&gt;
&lt;br /&gt;
Made a new creature with VERMIN_CHASM and it spit out an unrecognised token message in my errorlog. Can someone confirm these work? Preferrably by pointing to a creature that has them? --[[User:Nunix|Nunix]] 18:57, 16 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:thats leftover from 2d. bats and such used to have it, but now have a biome tag instead -[[User:Chariot|Chariot]] 19:09, 16 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks. Do we know if that applies to any of the others? --[[User:Nunix|Nunix]] 18:29, 22 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Litter size ==&lt;br /&gt;
&lt;br /&gt;
I've been testing the [LITTER_SIZE] token, and according to my tests it indeed affects the number of children. I set a creature to have 5-10 litter size and it did indeed produce 6 and 7 children, while another creature had 3-5 and produced 3-5 children. I'm gonna remove the &amp;quot;untested&amp;quot; tag from the wiki, feel free to tell me off if it proves otherwise.--[[IUser:Eurytus|Eurytus]] 23:14, 5 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Redirect ==&lt;br /&gt;
&lt;br /&gt;
In conformance with the [[DwarfFortressWiki:Community Portal|Community Portal]], I think this page should be moved to [[Creature tokens]].  It can keep the plural because people are usually concerned with all of the tokens instead of just one.  Thoughts? --[[User:JT|JT]] 22:26, 7 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== defender ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;DEFENDER 		Appears from the glowing pits after the magma river.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
After the magma river? This seems to be left over from the 2d version, does this token still exist? If so we might want to adjust its description to the newest version&lt;br /&gt;
:Yeah, I just noticed that this entire article seems to have been copypasta-ed from the old version and not updated. There's a number of tags listed there that no longer exist, such as all of the RIVERATTACK_* tags. I'll stick an &amp;quot;old&amp;quot; template on the page for now, since it'll take some doing to go through all of the tags and verify that they still exist/do the same thing as they used to. But to answer your specific question, yes, the DEFENDER tag does still exist. It's just the magma river that doesn't. --[[User:Morlark|Morlark]] 12:14, 25 June 2008 (EDT)&lt;br /&gt;
::Ok, I've had a bit of a search, and I've removed those tags which I've verified as non-existent. I should stress though that my search was not exhaustive, so it's possible that this article does still contain errors. --[[User:Morlark|Morlark]]&lt;br /&gt;
&lt;br /&gt;
== Body parts ==&lt;br /&gt;
&lt;br /&gt;
It would be nice if there was a list of available body parts, ive been trying to make a new creature and am stuck using dwarven body parts... --[[User:High tech dragon|High tech dragon]] 22:59, 25 September 2008 (EDT)&lt;br /&gt;
:[[Body_tokens]] --[[User:Ikkonoishi|Ikkonoishi]] 08:28, 26 September 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Utility:For_Each_Tile&amp;diff=44129</id>
		<title>Utility:For Each Tile</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Utility:For_Each_Tile&amp;diff=44129"/>
		<updated>2008-09-22T23:35:24Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Advanced Examples */ added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tweak Modules]][[Category:Utilities]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Exponent_For_Each_Tile_Screenshot_00.png|right]]&lt;br /&gt;
&lt;br /&gt;
This is a module for [[User:Rick/Tweak|Gibbed's Dwarf Fortress Tweak]] utility that can conditionally alter tiles of the map.  By supplying a condition and a set of operations, the program is able to evaluate the condition for each tile, and if the condition is true, then the operations are executed, altering that particular tile is some fashion.  This flexibility potentially provides numerous uses.  This utility was originally designed to be a smarter version of Reveal, but grew to become much more.  Not only can this utility show or hide tiles, but it can change whether or not they are outside, inside, light, dark, subterranean, or above ground.  It can alter water and magma levels, mining designations, and in some cases substantially alter tile types, such as when creating a river source tile.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===Required Components===&lt;br /&gt;
&lt;br /&gt;
*[http://dffd.wimbli.com/file.php?id=404 Exponent.DwarfFortress.Tools.ForEachTile.zip] (extract this into the tweak/plugins/ subfolder)&lt;br /&gt;
*[[User:Rick/Tweak|Gibbed's Dwarf Fortress Tweak]]&lt;br /&gt;
*[http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6 .NET 3.5 Runtime]&lt;br /&gt;
&lt;br /&gt;
===Memory XML File Values===&lt;br /&gt;
&lt;br /&gt;
Below is a list of all the required and optional memory addresses and offsets for each version of Dwarf Fortress on which this utility has been tested.  Most of them are not necessary for limited operation of the program, but certain functions will be unavailable if the needed memory locations are not available.&lt;br /&gt;
&lt;br /&gt;
====v0.28.181.40d====&lt;br /&gt;
&lt;br /&gt;
Version Hash Code:  2c686c26307dcccd7c36cc79737ebe4f&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x01393260&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009FC368&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009FC294&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009FC298&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009FC29C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00D457F4&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D73868&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D73844&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_x&amp;quot; value=&amp;quot;0x01706D4C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_y&amp;quot; value=&amp;quot;0x01706D50&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x015C4D58&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x015C4D70&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x015C4D74&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x015C4D78&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====v0.28.181.40c====&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x01392268&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009FB368&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009FB294&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009FB298&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009FB29C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00D447FC&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D72870&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D7284C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_x&amp;quot; value=&amp;quot;0x01705D44&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_y&amp;quot; value=&amp;quot;0x01705D48&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x015C3D60&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x015C3D78&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x015C3D7C&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x015C3D80&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
====v0.28.181.40b====&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x01392268&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009FB368&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009FB294&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009FB298&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009FB29C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00D447FC&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D72870&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D7284C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_x&amp;quot; value=&amp;quot;0x01705D44&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_y&amp;quot; value=&amp;quot;0x01705D48&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x015C3D60&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x015C3D78&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x015C3D7C&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x015C3D80&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
====v0.28.181.40a====&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x01392268&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009FB368&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009FB294&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009FB298&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009FB29C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00D447FC&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D72870&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D7284C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_x&amp;quot; value=&amp;quot;0x01704ECC&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_y&amp;quot; value=&amp;quot;0x01704ED0&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x015C3D60&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x015C3D78&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x015C3D7C&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x015C3D80&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
====Dwarf Fortress v0.28.181.39f====&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x01386260&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009EF368&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009EF294&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009EF298&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009EF29C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00D387FC&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D66870&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D6684C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_x&amp;quot; value=&amp;quot;0x016F8A7C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;window_grid_y&amp;quot; value=&amp;quot;0x016F8A80&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x015B7920&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x015B7938&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x015B793C&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x015B7940&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Dwarf Fortress v0.28.181.39e====&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;address name=&amp;quot;menu_state&amp;quot; value=&amp;quot;0x0132FDB0&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;view_state&amp;quot; value=&amp;quot;0x009E3358&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_x&amp;quot; value=&amp;quot;0x009E3284&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_y&amp;quot; value=&amp;quot;0x009E3288&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;mouse_z&amp;quot; value=&amp;quot;0x009E328C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_x&amp;quot; value=&amp;quot;0x00CE23C4&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_y&amp;quot; value=&amp;quot;0x00D103C0&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;viewport_z&amp;quot; value=&amp;quot;0x00D1039C&amp;quot; /&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_data&amp;quot; value=&amp;quot;0x01561470&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_x_count&amp;quot; value=&amp;quot;0x01561488&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_y_count&amp;quot; value=&amp;quot;0x0156148C&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;address name=&amp;quot;map_z_count&amp;quot; value=&amp;quot;0x01561490&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_type_offset&amp;quot; value=&amp;quot;0x0062&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_designation_offset&amp;quot; value=&amp;quot;0x0264&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_occupancy_offset&amp;quot; value=&amp;quot;0x0664&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature1_offset&amp;quot; value=&amp;quot;0x1564&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;offset name=&amp;quot;map_data_temperature2_offset&amp;quot; value=&amp;quot;0x1764&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
&lt;br /&gt;
===Version 0.6 Beta (2008/08/18 21:32 CST)===&lt;br /&gt;
&lt;br /&gt;
* added bodily fluid functions (blood, pus, ichor, goo, slime) in the Occupancy categories, along with related constants in the Constants category&lt;br /&gt;
* renamed &amp;lt;tt&amp;gt;is_vomit&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;has_vomit&amp;lt;/tt&amp;gt;, and moved it and &amp;lt;tt&amp;gt;set_vomit&amp;lt;/tt&amp;gt; to the Occupancy categories&lt;br /&gt;
* renamed &amp;lt;tt&amp;gt;is_snow_covered&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;has_snow&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;set_snow_covered&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;set_snow&amp;lt;/tt&amp;gt;, and moved them to the Occupancy categories&lt;br /&gt;
* added support for the string type, including a &amp;lt;tt&amp;gt;to_string&amp;lt;/tt&amp;gt; function and the concatenation operator (+)&lt;br /&gt;
* added &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;print_line&amp;lt;/tt&amp;gt; functions for writing to the output panel&lt;br /&gt;
* added the &amp;lt;tt&amp;gt;is_allocated&amp;lt;/tt&amp;gt; function&lt;br /&gt;
* added a new Experimental category, including functions for reading/writing type, matgloss id, and biome id&lt;br /&gt;
* provided a variation for most query functions to accept specific x, y, z coordinates, instaed of just defaulting to the current tile's x, y, z coordinates&lt;br /&gt;
* fixed various bugs with the functions in the Raw category, and added mask_and_set_ versions of each&lt;br /&gt;
* various small improvements to the interface&lt;br /&gt;
* updated viewport calculation code to properly handle changes in the latest DF version (0.28.181.40a)&lt;br /&gt;
&lt;br /&gt;
===Version 0.5 Beta (2008/08/15 18:18 CST)===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;set_liquid_type_to_water&amp;lt;/tt&amp;gt; was not working, now it is&lt;br /&gt;
&lt;br /&gt;
===Version 0.4 Beta (2008/08/15 16:29 CST)===&lt;br /&gt;
&lt;br /&gt;
* general interface improvements&lt;br /&gt;
* fixed undo bug, when the maximum undo/redo depth was infinite&lt;br /&gt;
* added &amp;lt;tt&amp;gt;z_distance_to_surface&amp;lt;/tt&amp;gt;&lt;br /&gt;
* renamed &amp;lt;tt&amp;gt;is_ramp&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;is_upward_ramp&amp;lt;/tt&amp;gt;&lt;br /&gt;
* added &amp;lt;tt&amp;gt;is_ramp&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;is_downward_ramp&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;is_above_upward_ramp&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;make_downward_ramp&amp;lt;/tt&amp;gt;&lt;br /&gt;
* renamed &amp;lt;tt&amp;gt;is_lava&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;is_magma_source&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;make_lava&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;make_magma_source&amp;lt;/tt&amp;gt;&lt;br /&gt;
* added traffic designation queries, which had erroneously been left out&lt;br /&gt;
* added a few additional example operation sets to the included file&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
&lt;br /&gt;
====Menus and Toolbar Buttons====&lt;br /&gt;
&lt;br /&gt;
=====File=====&lt;br /&gt;
&lt;br /&gt;
Items under the file menu are used to work with files that contain operation sets.  A file can contain any number of operation sets.  Generally, you will only need to keep one file, and a default is provided with some basic operation sets already defined.  The standard actions of saving, opening, or creating a new file exist, as well as the option to refresh from the current file.  This is for situations where the file that is currently open within the utility was edited by an external program, and you wish to bring these changes in without having to go through the Open File dialog.&lt;br /&gt;
&lt;br /&gt;
=====Edit=====&lt;br /&gt;
&lt;br /&gt;
The items in the edit menu allow you to work with the list of operation sets for the file that is currently open.  Creating a new operation set will add a blank item at the bottom of the list and select it, so that you can edit its details in the text boxes below.  Duplicating an item will make a copy of the selected item immediately below that item.  Deleting the selected item will remove that item from the list completely.&lt;br /&gt;
&lt;br /&gt;
Items can also be rearranged, so that you can place more frequently used operation sets near the top, and less frequently used ones near the bottom.  Moving the selected item up or down will simply cause it to swap locations with the item that is immediately above or below it, respectively.&lt;br /&gt;
&lt;br /&gt;
=====Insert=====&lt;br /&gt;
&lt;br /&gt;
=====Execute=====&lt;br /&gt;
&lt;br /&gt;
====List of Operation Sets====&lt;br /&gt;
&lt;br /&gt;
====Operation Set Text====&lt;br /&gt;
&lt;br /&gt;
===Expressions===&lt;br /&gt;
&lt;br /&gt;
Expressions use standard in-fix notation, complete with parentheses, operator precedence, and so forth. Individual items in an expression fall under one of five categories:  constants, operators, general functions, queries, and modifiers.  A description of each of these categories, along with some basic examples, are given below.&lt;br /&gt;
&lt;br /&gt;
====Constants====&lt;br /&gt;
&lt;br /&gt;
Constants are just specific values that are given an easy-to-remember name.  Some of them are boolean, which means that they are either true or false, and some are doubles, which means that they represent real numbers.&lt;br /&gt;
&lt;br /&gt;
=====Boolean Constants=====&lt;br /&gt;
&lt;br /&gt;
While the two boolean values are represented internally as 0 (false) or 1 (true), you will use the actual text &amp;quot;false&amp;quot; or &amp;quot;true&amp;quot; in order to use these values in the program.&lt;br /&gt;
&lt;br /&gt;
=====Double Constants=====&lt;br /&gt;
&lt;br /&gt;
Some common mathematical constants are available, as well as some constants specific either to the Dwarf Fortress universe or to some particular function in this program.  Standard mathematical constants are those such as [http://en.wikipedia.org/wiki/Pi pi] and [http://en.wikipedia.org/wiki/E_(mathematical_constant) e].  Constants specific to Dwarf Fortress are those such as water_freezing_temperature and water_boiling_temperature, which refer to Dwarf Fortress-specific temperature values.  Finally, constants such as euclidean_distance and manhattan_distance are used by certain functions to indicate how they should function.  These two in particular are used to tell certain functions how to calculate distances between pairs of tiles.&lt;br /&gt;
&lt;br /&gt;
====Operators====&lt;br /&gt;
&lt;br /&gt;
Basic mathematical, boolean, and comparison operators are available, as well as parentheses to control the order of evaluation.  Boolean operators do not use symbols, but rather use the text &amp;quot;and&amp;quot;, &amp;quot;or&amp;quot;, and &amp;quot;not&amp;quot;.  All arguments to a boolean operator (&amp;quot;and&amp;quot; and &amp;quot;or&amp;quot; expect two arguments, &amp;quot;not&amp;quot; expects one) must be boolean, and the result is also boolean.  Mathematical operators require doubles, and return doubles.  Comparison operators require doubles (except for equal (=) and not-equal (!=), which can take either booleans or doubles) and return booleans.&lt;br /&gt;
&lt;br /&gt;
====General Functions====&lt;br /&gt;
&lt;br /&gt;
Some general functions are available for performing various generic tasks.  Standard mathematical functions exist, such as the trigonometric sin(), cos(), and tan(), as well as the power/exponents functions sqrt(), pow() and log().  Random values are also available with random_bool() and random_double().  Other functions exist as well, which I will describe in the advanced section below.&lt;br /&gt;
&lt;br /&gt;
====Queries====&lt;br /&gt;
&lt;br /&gt;
Queries are functions that ask something about the current state of the game, and return some result as the answer.  There are a variety of subcategories that queries fall under.  For example, map queries ask something about the map:  How big it is, which tile is currently being tested/modified, where the viewport is located, or where the cursor is located.  Property queries ask something about basic properties of the current tile:  if it is light or dark, above ground or subterranean, muddy or not, and so on.  Other categories include physical, occupancy, designation, and area queries.&lt;br /&gt;
&lt;br /&gt;
====Modifiers====&lt;br /&gt;
&lt;br /&gt;
Modifiers are functions that alter the current tile in some way, and do not return any value (which is often indicated by saying that they return void).  All modifiers have corresponding queries, though not all queries have corresponding modifiers.  For example, you cannot modify the viewport width even though you can query it.  Technical limitations also prevent many physical queries from having matching modifiers, modifying a tile to become a tree, for example.&lt;br /&gt;
&lt;br /&gt;
There is still a lot that can be modified, however.  The light/dark, inside/outside/ above ground/subterranean values mentioned above can all be changed.  The level and type of liquid in a tile can be changed.  Digging designations can be altered.  And even certain physical states can be modified, such as turning a tile into a river source or a bottomless pit.&lt;br /&gt;
&lt;br /&gt;
===Operation Sets===&lt;br /&gt;
&lt;br /&gt;
The function portion of an operation set consists of a condition expression, and one or more operation statements.  A statement is merely an expression that has its return value ignored, if it has one.  When an operation set is executed, the condition is evaluated for each tile, and if the condition is true, then the operations are executed, one at a time.  If the condition is false, no operations are executed.&lt;br /&gt;
&lt;br /&gt;
====Basic Examples====&lt;br /&gt;
&lt;br /&gt;
=====Reveal=====&lt;br /&gt;
&lt;br /&gt;
The most straightforward example is an unconditional reveal, which performs precisely the same function as [[User:Rick/Tweak#Core_Modules|Rick's basic reveal module]].  It applies to every tile regardless of each tile's state, and modifies each tile to be shown.  In this program, it would therefore look like:&lt;br /&gt;
&lt;br /&gt;
Condition:&lt;br /&gt;
 true&lt;br /&gt;
&lt;br /&gt;
Operations:&lt;br /&gt;
 show();&lt;br /&gt;
&lt;br /&gt;
The semicolon at the end of the operation is optional.  If you were to have more than one operation, as I will show later, then you would need a semicolon between each statement.&lt;br /&gt;
&lt;br /&gt;
====Advanced Examples====&lt;br /&gt;
Mine out a vein of minerals all at once. &lt;br /&gt;
Designate the first tile to be mined then just keep running it until nothing else gets designated.&lt;br /&gt;
I put some limits on it to keep it from designating tiles that aren't near the cursor so you have to be in look mode. Some tiles other than ores are considered minerals so be careful.&lt;br /&gt;
&lt;br /&gt;
Conditions:&lt;br /&gt;
 (cursor_z = z) and (xy_distance_to_cursor &amp;lt; 10) and is_mineral and is_wall and&lt;br /&gt;
 (x &amp;gt; 0) and (x &amp;lt; map_width) and &lt;br /&gt;
 (y &amp;gt; 0) and (y &amp;lt; map_height) and (&lt;br /&gt;
 (is_designated_for_mining(x - 1, y - 1, z)) or&lt;br /&gt;
 (is_designated_for_mining(x - 1, y    , z)) or&lt;br /&gt;
 (is_designated_for_mining(x - 1, y + 1, z)) or&lt;br /&gt;
 (is_designated_for_mining(x    , y - 1, z)) or &lt;br /&gt;
 (is_designated_for_mining(x    , y + 1, z)) or&lt;br /&gt;
 (is_designated_for_mining(x + 1, y - 1, z)) or&lt;br /&gt;
 (is_designated_for_mining(x + 1, y    , z)) or&lt;br /&gt;
 (is_designated_for_mining(x + 1, y + 1, z))&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Operations:&lt;br /&gt;
 designate_for_mining&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:How_to_safely_start_fortress_mode&amp;diff=44905</id>
		<title>40d:How to safely start fortress mode</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:How_to_safely_start_fortress_mode&amp;diff=44905"/>
		<updated>2008-09-19T16:05:30Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Dwarf jobs and happiness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide was compiled by Yanlin (And the users) for the users. Basically it contains Yanlin's personal advice with the advice of others taking a higher rank.&lt;br /&gt;
&lt;br /&gt;
The page has not yet been completely made wiki friendly and it is a WIP.&lt;br /&gt;
&lt;br /&gt;
=The guide=&lt;br /&gt;
&lt;br /&gt;
All advice in the replies will be summed up here in user friendly bits.&lt;br /&gt;
&lt;br /&gt;
==Dwarf jobs and happiness==&lt;br /&gt;
&lt;br /&gt;
Don't try to take one of everything at the start. All jobs that will be run almost constantly can just be done by an  [[Immigration|immigrant]]. For example, start with one [[mason]] working like a madman churning out [[door]]s and such. Then when you get your first wave, start at least 4 mason [[workshop]]s and make them churn out standard [[room]]s. If you can make an apartment complex instead of a huge [[Barracks|barracks]] room, you get yourself a good [[Thought|happy bonus]]. -Yanlin&lt;br /&gt;
* Legendary dining room is all you need. It is so useful it makes rooms better than barracks merely a roleplay thing. Also, dabbling masons should work on blocks, not furniture. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Legendary [[dining room]]s: Any room that's about 5x5, fully engraved and has maybe 4 tables and chairs will be legendary from my experience. I usually take a proficient [[engraver]] with me on the start to speed it up and it also helps if he is the only one doing the engravings. Legendary dining rooms can make dwarves forget even the most horrible things! Even death. -Yanlin&lt;br /&gt;
* Average artifact in a small plain room with crappy tables and thrones counts as legendary dining room too. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A fort divided does not stand. Make sure your dwarves don't run around like idiots. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Cave adaptation]]: I set up a simple system. There is only one exit out of my apartment complex. My apartment complex spans multiple [[Z-axis|floors]] and each one has the entire entrance in light state. How? Well light passes through [[Floor#Construction|floors]]! Go figure. This is how I do it. I [[channel[[ out the entire entrance from the top to the level I am currently building in. I [[Wall#Construction|wall]] it in on the top to prevent [[goblin]]s and other nasty stuff from jumping or firing in. I create a small &amp;quot;maintenance&amp;quot; tunnel going near the channeling area so that the channelers have access to it. It's simple really. When the channeling grinds to a halt, pave all the channeled areas with floors. I never tested [[wood]] floors. (What kind of idiot wastes wood on anything but [[bin]]s, [[bucket]]s, [[barrel]]s and [[bed]]s?) -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Stone]] [[stockpile]]s: NO! NOT A CHANCE! But if you set up a special workshop for churning out expensive items, set up a stockpile that accepts only that one kind of expensive rock. Setting up a small stone stockpile under your masonry workshop is a good idea though. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Hauling|Haulers]]: Have at least 5-10 free peasants for hauling. Usually my fortress can run on just my 7 starting dwarves. I can easily supply 60 dwarves worth of [[food]] and [[Alcohol|booze]] while the rest do the odd job here and there. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Micromanagement: Only your core dwarves need it. The rest can just do anything they want. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Fishing]]: Not worth it. Only the [[shell]]s are worth it. -Yanlin&lt;br /&gt;
&lt;br /&gt;
* However, fishing can give you lots and lots of fishbones, which can then be made into bone bolts that Dwarves use for practice. Very useful on maps without trees. - HisMajestyBOB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Ambusher|Hunting]]: Worth it. But at least give your [[hunter]] some [[armor]]. -Yanlin&lt;br /&gt;
* Do not waste starting dwarf on it. This is job for immigrants. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Farm plot|Farm]] size: 10x10 of [[plump helmet]]s without fertilizing will feed 500 dwarves. A 5x5 field WITH fertilizing will feed about 500 dwarves. Do the math. (Rough estimates. Untested.) -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Cloth]]: [[Pig tail]]s will provide you all the cloth you need and booze too. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Buying your first [[anvil]]: Mugging. No not robbing the [[Trading|merchant]]. Making tons and tons of stone [[Goblet|mugs]]! You'd be amazed how much you can buy with a few bins worth of mugs. Each stone gives 3 mugs and a skilled mason can make enough to... Well... Buy anything you need. Remember, [[Craftsdwarf|craftsdwarves]] are GOOD! -Yanlin &lt;br /&gt;
* Mechanic is the way to go. Not only are mechanisms single items (less hauling) but also aren't useless. Prepared food is very good too, though it needs 3 dwarves working (planter, brewer and cook. Combining them into one dwarf is bad thing). Craftdwarves aren't really useful at start and are almost totally useless after that. -Someone-else&lt;br /&gt;
* Scrape up enough to buy at least 2 cheese then cook the cheese. Use the cooked cheese to buy the rest of the cheese. Cook the rest of the cheese. Buy out the rest of the caravan with the new meal. -Ikko&lt;br /&gt;
&lt;br /&gt;
[[Nobles]]: Give them a huge [[bedroom]], huge [[office]] and cram it up with some decorations and [[engraving]]s. That should keep em happy for a while. -Yanlin&lt;br /&gt;
* If you happen to have artifact furniture just build one room of average size, but few beds, tables and thrones in it and make it a &amp;quot;noble room&amp;quot;. Artifact will boost its value enough for all dwarves who aren't kings unless it's made from one log, stone, bone, shell or the like. -Someone-else&lt;br /&gt;
&lt;br /&gt;
==Pets and food animals==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Cat|Cats]]. DO NOT DO IT! IT IS NOT WORTH IT! -Yanlin&lt;br /&gt;
* Wrong. Having one cat will not only boost dwarves' mood (no [[vermin|rats]] and other ugly crap) but will also make your food safer. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Dog|Dogs]]. DO IT! IT IS WORTH IT! -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Shamelessly kill off any newborn pets to prevent overpopulation. Especially useful on cats. -HisMajestyBOB&lt;br /&gt;
* Or put them in a [[cage]] as an [[butchering|emergency food source]]. Caged animals do not breed, block paths or waste CPU power on pathfinding. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dogs give a lot of bang for your buck.&lt;br /&gt;
They are a good source of [[food|meat]]. You just pay 16 bucks for them upon embark, if I remember correctly. This might be a little bit more than the price of 5 meat (which is 10 bucks) but you have to take into account that they get offspring, son that 20 dogs of the first year might turn into 30 dogs or more in the second year.&lt;br /&gt;
when you slaughter them each dog gives you 5 meat, 5 [[bones]], a [[skin|hide]] and a [[skull]]. This as well as the fact that dogs, in contrast to meat don't rot, makes it useful to buy at least some of them upon start.  -Proteus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dogs are better than cats. Dogs breed just as fast and you can have an army of wardogs slaughtering everything, not to mention they make an incredible [[thief]] defense. Simply put a meeting zone across the entrance to your fort, then you'll have all eleventy billion dogs wandering around in that meeting zone. Any thief is instantly turned into [[kobold]] kibble, and they're quite handly at dealing with smaller sieges too.&lt;br /&gt;
Also you can slaughter dogs at whim, whereas you can't slaughter an owned pet. -Hyndis&lt;br /&gt;
&lt;br /&gt;
==Defense==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An army of peasants is a good thing if you think about it. Churn out a few [[crossbow|crossbows]] and [[ammo|bolts]]. Even copper weapons can take down most sieges you will probably get. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Goblin]] babysnatchers and Kobold thieves. One dog on a [[chain]] will kill them on contact. Especially a war dog. I usually buy a few chains at the embarkment. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Security. [[traps|Stonefall traps]] at the entrance help. After you need more than that, you probably have more than that. Make weapon traps that shoot or better yet, station [[marksdwarf|marksdwarves]] in [[fortifications]] outside your fort. Make sure to put them in a [[tower]]. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You might want to bring along a rope and then wall in your fortress entrance so there is only one path. Then set a dog on the rope (Not a cat, those are more useful against vermin) beside the door to stop the sneaky sorts. -Gamerofthegame&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weapon traps and marksdwarves = survival for for most -wendigo&lt;br /&gt;
&lt;br /&gt;
==Production and efficiency==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Glass]]. You want [[sand]] on your map. It is awesome advice to have sand on your map. Remember. Glass is EASY to make especially if you can get a source of [[fuel]] for your forge. You can make almost everything out of glass. If you can get a [[magma glass furnace]], you win. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Iron]]. You want it. If you didn't find iron, I suggest just starting over in another location or if you feel determined, buy it. But it can get costly. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common [[barrel]] exploit. Each piece of meat and [[alcohol|booze]] you bring with you, will give you one free barrel. 5 of each can fit in a barrel and if you take 6 of something, you get 2 barrels. Etc. -Flok Speargrabber&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[turtle|Turtles]] are AWESOME! -Flok Speargrabber&lt;br /&gt;
* Be sure to disable bones and [[shells]] in your early outdoor refuse [[stockpile]] so you don't waste turtles' awesomeness. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Bringing a few [[seeds]] of everything along with you is wise. (I suggest bringing plenty of [[plump helmet]] and [[pig tail]] seeds.) -Flok Speargrabber&lt;br /&gt;
* The second advice is bad. Just start your [[farm plot|farm]] soon and brew what you can and you will have more seeds than need. As for bringing everything: 1 seed each is enough. [[Rock nuts]] are useless before you have food chain and plenty of bags. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[immigration|Immigrants]] are good for [[fishing]] that pesky [[carp]]. (Well not really. But they are good for fishing nonetheless.) -blakyoshi7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Farming. The best source of food. If you don't want to &amp;quot;Cheat&amp;quot; you can just plant a big plump helmet farm. Make sure you don't cook it all though. Make sure at least some goes into booze. Booze and eating raw returns seeds. [[Cooking]] destroys them. Alternatively you can cook the booze. That creates a cheatish infinate supply of food. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Wood]]. You don't really NEED a heavily forested map. Assuming you will make about 100 [[beds]] during 3 years and some barrels, [[bucket|buckets]] and [[bins]], you only need about 500 [[tree|trees]]. Might sound like not enough on a non heavily forested map right? Well wrong. Trees DO grow back. Even a lightly forested map has at least 200 trees from what I could tell. -Yanlin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pig tails are good to bring, as a source of booze that your dwarfs won't accidentally eat up before it's turned into it's sweet elixir of happiness. -Overdose&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pigtail makes great booze. It helps keep your dwarves happy and avoid the &amp;quot;Tired of same booze&amp;quot; unhappy thought. -motorbitch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need [[cloth]] only for [[strange mood|strange moods]]. You can easily buy all the cloth you need and have your [[farmer|farmers]] do more useful work. -motorbitch&lt;br /&gt;
* Wrong. Glass industry requires many bags. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Two humped camels are good for farming as they yield a lot. Consider this option to diversify your meals. Also helps if you want to avoid the booze food exploit.- motorbitch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lopped off body parts create small bones that are rather useless. (Training bolts are never really useless as you should have too many bins anyway.) -motorbitch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should only put a priority on [[Magma]] if you have the ability to make glass with it. If so, it should be one of your first things. -Gamerofthegame&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have your [[carpenter]](s) craft a steady flow of beds/barrels/bins -wendigo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run a [[still]] nonstop. Get those seeds, distill that booze. -wendigo&lt;br /&gt;
* If you have many barrels filled with booze and no free ones just cook some beer biscuits. Not only they will make your dwarves happier but also will train your cook and let your brewer continue his work. Don't do this if you have no plants to brew. -Someone-else&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Metalworking is desirable, but not crucial. -wendigo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I set every dwarf in the fortress to [[butcher]] and [[tanning|tan]]. Its a very high priority job since the corpses and skins will rapidly decay, and by setting every single dwarf to be able to perform this task (skill doesn't matter, a dabbling dwarf does just as well as a legendary dwarf) there's a very high probability it will get done in time. If you have a lot of corpses to process, simply build a bunch of butcher and tanner workshops. -Hyndis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Wood is useful for:===&lt;br /&gt;
[[Beds]] - [[Bins]] - [[Barrels]] - Spikes - Pump parts - Windmills and water wheels&lt;br /&gt;
&lt;br /&gt;
-Flok Speargrabber&lt;br /&gt;
&lt;br /&gt;
===Stone is good for:===&lt;br /&gt;
&lt;br /&gt;
[[Statues]] - [[chest|Coffers]] - [[cabinet|Cabinets]] - [[Coffins]] - Trade goods - [[Doors]] - [[Floodgates]] - [[chair|Chairs]] - [[table|Tables]] - [[Blocks]] for roads and floors (More brick-y than block-y)&lt;br /&gt;
&lt;br /&gt;
-Flok Speargrabber&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Metal is good for:===&lt;br /&gt;
[[Weapons]] - [[Armor ]] - Magma-safe pumps - Expensive statues - Noble orders, usually, unless they don't want a special metal item &lt;br /&gt;
&lt;br /&gt;
-Flok Speargrabber&lt;br /&gt;
&lt;br /&gt;
==Performance==&lt;br /&gt;
&lt;br /&gt;
Cats are not as bad as they used to be. Now slaughtering the newborns is easy enough and with the new partial print feature, they are not the huge FPS problem they used to be. They are also, like dogs: a good source of meat and such. -Vaftrudner&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't bother with clothes. They don't really do anything and lag your FPS because they get checked every moment. Your dwarves wont mind walking around nude and no one is going to judge them about it. (Politically it does not matter.) -motorbitch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Bring a cage. Just one. You can use it to stuff your excess creatures. Mainly anything outside two cats and maybe two dogs. -Gamerofthegame&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Special conditions==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You could bring five picks and 300 logs if you're on a treeless map. Just don't make stuff from wood if you can make them from something else. (Stockpile = bad) -Ashery&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Adding your own advice=&lt;br /&gt;
&lt;br /&gt;
If you wish to add your own advice, do so in a grammatically correct manner. Links are not mandatory but desired. Remember to sign it with one space, a dash and then your name.&lt;br /&gt;
&lt;br /&gt;
 -NameHere&lt;br /&gt;
&lt;br /&gt;
If you think the advice is poor, do not add it. The last thing Yanlin needs is more pruning of bad advice.&lt;br /&gt;
&lt;br /&gt;
==Formatting==&lt;br /&gt;
&lt;br /&gt;
Keep two lines of space after the advice above yours. Do not add it into the middle of the section.&lt;br /&gt;
Big advices deserve their own subcategory. But don't just sprinkle them around like an idiot.&lt;br /&gt;
&lt;br /&gt;
Keep 3 lines of space under your advice to the next category.&lt;br /&gt;
&lt;br /&gt;
All this formatting is needed so the guide does not become a hard to read wall of text.&lt;br /&gt;
&lt;br /&gt;
=WIP=&lt;br /&gt;
&lt;br /&gt;
This page still needs links to other articles. If you see a word or sentence that should be linked to a particular page, please add it. Make sure to tick the &amp;quot;This is a minor edit&amp;quot; button if you are not doing a big overhaul of the links.&lt;br /&gt;
&lt;br /&gt;
{{Starting FAQ}}&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Tree&amp;diff=25690</id>
		<title>40d Talk:Tree</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Tree&amp;diff=25690"/>
		<updated>2008-09-05T06:02:09Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Supports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;So what's the deal with named trees near elf settlements?  They seem to stop a short distance from the location of the closest elf.  I think I accidentally cut one down, but the elves haven't responded. [[User:Dolohov|Dolohov]] 10:48, 12 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Underground tree farm ==&lt;br /&gt;
&lt;br /&gt;
Well, out of fear of goblin ambushes... and many dead dwarfs later. I decided to make my very own tree farm. Ive got it working, and theres trees growing, but there are rocks all over the place. Do I need to move these rocks to be able to designate these trees to be cut down? I would prefer not to move these 3 or 400 rocks, but what must be done, must be done. --Wafl&lt;br /&gt;
:You do have to move the rocks. You can use the Designate Dump [[Macros_and_keymaps|AutoHotkey script]] to quickly dump a large area of stone, though. --[[User:GreyMario|GreyMario]] 00:17, 8 April 2008 (EDT)&lt;br /&gt;
::tower caps require moving water, and can supposedly spawn next to damp wall that fufills that requirement(moving water)&amp;lt;small&amp;gt;&amp;amp;ndash; [[template:unsigned|unsigned]] comment by [[User:eerr|eerr]]&amp;lt;/small&amp;gt;&lt;br /&gt;
::Moving water is not necessary. Mud is fine. A damp wall doesn't cut it. [[User:VengefulDonut|VengefulDonut]] 22:29, 17 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Grow Time ==&lt;br /&gt;
In my current fortress, I've deforested the map. Then after it I dried the pools. This was in summer of 1055. Now is the late spring of 1057 and I have full-grown Mahogany in one of the pools. It matured in less than two years! Need to check this--[[User:Dorten|Dorten]] 08:27, 15 April 2008 (EDT)&lt;br /&gt;
:I've verified. The time, needed to grow is 1.5 years, not 3! At Pagebend, my current fort, treefarm was muddied at the late spring of 303, and now it's early winter of 304 and I already have some fully matured tower-caps! Changing article--[[User:Dorten|Dorten]]&lt;br /&gt;
&lt;br /&gt;
Do items produced from different tree's wood have different value? Are there more valuable trees than others? --[[User:DDouble|DDouble]] 20:27, 17 April 2008 (EDT)&lt;br /&gt;
:I'm pretty sure all wood is equally valuable.  But different woods have different weights, feather tree wood being extremely light. --[[User:Bouchart|Bouchart]] 21:07, 17 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Growing trees in soil ==&lt;br /&gt;
&lt;br /&gt;
I watered my stone in order to get trees to grow, but trees are not growing in my soil. Do I need to water the soil?--[[User:Wafl|Wafl]] 11:38, 18 April 2008 (EDT)&lt;br /&gt;
:Trees will not grow inside your fortress, unless you channel out the ceiling. If you want to make wood inside your fort you need to embark on a map with cave river or cave lake. When you discover them all non-smoothed muddied natural floor tiles will have a chance to spawn tower cap sapling. They don't need to be muddied with water from this underground feature, any mud will do. Channeling aboveground river underground won't create trees. To find underground water you can use regional prospector utility, it works very well. --[[User:Someone-else|Someone-else]] 15:15, 4 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Magma resistance ==&lt;br /&gt;
&lt;br /&gt;
Trees resist magma like they do resist water. Shouldn't that be included in the article? --[[User:Someone-else|Someone-else]] 15:16, 4 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Deciduousness ==&lt;br /&gt;
&lt;br /&gt;
I'm assuming that the &amp;quot;Autumnal&amp;quot; heading in the table was referring to trees whose leaves change colour in the autumn. I've changed the heading to &amp;quot;Deciduous&amp;quot;, because as far as I am aware &amp;quot;Autumnal&amp;quot; is used to describe a tree currently undergoing the colour change, rather than a tree which is capable of it. Fun with pedantry! --[[User:Raumkraut|Raumkraut]] 22:49, 11 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Supports ==&lt;br /&gt;
&lt;br /&gt;
I know it sounds crazy but once in adventure mode I smashed a Wolf onto a tree from the z-level above it. The dead body of the wolf stayed there for until I used the Travel Mode thing. Can anyone back this up? --[[User:Hoborobo|Hoborobo]] 03:43, 12 August 2008 (EDT)&lt;br /&gt;
Yeah it happens. Trees support objects. --[[User:Ikkonoishi|Ikkonoishi]] 02:02, 5 September 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Reactions&amp;diff=34775</id>
		<title>40d Talk:Reactions</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Reactions&amp;diff=34775"/>
		<updated>2008-09-03T23:19:30Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Page expansion ==&lt;br /&gt;
&lt;br /&gt;
I want to explore the reaction mechanisms further so I'm going to be gathering information from the forum and other pages on the wiki and linking it to the talk page to have a nice list put together for information sources. --[[User:Ikkonoishi|Ikkonoishi]] 12:51, 11 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Reactions can produce other items besides metal and stones.&lt;br /&gt;
http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=13&amp;amp;t=000101&lt;br /&gt;
&lt;br /&gt;
Using Plants as materials.&lt;br /&gt;
http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=13&amp;amp;t=000051&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
just tested and confirmed that you can add reaction tags.  testing if multiple reaction tags can be added to one items now.  &lt;br /&gt;
&lt;br /&gt;
adding to flint&amp;lt;br /&amp;gt;&lt;br /&gt;
[MATGLOSS_STONE:FLINT]&amp;lt;br /&amp;gt;&lt;br /&gt;
[NAME:flint][COLOR:0:7:1][TILE:178]&amp;lt;br /&amp;gt;&lt;br /&gt;
[SEDIMENTARY]&amp;lt;br /&amp;gt;&lt;br /&gt;
'''[REACTION_CLASS:TEST]'''&amp;lt;br /&amp;gt;&lt;br /&gt;
[SOLID_DENSITY:9999]&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and adding a new reaction&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[REACTION:STONE_MAGIC]&amp;lt;br /&amp;gt;&lt;br /&gt;
[NAME:make steel from test flag]&amp;lt;br /&amp;gt;&lt;br /&gt;
[SMELTER]&amp;lt;br /&amp;gt;&lt;br /&gt;
[REAGENT:1:REACTION_CLASS:TEST]&amp;lt;br /&amp;gt;&lt;br /&gt;
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gives out 2 bars of steel bars  --[[User:Shadetree|Shadetree]] 23:29, 5 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pets? ===&lt;br /&gt;
I notice one of the entries for item tokens is PET. Is it possible to smelt animals? Can I have a smelter pop out a swarm of giant eagles? [[User:Rkyeun|Rkyeun]] 22:26, 18 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
No. Well, technically you can, but it'll pop out as a swarm of tiny vermin instead of a flock of killer birds. --[[User:Untelligent|Untelligent]] 18:32, 19 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Plant Reactions==&lt;br /&gt;
In the August 12th dev log (which eventually became part of 40a), Toady mentioned that reactions for several items, notably &amp;quot;plants to bones to extracts etc.&amp;quot; are fully supported now (as opposed to making the material number the same as the number of the plant). Can someone find the correct syntax for such reactions? --[[User:Untelligent|Untelligent]] 18:32, 19 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Update  ==&lt;br /&gt;
&lt;br /&gt;
Version 0.28.181.40a added embark profiles and generalized the item definitions. This means that reactions will work better with things other than stone and metal. How much better remains to be seen. We need to document it. --[[User:Ikkonoishi|Ikkonoishi]] 17:52, 3 September 2008 (EDT)&lt;br /&gt;
:I've updated the information some. Still needs some cleaning and more work, but I'm tired of it for now. --[[User:Ikkonoishi|Ikkonoishi]] 19:19, 3 September 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13806</id>
		<title>40d:Reactions</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13806"/>
		<updated>2008-09-03T23:18:36Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Removed outdated warning on reaction limits.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reactions currently control the actions of the [[smelter]] building. They consist of at least one reagent and one product. Eventually the goal is to include all buildings and their actions within the raws.&lt;br /&gt;
&lt;br /&gt;
You may have multiple reagents and products within a reaction. By including a product that replaces a consumed reagent, you could create things like tools and catalytic reactions.&lt;br /&gt;
&lt;br /&gt;
Additions to reaction_standard.txt do not take effect until you generate a new world, but changes to existing reactions take effect next time you open the game.&lt;br /&gt;
&lt;br /&gt;
==Anatomy of a Reaction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[REACTION:BITUMINOUS_COAL_TO_COKE] &amp;lt;-- The name of the reaction. Not referenced elsewhere yet, but must be unique.&lt;br /&gt;
===NAME===&lt;br /&gt;
[NAME:make coke from bituminous coal] &amp;lt;-- What appears in the game when the necessary reagents are available.&lt;br /&gt;
===SMELTER===&lt;br /&gt;
[SMELTER] &amp;lt;-- Says the reaction is performed in the smelter. There are currently no other building tokens.&lt;br /&gt;
===REAGENT===&lt;br /&gt;
Reagents come in two main types.&lt;br /&gt;
====Type 1====&lt;br /&gt;
[REAGENT:&amp;lt;Quantity&amp;gt;:&amp;lt;[[Item Token|ITEM_TOKEN]]&amp;gt;:&amp;lt;ITEM_SUBTYPE&amp;gt;:&amp;lt;[[Matgloss_tokens|MATGLOSS_TOKEN]]&amp;gt;:&amp;lt;MATGLOSS_SUBTYPE&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
As with all raw entries the values here are separated by semicolons. This style of reaction has six variables.&lt;br /&gt;
=====REAGENT=====&lt;br /&gt;
This is always the string REAGENT&lt;br /&gt;
=====Quantity=====&lt;br /&gt;
The number of items this reaction produces. Does not seem to have a hard upper limit. High numbers will most likely crash the game out of sheer lag though.&lt;br /&gt;
=====ITEM_TOKEN=====&lt;br /&gt;
A value from the &amp;lt;[[Item Tokens|ITEM_TOKEN]]&amp;gt; list for the item you want to make.&lt;br /&gt;
=====ITEM_SUBTYPE=====&lt;br /&gt;
An item identifier from the raw file for this item type. For instance if you want to make gloves you would look in the item_gloves.txt file and find the name of one of the items there like ITEM_GLOVES_GLOVES. You would also need to set the ITEM_TOKEN to GLOVES.&lt;br /&gt;
If you don't have a subtype to use just put &amp;quot;NONE&amp;quot;.&lt;br /&gt;
=====MATGLOSS_TOKEN=====&lt;br /&gt;
You put the general category of the material you want to use here.&lt;br /&gt;
=====MATGLOSS_SUBTYPE=====&lt;br /&gt;
The specific type goes here. Like the ITEM_SUBTYPE, you can look up the possible values from the raws. The &amp;lt;[[Matgloss_tokens]]&amp;gt; page has information on where to find the subtype.&lt;br /&gt;
&lt;br /&gt;
====Type 2====&lt;br /&gt;
[REAGENT:1:REACTION_CLASS:FLUX] &amp;lt;-- Reaction_class can be replaced with METAL_ORE and possibly STONE_NAME and THREAD_METAL though those aren't used in the basic reaction types.&lt;br /&gt;
Those are special cases that identify items that use the tags like [STONE_NAME:platinum nuggets] or [THREAD_METAL:ADAMANTINE:100]  {{Verify}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE] &amp;lt;-- The end product(s) of the reaction. The first parameter might be probability of success. The rest is the same as in REAGENT.&lt;br /&gt;
===FUEL===&lt;br /&gt;
[FUEL] &amp;lt;-- Says the reaction uses fuel.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
The smelter cannot look inside containers for reagents; this means not only bins and barrels, but bags, coffers, et cetera. In practice this makes it seemingly impossible to use extracts of any sort (liquid, powder, and so on) in smelter reactions. It likely won't show up on the job list at all and, if it does, will result in immediate cancellation when a dwarf tries to select it from the job queue. Extracts can be the product of a reaction but since they must be stored, they will immediately be &amp;quot;spilled&amp;quot; upon creation and be impossible to store and use. &lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13805</id>
		<title>40d:Reactions</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13805"/>
		<updated>2008-09-03T23:14:08Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Type 1 */ Clarified and updated for current version.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reactions currently control the actions of the [[smelter]] building. They consist of at least one reagent and one product. Eventually the goal is to include all buildings and their actions within the raws.&lt;br /&gt;
&lt;br /&gt;
You may have multiple reagents and products within a reaction. By including a product that replaces a consumed reagent, you could create things like tools and catalytic reactions.&lt;br /&gt;
&lt;br /&gt;
Additions to reaction_standard.txt do not take effect until you generate a new world, but changes to existing reactions take effect next time you open the game.&lt;br /&gt;
&lt;br /&gt;
==Anatomy of a Reaction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[REACTION:BITUMINOUS_COAL_TO_COKE] &amp;lt;-- The name of the reaction. Not referenced elsewhere yet, but must be unique.&lt;br /&gt;
===NAME===&lt;br /&gt;
[NAME:make coke from bituminous coal] &amp;lt;-- What appears in the game when the necessary reagents are available.&lt;br /&gt;
===SMELTER===&lt;br /&gt;
[SMELTER] &amp;lt;-- Says the reaction is performed in the smelter. There are currently no other building tokens.&lt;br /&gt;
===REAGENT===&lt;br /&gt;
Reagents come in two main types.&lt;br /&gt;
====Type 1====&lt;br /&gt;
[REAGENT:&amp;lt;Quantity&amp;gt;:&amp;lt;[[Item Token|ITEM_TOKEN]]&amp;gt;:&amp;lt;ITEM_SUBTYPE&amp;gt;:&amp;lt;[[Matgloss_tokens|MATGLOSS_TOKEN]]&amp;gt;:&amp;lt;MATGLOSS_SUBTYPE&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
As with all raw entries the values here are separated by semicolons. This style of reaction has six variables.&lt;br /&gt;
=====REAGENT=====&lt;br /&gt;
This is always the string REAGENT&lt;br /&gt;
=====Quantity=====&lt;br /&gt;
The number of items this reaction produces. Does not seem to have a hard upper limit. High numbers will most likely crash the game out of sheer lag though.&lt;br /&gt;
=====ITEM_TOKEN=====&lt;br /&gt;
A value from the &amp;lt;[[Item Tokens|ITEM_TOKEN]]&amp;gt; list for the item you want to make.&lt;br /&gt;
=====ITEM_SUBTYPE=====&lt;br /&gt;
An item identifier from the raw file for this item type. For instance if you want to make gloves you would look in the item_gloves.txt file and find the name of one of the items there like ITEM_GLOVES_GLOVES. You would also need to set the ITEM_TOKEN to GLOVES.&lt;br /&gt;
If you don't have a subtype to use just put &amp;quot;NONE&amp;quot;.&lt;br /&gt;
=====MATGLOSS_TOKEN=====&lt;br /&gt;
You put the general category of the material you want to use here.&lt;br /&gt;
=====MATGLOSS_SUBTYPE=====&lt;br /&gt;
The specific type goes here. Like the ITEM_SUBTYPE, you can look up the possible values from the raws. The &amp;lt;[[Matgloss_tokens]]&amp;gt; page has information on where to find the subtype.&lt;br /&gt;
&lt;br /&gt;
====Type 2====&lt;br /&gt;
[REAGENT:1:REACTION_CLASS:FLUX] &amp;lt;-- Reaction_class can be replaced with METAL_ORE and possibly STONE_NAME and THREAD_METAL though those aren't used in the basic reaction types.&lt;br /&gt;
Those are special cases that identify items that use the tags like [STONE_NAME:platinum nuggets] or [THREAD_METAL:ADAMANTINE:100]  {{Verify}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE] &amp;lt;-- The end product(s) of the reaction. The first parameter might be probability of success. The rest is the same as in REAGENT.&lt;br /&gt;
===FUEL===&lt;br /&gt;
[FUEL] &amp;lt;-- Says the reaction uses fuel.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
There are some pitfalls to reaction modding, and other odd behaviour that should be noted.&lt;br /&gt;
&lt;br /&gt;
Certain item tokens, notably LEAVES and PLANT use the MATERIAL and MATGLOSS tokens in an unexpected way. Rather than interpreting these tokens in the usual way, the game takes the numerical value of the MATERIAL token (as listed on the [[Item tokens]] page, and picks the plant that is that number of places in the raws. The MATGLOSS token appears to be ignored. For example, using the token [PRODUCT:100:1:PLANT:NO_SUBTYPE:BONE:DWARF] would result in the creation of one sweet pod plant, because BONE is material token number 4, and sweet pod is the fourth plant in the matgloss_plant.txt raw file.&lt;br /&gt;
&lt;br /&gt;
The smelter cannot look inside containers for reagents; this means not only bins and barrels, but bags, coffers, et cetera. In practice this makes it seemingly impossible to use extracts of any sort (liquid, powder, and so on) in smelter reactions. It likely won't show up on the job list at all and, if it does, will result in immediate cancellation when a dwarf tries to select it from the job queue. Extracts can be the product of a reaction but since they must be stored, they will immediately be &amp;quot;spilled&amp;quot; upon creation and be impossible to store and use. &lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Matgloss_token&amp;diff=42507</id>
		<title>40d:Matgloss token</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Matgloss_token&amp;diff=42507"/>
		<updated>2008-09-03T23:07:51Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Material tokens */  added subtypes source&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Preliminary information on tokens used in the material description files, stored at raw/objects/matgloss_*.txt in the default distribution.&lt;br /&gt;
&lt;br /&gt;
These files begin with the filename as the other raws do, then [OBJECT:MATGLOSS]. Individual entries begin with [MATGLOSS_METAL:ID], [MATGLOSS_PLANT:ID], [MATGLOSS_STONE:ID], or [MATGLOSS_WOOD:ID].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Material tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; width=&amp;quot;5%&amp;quot;&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | #&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | Token&lt;br /&gt;
|-  &lt;br /&gt;
| 1 || WOOD || Subtypes come from MATGLOSS_WOOD&lt;br /&gt;
|-  &lt;br /&gt;
| 2 || STONE || Subtypes come from MATGLOSS_STONE&lt;br /&gt;
|-  &lt;br /&gt;
| 3 || METAL || Subtypes come from MATGLOSS_METAL&lt;br /&gt;
|-  &lt;br /&gt;
| 4 || BONE || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 5 || IVORY || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 6 || HORN || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 7 || AMBER || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 8 || CORAL || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 9 || PEARL || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 10 || SHELL || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 11 || LEATHER || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 12 || SILK || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 13 || PLANT_ALCOHOL || Subtypes come from MATGLOSS_PLANT&lt;br /&gt;
|-  &lt;br /&gt;
| 14 || GLASS_GREEN || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 15 || GLASS_CLEAR || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 16 || GLASS_CRYSTAL || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 17 || SAND || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 18 || COAL || Subtype is either COKE or CHARCOAL&lt;br /&gt;
|-  &lt;br /&gt;
| 19 || POTASH || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 20 || ASH || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 21 || PEARLASH || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 22 || LYE || No subtypes use NONE or NO_MATGLOSS&lt;br /&gt;
|-  &lt;br /&gt;
| 23 || RENDERED_FAT || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 24 || SOAP_ANIMAL || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 25 || FAT || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 26 || MUD || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 27 || VOMIT || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 28 || BLOOD_NONSPECIFIC || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 29 || BLOOD_SPECIFIC || Subtypes come from CREATURE&lt;br /&gt;
|-  &lt;br /&gt;
| 30 || SLIME || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 31 || SALT || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 32 || FILTH_B || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 33 || FILTH_Y || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 34 || UNKNOWN_SUBSTANCE || ???&lt;br /&gt;
|-  &lt;br /&gt;
| 35 || GRIME || ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Stone-specific tokens==&lt;br /&gt;
&lt;br /&gt;
Soils are considered to be a subtype of stone in the raws.&lt;br /&gt;
&lt;br /&gt;
===Layer types===&lt;br /&gt;
&lt;br /&gt;
A stone can be tagged with one of:&lt;br /&gt;
*[SEDIMENTARY]&lt;br /&gt;
*[IGNEOUS_INTRUSIVE]&lt;br /&gt;
*[IGNEOUS_EXTRUSIVE]&lt;br /&gt;
*[METAMORPHIC]&lt;br /&gt;
*[SOIL]&lt;br /&gt;
*[SOIL_OCEAN]&lt;br /&gt;
&lt;br /&gt;
Additionally these can occur:&lt;br /&gt;
*[SEDIMENTARY_OCEAN_SHALLOW]&lt;br /&gt;
*[SEDIMENTARY_OCEAN_DEEP]&lt;br /&gt;
*[SOIL_SAND]&lt;br /&gt;
*[AQUIFER]&lt;br /&gt;
&lt;br /&gt;
Layer tags are not mutually exclusive with ENVIRONMENT tags.&lt;br /&gt;
&lt;br /&gt;
===ENVIROMENT and ENVIRONMENT_SPEC===&lt;br /&gt;
&lt;br /&gt;
Format:&lt;br /&gt;
*[ENVIRONMENT:&amp;lt;class&amp;gt;:&amp;lt;inclusion type&amp;gt;:&amp;lt;frequency&amp;gt;]&lt;br /&gt;
*[ENVIRONMENT_SPEC:&amp;lt;id&amp;gt;:&amp;lt;inclusion type&amp;gt;:&amp;lt;frequency&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
The inclusion type can be CLUSTER, CLUSTER_SMALL, CLUSTER_ONE, or VEIN. CLUSTERs are large ovoids that occupy their entire local map tile if present. CLUSTER_SMALL inclusions are blobs of 3-9 tiles; CLUSTER_ONE inclusions are single tiles; and VEINs are large streaks.&lt;br /&gt;
&lt;br /&gt;
If no CLUSTER is present, then zero to two VEINs as well as roughly five to seven other clusters will be present in the local map tile.&lt;br /&gt;
&lt;br /&gt;
Anecdotal evidence suggests that each z-layer will tend to reuse the same type of inclusions, leading to multiple clusters of the same type of opal rather than several different types.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;br /&gt;
[[Category:Tokens]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Matgloss_token&amp;diff=42506</id>
		<title>40d:Matgloss token</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Matgloss_token&amp;diff=42506"/>
		<updated>2008-09-03T22:44:28Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Moved material tokens to material token page from the item token page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Preliminary information on tokens used in the material description files, stored at raw/objects/matgloss_*.txt in the default distribution.&lt;br /&gt;
&lt;br /&gt;
These files begin with the filename as the other raws do, then [OBJECT:MATGLOSS]. Individual entries begin with [MATGLOSS_METAL:ID], [MATGLOSS_PLANT:ID], [MATGLOSS_STONE:ID], or [MATGLOSS_WOOD:ID].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Material tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; width=&amp;quot;5%&amp;quot;&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | #&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | Token&lt;br /&gt;
|-  &lt;br /&gt;
| 1 || WOOD&lt;br /&gt;
|-  &lt;br /&gt;
| 2 || STONE&lt;br /&gt;
|-  &lt;br /&gt;
| 3 || METAL&lt;br /&gt;
|-  &lt;br /&gt;
| 4 || BONE&lt;br /&gt;
|-  &lt;br /&gt;
| 5 || IVORY&lt;br /&gt;
|-  &lt;br /&gt;
| 6 || HORN&lt;br /&gt;
|-  &lt;br /&gt;
| 7 || AMBER&lt;br /&gt;
|-  &lt;br /&gt;
| 8 || CORAL&lt;br /&gt;
|-  &lt;br /&gt;
| 9 || PEARL&lt;br /&gt;
|-  &lt;br /&gt;
| 10 || SHELL&lt;br /&gt;
|-  &lt;br /&gt;
| 11 || LEATHER&lt;br /&gt;
|-  &lt;br /&gt;
| 12 || SILK&lt;br /&gt;
|-  &lt;br /&gt;
| 13 || PLANT_ALCOHOL&lt;br /&gt;
|-  &lt;br /&gt;
| 14 || GLASS_GREEN&lt;br /&gt;
|-  &lt;br /&gt;
| 15 || GLASS_CLEAR&lt;br /&gt;
|-  &lt;br /&gt;
| 16 || GLASS_CRYSTAL&lt;br /&gt;
|-  &lt;br /&gt;
| 17 || SAND&lt;br /&gt;
|-  &lt;br /&gt;
| 18 || COAL&lt;br /&gt;
|-  &lt;br /&gt;
| 19 || POTASH&lt;br /&gt;
|-  &lt;br /&gt;
| 20 || ASH&lt;br /&gt;
|-  &lt;br /&gt;
| 21 || PEARLASH&lt;br /&gt;
|-  &lt;br /&gt;
| 22 || LYE&lt;br /&gt;
|-  &lt;br /&gt;
| 23 || RENDERED_FAT&lt;br /&gt;
|-  &lt;br /&gt;
| 24 || SOAP_ANIMAL&lt;br /&gt;
|-  &lt;br /&gt;
| 25 || FAT&lt;br /&gt;
|-  &lt;br /&gt;
| 26 || MUD&lt;br /&gt;
|-  &lt;br /&gt;
| 27 || VOMIT&lt;br /&gt;
|-  &lt;br /&gt;
| 28 || BLOOD_NONSPECIFIC&lt;br /&gt;
|-  &lt;br /&gt;
| 29 || BLOOD_SPECIFIC&lt;br /&gt;
|-  &lt;br /&gt;
| 30 || SLIME&lt;br /&gt;
|-  &lt;br /&gt;
| 31 || SALT&lt;br /&gt;
|-  &lt;br /&gt;
| 32 || FILTH_B&lt;br /&gt;
|-  &lt;br /&gt;
| 33 || FILTH_Y&lt;br /&gt;
|-  &lt;br /&gt;
| 34 || UNKNOWN_SUBSTANCE&lt;br /&gt;
|-  &lt;br /&gt;
| 35 || GRIME&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Stone-specific tokens==&lt;br /&gt;
&lt;br /&gt;
Soils are considered to be a subtype of stone in the raws.&lt;br /&gt;
&lt;br /&gt;
===Layer types===&lt;br /&gt;
&lt;br /&gt;
A stone can be tagged with one of:&lt;br /&gt;
*[SEDIMENTARY]&lt;br /&gt;
*[IGNEOUS_INTRUSIVE]&lt;br /&gt;
*[IGNEOUS_EXTRUSIVE]&lt;br /&gt;
*[METAMORPHIC]&lt;br /&gt;
*[SOIL]&lt;br /&gt;
*[SOIL_OCEAN]&lt;br /&gt;
&lt;br /&gt;
Additionally these can occur:&lt;br /&gt;
*[SEDIMENTARY_OCEAN_SHALLOW]&lt;br /&gt;
*[SEDIMENTARY_OCEAN_DEEP]&lt;br /&gt;
*[SOIL_SAND]&lt;br /&gt;
*[AQUIFER]&lt;br /&gt;
&lt;br /&gt;
Layer tags are not mutually exclusive with ENVIRONMENT tags.&lt;br /&gt;
&lt;br /&gt;
===ENVIROMENT and ENVIRONMENT_SPEC===&lt;br /&gt;
&lt;br /&gt;
Format:&lt;br /&gt;
*[ENVIRONMENT:&amp;lt;class&amp;gt;:&amp;lt;inclusion type&amp;gt;:&amp;lt;frequency&amp;gt;]&lt;br /&gt;
*[ENVIRONMENT_SPEC:&amp;lt;id&amp;gt;:&amp;lt;inclusion type&amp;gt;:&amp;lt;frequency&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
The inclusion type can be CLUSTER, CLUSTER_SMALL, CLUSTER_ONE, or VEIN. CLUSTERs are large ovoids that occupy their entire local map tile if present. CLUSTER_SMALL inclusions are blobs of 3-9 tiles; CLUSTER_ONE inclusions are single tiles; and VEINs are large streaks.&lt;br /&gt;
&lt;br /&gt;
If no CLUSTER is present, then zero to two VEINs as well as roughly five to seven other clusters will be present in the local map tile.&lt;br /&gt;
&lt;br /&gt;
Anecdotal evidence suggests that each z-layer will tend to reuse the same type of inclusions, leading to multiple clusters of the same type of opal rather than several different types.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;br /&gt;
[[Category:Tokens]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Item_token&amp;diff=13775</id>
		<title>40d:Item token</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Item_token&amp;diff=13775"/>
		<updated>2008-09-03T22:44:06Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Moved material tokens to material token page from the item token page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are to be used with certain [[Creature Tokens]] (such as ITEMCORPSE) as well as in [[Reactions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An item is described by four tokens, as such:&lt;br /&gt;
&lt;br /&gt;
 [&amp;lt;whatever is asking for the token&amp;gt;:TYPE:SUBTYPE:MATERIAL:MATGLOSS]&lt;br /&gt;
&lt;br /&gt;
==Item type tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; width=&amp;quot;55%&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Token&lt;br /&gt;
! width=&amp;quot;80%&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| SMALLGEM || Cut gemstones usable in jeweler's workshop&lt;br /&gt;
|-&lt;br /&gt;
| BLOCKS || Blocks of any kind&lt;br /&gt;
|-&lt;br /&gt;
| ROUGH || Raw gemstones&lt;br /&gt;
|-&lt;br /&gt;
| STONE || Raw mined stone&lt;br /&gt;
|-&lt;br /&gt;
| WOOD || Wooden logs&lt;br /&gt;
|-&lt;br /&gt;
| DOOR || Doors&lt;br /&gt;
|-&lt;br /&gt;
| FLOODGATE || Floodgates&lt;br /&gt;
|-&lt;br /&gt;
| BED || Beds&lt;br /&gt;
|-&lt;br /&gt;
| CHAIR || Chairs and thrones&lt;br /&gt;
|-&lt;br /&gt;
| CHAIN || Chains and ropes&lt;br /&gt;
|-&lt;br /&gt;
| FLASK || Flasks&lt;br /&gt;
|-&lt;br /&gt;
| GOBLET || Goblets&lt;br /&gt;
|-&lt;br /&gt;
| INSTRUMENT || Musical instruments&lt;br /&gt;
|-&lt;br /&gt;
| TOY || Toys&lt;br /&gt;
|-&lt;br /&gt;
| WINDOW || &lt;br /&gt;
|-&lt;br /&gt;
| CAGE || Cages&lt;br /&gt;
|-&lt;br /&gt;
| BARREL || Barrels&lt;br /&gt;
|-&lt;br /&gt;
| BUCKET || Buckets&lt;br /&gt;
|-&lt;br /&gt;
| ANIMALTRAP || Traps for animals&lt;br /&gt;
|-&lt;br /&gt;
| TABLE || Tables&lt;br /&gt;
|-&lt;br /&gt;
| COFFIN || Coffins and caskets&lt;br /&gt;
|-&lt;br /&gt;
| STATUE || Statues&lt;br /&gt;
|-&lt;br /&gt;
| CORPSE || Dead things&lt;br /&gt;
|-&lt;br /&gt;
| WEAPON || Weapons&lt;br /&gt;
|-&lt;br /&gt;
| ARMOR || Armor&lt;br /&gt;
|-&lt;br /&gt;
| SHOES || Shoes&lt;br /&gt;
|-&lt;br /&gt;
| SHIELD || Shields&lt;br /&gt;
|-&lt;br /&gt;
| HELM || Hats&lt;br /&gt;
|-&lt;br /&gt;
| GLOVES || Gloves&lt;br /&gt;
|-&lt;br /&gt;
| BOX || Chests, coffers, and boxes&lt;br /&gt;
|-&lt;br /&gt;
| BIN || Bins&lt;br /&gt;
|-&lt;br /&gt;
| SAND || Sand&lt;br /&gt;
|-&lt;br /&gt;
| ARMORSTAND || Armor stands&lt;br /&gt;
|-&lt;br /&gt;
| WEAPONRACK || Weapon racks&lt;br /&gt;
|-&lt;br /&gt;
| CABINET || Cabinets&lt;br /&gt;
|-&lt;br /&gt;
| FIGURINE || &lt;br /&gt;
|-&lt;br /&gt;
| AMULET || Amulets&lt;br /&gt;
|-&lt;br /&gt;
| SCEPTER || Scepters&lt;br /&gt;
|-&lt;br /&gt;
| AMMO || Ammunition for hand-held weapons&lt;br /&gt;
|-&lt;br /&gt;
| CROWN || Crowns&lt;br /&gt;
|-&lt;br /&gt;
| RING || Rings&lt;br /&gt;
|-&lt;br /&gt;
| EARRING || Earrings&lt;br /&gt;
|-&lt;br /&gt;
| BRACELET || Bracelets&lt;br /&gt;
|-&lt;br /&gt;
| GEM || Large gems&lt;br /&gt;
|-&lt;br /&gt;
| ANVIL || Anvils&lt;br /&gt;
|-&lt;br /&gt;
| CORPSEPIECE || Body parts&lt;br /&gt;
|-&lt;br /&gt;
| REMAINS || Dead vermin bodies&lt;br /&gt;
|-&lt;br /&gt;
| MEAT || Butchered meat&lt;br /&gt;
|-&lt;br /&gt;
| FISH || Prepared fish&lt;br /&gt;
|-&lt;br /&gt;
| FISH_RAW || Unprepared fish&lt;br /&gt;
|-&lt;br /&gt;
| VERMIN || &lt;br /&gt;
|-&lt;br /&gt;
| PET || &lt;br /&gt;
|-&lt;br /&gt;
| SEEDS || Seeds from plants&lt;br /&gt;
|-&lt;br /&gt;
| PLANT || Plants&lt;br /&gt;
|-&lt;br /&gt;
| SKIN_RAW || Untanned skins&lt;br /&gt;
|-&lt;br /&gt;
| SKIN_TANNED || Tanned skins&lt;br /&gt;
|-&lt;br /&gt;
| BONES || Bones from critters&lt;br /&gt;
|-&lt;br /&gt;
| SHELL || Shells from critters that have them&lt;br /&gt;
|-&lt;br /&gt;
| LEAVES || Leaves from certain plants after processing&lt;br /&gt;
|-&lt;br /&gt;
| THREAD || Thread gathered from webs or made at the farmer's workshop&lt;br /&gt;
|-&lt;br /&gt;
| CLOTH || Cloth made at the loom&lt;br /&gt;
|-&lt;br /&gt;
| TOTEM || Totems&lt;br /&gt;
|-&lt;br /&gt;
| SKULL || Skulls of dead critters&lt;br /&gt;
|-&lt;br /&gt;
| PANTS || Pants&lt;br /&gt;
|-&lt;br /&gt;
| BACKPACK || Backpacks&lt;br /&gt;
|-&lt;br /&gt;
| QUIVER || Quivers&lt;br /&gt;
|-&lt;br /&gt;
| CATAPULTPARTS || Catapult parts&lt;br /&gt;
|-&lt;br /&gt;
| BALLISTAPARTS || Ballista parts&lt;br /&gt;
|-&lt;br /&gt;
| SIEGEAMMO || Siege ammo&lt;br /&gt;
|-&lt;br /&gt;
| BALLISTARROWHEAD || Arrow heads for ballista bolts&lt;br /&gt;
|-&lt;br /&gt;
| TRAPPARTS || Mechanisms&lt;br /&gt;
|-&lt;br /&gt;
| TRAPCOMP || Weapons for traps only.&lt;br /&gt;
|-&lt;br /&gt;
| EXTRACT || Extracts from certain plants and creatures.&lt;br /&gt;
|-&lt;br /&gt;
| POTION || &lt;br /&gt;
|-&lt;br /&gt;
| DRINK || &lt;br /&gt;
|-&lt;br /&gt;
| POWDER_MISC || &lt;br /&gt;
|-&lt;br /&gt;
| CHEESE || Cheeses&lt;br /&gt;
|-&lt;br /&gt;
| FOOD || Prepared food&lt;br /&gt;
|-&lt;br /&gt;
| LIQUID_MISC || &lt;br /&gt;
|-&lt;br /&gt;
| COIN || Coins&lt;br /&gt;
|-&lt;br /&gt;
| GLOB || &lt;br /&gt;
|-&lt;br /&gt;
| ROCK || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Item subtype tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; width=&amp;quot;55%&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Token&lt;br /&gt;
! width=&amp;quot;80%&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| NO_SUBTYPE || No specific subtype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;br /&gt;
[[Category:Tokens]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Reactions&amp;diff=34774</id>
		<title>40d Talk:Reactions</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Reactions&amp;diff=34774"/>
		<updated>2008-09-03T21:52:54Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Page expansion ==&lt;br /&gt;
&lt;br /&gt;
I want to explore the reaction mechanisms further so I'm going to be gathering information from the forum and other pages on the wiki and linking it to the talk page to have a nice list put together for information sources. --[[User:Ikkonoishi|Ikkonoishi]] 12:51, 11 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Reactions can produce other items besides metal and stones.&lt;br /&gt;
http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=13&amp;amp;t=000101&lt;br /&gt;
&lt;br /&gt;
Using Plants as materials.&lt;br /&gt;
http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=13&amp;amp;t=000051&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
just tested and confirmed that you can add reaction tags.  testing if multiple reaction tags can be added to one items now.  &lt;br /&gt;
&lt;br /&gt;
adding to flint&amp;lt;br /&amp;gt;&lt;br /&gt;
[MATGLOSS_STONE:FLINT]&amp;lt;br /&amp;gt;&lt;br /&gt;
[NAME:flint][COLOR:0:7:1][TILE:178]&amp;lt;br /&amp;gt;&lt;br /&gt;
[SEDIMENTARY]&amp;lt;br /&amp;gt;&lt;br /&gt;
'''[REACTION_CLASS:TEST]'''&amp;lt;br /&amp;gt;&lt;br /&gt;
[SOLID_DENSITY:9999]&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and adding a new reaction&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[REACTION:STONE_MAGIC]&amp;lt;br /&amp;gt;&lt;br /&gt;
[NAME:make steel from test flag]&amp;lt;br /&amp;gt;&lt;br /&gt;
[SMELTER]&amp;lt;br /&amp;gt;&lt;br /&gt;
[REAGENT:1:REACTION_CLASS:TEST]&amp;lt;br /&amp;gt;&lt;br /&gt;
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gives out 2 bars of steel bars  --[[User:Shadetree|Shadetree]] 23:29, 5 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pets? ===&lt;br /&gt;
I notice one of the entries for item tokens is PET. Is it possible to smelt animals? Can I have a smelter pop out a swarm of giant eagles? [[User:Rkyeun|Rkyeun]] 22:26, 18 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
No. Well, technically you can, but it'll pop out as a swarm of tiny vermin instead of a flock of killer birds. --[[User:Untelligent|Untelligent]] 18:32, 19 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Plant Reactions==&lt;br /&gt;
In the August 12th dev log (which eventually became part of 40a), Toady mentioned that reactions for several items, notably &amp;quot;plants to bones to extracts etc.&amp;quot; are fully supported now (as opposed to making the material number the same as the number of the plant). Can someone find the correct syntax for such reactions? --[[User:Untelligent|Untelligent]] 18:32, 19 August 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Update  ==&lt;br /&gt;
&lt;br /&gt;
Version 0.28.181.40a added embark profiles and generalized the item definitions. This means that reactions will work better with things other than stone and metal. How much better remains to be seen. We need to document it. --[[User:Ikkonoishi|Ikkonoishi]] 17:52, 3 September 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Utilities&amp;diff=8983</id>
		<title>40d:Utilities</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Utilities&amp;diff=8983"/>
		<updated>2008-07-14T16:03:59Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* DF Merge by Ikkonoishi */  delete section as I no longer have source and file server deleted file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are third party applications developed for Dwarf Fortress.&lt;br /&gt;
&lt;br /&gt;
== Movies, Screenshots, Map Files ==&lt;br /&gt;
&lt;br /&gt;
=== DF Map Compressor / DF Map Archive ===&lt;br /&gt;
&lt;br /&gt;
*[http://shadowlord13.googlepages.com/dfmap-index.html SL's DF Map Compressor - Website]&lt;br /&gt;
*[http://mkv25.net/dfma/ Dwarf Fortress Map Archive]&lt;br /&gt;
&lt;br /&gt;
The DF Map Compressor encodes multiple bitmaps exported from Dwarf Fortress into a single, very compressed, .fdf-map file. The fdf-map file can then be shared with your friends by uploading to the DF Map Archive that features an online viewer (written in Flash).&lt;br /&gt;
&lt;br /&gt;
The map compressor was created by Shadowlord in May 2007. Extract from the website :&lt;br /&gt;
:&amp;quot;The '''DF Map Compressor''' is a program I made to encode Dwarf Fortress fortress or world map images into a much smaller format than is possible with normal image formats. Here's a quick summary of how it works: It determines the size of your tiles from your DF font file (or asks you), splits the map up into tiles, identifies duplicate tiles, writes out every unique tile image, and then writes out a list of ID#s for each tile position which points to the tile image for that tile. What it outputs is piped through the LZMA compressor (the one used in 7-zip), to compress it further. The .df-map file which it writes out is usually less than 100 KB in size. (By comparison, a PNG of the same map can exceed 2 megabytes, depending on how well you compress it, whether you change the color depth, and whether you are using a graphical tileset or detailed font).&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Read more about the [[User:Markavian/DF_Map_Archive|DF Map Archive]] on Markavian's User page.&lt;br /&gt;
&lt;br /&gt;
=== CMVPlayer === &lt;br /&gt;
&lt;br /&gt;
[http://www.geocities.com/jifodus/CMVPlayer.zip Download CMVPlayer.zip] &lt;br /&gt;
&lt;br /&gt;
First released by Jifodus in April 2007. This application enables playback of the DF movies (.cmv) without starting DF. It also provides some more functionalities, such as :&lt;br /&gt;
* Rewind&lt;br /&gt;
* Pause&lt;br /&gt;
* Play frame per frame&lt;br /&gt;
&lt;br /&gt;
To use, simply unzip the file, and drop and drag the movie on CMVPlayer.exe.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 3Dwarf Visualizer - a tool to view maps in 3D ===&lt;br /&gt;
*[http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=2&amp;amp;t=001450 Bay12Forums Thread]&lt;br /&gt;
This is NOT realtime, that is still a long, long way off.&lt;br /&gt;
What this does is read the map out of your computer's memory when DF is running and save it to a file it can read. It can then open that file and show you your fort in glorious 3d.&lt;br /&gt;
Still in beta, obviously.&lt;br /&gt;
&lt;br /&gt;
=== Dwarvis / MapExtract ===&lt;br /&gt;
*[http://code.google.com/p/dwarvis/ dwarvis on Google Code]&lt;br /&gt;
This project is meant as a 3rd party utility for the cult-game dwarf fortress. Its purpose is to eventually provide 3-dimensional visualization of static snapshots of the ingame world of a given fortress.&lt;br /&gt;
&lt;br /&gt;
=== Dwarf Fortress File Depot ===&lt;br /&gt;
*[http://dffd.wimbli.com/ The Dwarf Fortress File Upload Service], an excellent place to store mods, community games, tilesets and other files. Courtesy of [http://www.dwarffortresswiki.net/index.php/User:Janus Janus]; for files related to Dwarf Fortress only.&lt;br /&gt;
&lt;br /&gt;
== Dwarf Companion ==&lt;br /&gt;
The [[User:Bartavelle/DwarfCompanion|Dwarf Companion]], created by [[User:Bartavelle|Bartavelle]] is a graphical helper utility for dwarf fortress that aims to fill the gaps in the user interface. It allows for some nefarious cheating. For example, you can now mark your nobles as butcherable, and change possessed dwarves to fey moods.&lt;br /&gt;
&lt;br /&gt;
== [[User:Rick|Rick]]'s utilities ==&lt;br /&gt;
Fabulous tools made by the marvelous Rick. All Hail Rick!&lt;br /&gt;
&lt;br /&gt;
=== [[User:Rick/Tweak|Gibbed's Dwarf Fortress Tweak]] ===&lt;br /&gt;
&lt;br /&gt;
A toolset with many modules for tweaking / editing Dwarf Fortress memory. [[User:Rick/Tweak|Check the full article for more details]].&lt;br /&gt;
&lt;br /&gt;
== Dwarf Foreman ==&lt;br /&gt;
[http://www.pavlovian.net/foreman/ Home page]. Makes switching jobs on and off for large numbers of dwarves simple. Dwarves are grouped by their profession, or custom profession if they have one. By clicking on the graph you can enable any job for all dwarves with that profession. Still in alpha for this version of DF, if it doesn't recognize one of the new professions, check the file '''debug.txt''' in the directory you run foreman from.&lt;br /&gt;
&lt;br /&gt;
Though prone to crashing currently, saving and exiting DF, starting foreman and then starting DF again will usually get it working again. Zorba would also appreciate it if you'd email him the crash log located in the Dwarf Foreman directory when this happens (zorba-foremancrash@pavlovian.net).&lt;br /&gt;
&lt;br /&gt;
Dwarf Foreman currently allows you to change the jobs of visiting merchants, outpost liaisons, children, and any other dwarves that aren't normally controllable. It is unsupported but occasionally hilarious, and allows you to finally put those lazy dwarven children to work.&lt;br /&gt;
&lt;br /&gt;
This handy utility would be an ideal complement to an updated LabourDF.&lt;br /&gt;
&lt;br /&gt;
Source code is available.&lt;br /&gt;
----&lt;br /&gt;
To make Foreman compatible with '''v0.27.168.33g''', download the new version and update the config file as shown below. - [http://forums.somethingawful.com/showthread.php?threadid=2677834&amp;amp;userid=0&amp;amp;perpage=40&amp;amp;pagenumber=74#post337422833 Originally posted by Mu.]&lt;br /&gt;
&amp;lt;pre&amp;gt;check=008c407c&lt;br /&gt;
critter_start=01427B50&lt;br /&gt;
dwarfidpos=01248AC8&lt;br /&gt;
profession_start=45c&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make Foreman compatible with '''v0.27.173.38a''', update config file as shown below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check=01E30A43&lt;br /&gt;
critter_start=01450E98&lt;br /&gt;
dwarfidpos=01271E10&lt;br /&gt;
profession_start=45c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make Foreman compatible with '''v0.27.176.38a''', update config file as shown below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check=023401d3&lt;br /&gt;
critter_start=01463378&lt;br /&gt;
dwarfidpos=01284188&lt;br /&gt;
profession_start=480&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make Foreman compatible with '''v0.27.176.38b''', update config file as shown below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check=01e3dbcc&lt;br /&gt;
critter_start=01463570&lt;br /&gt;
dwarfidpos=01284188&lt;br /&gt;
profession_start=0470&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make Foreman compatible with '''v0.27.176.38c''', update config file as shown below. Use the [[Talk:Utilities#Dwarf Foreman|talk page]] if it doesn't work.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check=01cf4654&lt;br /&gt;
critter_start=01464570&lt;br /&gt;
dwarfidpos=01285188&lt;br /&gt;
profession_start=0470&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== StartProfile ==&lt;br /&gt;
Jifodus wrote a little utility that lets you maintain profiles of your starting dwarves.&lt;br /&gt;
Works for versions 0.27.169.33b, 0.27.169.33c, 0.27.169.33d, and 0.27.169.33e. Check the readme to find out how to switch between the different versions. If you wish to patch the executable yourself, please check [[Talk:Utilities#StartProfile|the utilities talk page]].&lt;br /&gt;
&lt;br /&gt;
[http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=2&amp;amp;t=001367 Discussion thread]&lt;br /&gt;
&lt;br /&gt;
Obsolete: [http://www.geocities.com/jifodus/StartProfile.zip StartProfile utility]&lt;br /&gt;
&lt;br /&gt;
[http://www.geocities.com/jifodus/dfufend.zip StartProfile utility]&lt;br /&gt;
&lt;br /&gt;
Incidentally, if you try this utility, please report success/failure in [[Talk:Utilities#StartProfile|the utilities talk page]].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== [[User:0x517A5D|0x517A5D]]'s utilities ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Attention!&amp;lt;/b&amp;gt;  As the host site of these utilities is placing links to amateur pornographic videos on the download pages, these links are currently &amp;lt;b&amp;gt;Not Safe For Work!&amp;lt;/b&amp;gt;  Please see my [[User_talk:0x517A5D|User Talk]] page for discussion and a blanket permission to take care of this &amp;lt;strike&amp;gt;issue&amp;lt;/strike&amp;gt; problem.  Sorry about this.  &amp;amp;mdash;[[User:0x517A5D|0x517A5D]]&lt;br /&gt;
&lt;br /&gt;
=== Enable Magma Buildings ===&lt;br /&gt;
Helper utility for Rick's reveal.exe&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.yourfilehost.com/media.php?cat=other&amp;amp;file=3935enable_magma_buildings.zip enable_magma_buildings.zip]&lt;br /&gt;
&lt;br /&gt;
You need this utility in the case that you used the reveal utility, and&lt;br /&gt;
you had not yet discovered any subsurface magma.&lt;br /&gt;
(If the hide utility is ever updated, you could also hide a few magma&lt;br /&gt;
tiles and then dig them out.  That worked in the old version.)&lt;br /&gt;
&lt;br /&gt;
Because there is no actual flag that controls whether magma has been seen&lt;br /&gt;
(the game searches a list, probably a list of notable events), I had to&lt;br /&gt;
patch the game's code.  This means you need to run the utility every time&lt;br /&gt;
you start dwarfort.exe.&lt;br /&gt;
&lt;br /&gt;
This utility has been made version-independent.  &lt;br /&gt;
It is expected to work with future releases of Dwarf Fortress.&lt;br /&gt;
&lt;br /&gt;
=== Regional Prospector ===&lt;br /&gt;
&lt;br /&gt;
[http://www.yourfilehost.com/media.php?cat=other&amp;amp;file=regional_prospector.zip regional_prospector.zip]''(Careful, download link contains images of pornography as ads.)''&lt;br /&gt;
&lt;br /&gt;
A simple but very helpful utility that shows hidden map features at embark time.  &lt;br /&gt;
If you're trying to find the perfect start location by repeatedly embarking and &lt;br /&gt;
revealing, give this one a shot!&lt;br /&gt;
&lt;br /&gt;
Map key:&lt;br /&gt;
:{{Raw Tile|≈|#F00|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;volcano; magma reaches the surface&lt;br /&gt;
:{{Raw Tile|~|#F00|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;underground magma pipe or magma pool&lt;br /&gt;
:{{Raw Tile|≈|#00F|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;underground river&lt;br /&gt;
:{{Raw Tile|~|#00F|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;underground pool&lt;br /&gt;
:{{Raw Tile|#|#000|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;chasm&lt;br /&gt;
:{{Raw Tile|£|#0FF|#AAA}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;adamantine and pits&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This utility has been made version-independent.  &lt;br /&gt;
It is known to work with all releases from 32a to 33g.  &lt;br /&gt;
It is expected to work with future releases of Dwarf Fortress, &lt;br /&gt;
as long as the embark code doesn't change too much.&lt;br /&gt;
&lt;br /&gt;
Discussion and kudos can be left [[User_talk:0x517A5D#Seekret_Projekt|here]].&lt;br /&gt;
&lt;br /&gt;
=== Latitudes ===&lt;br /&gt;
&lt;br /&gt;
[http://www.yourfilehost.com/media.php?cat=other&amp;amp;file=latitudes.zip Latitudes] is a utility that, when on the embark map screen, shows the X/Y coordinates of the current region.   Until Toady adds [http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=5&amp;amp;t=002191 proper support], this will do the trick.  Works in .32a through at least .33g.  Technical notes: uses memory injection, so it may be flagged as a suspicious file by anti-virus programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Temporarily withdrawn as I am experiencing crashes of DF when invoking the utility.&amp;lt;br/&amp;gt;&amp;amp;mdash;[[User:0x517A5D|0x517A5D]] 14:26, 31 December 2007 (EST) --&amp;gt;&lt;br /&gt;
&amp;lt;!-- The bug I was experiencing was a regression in my development version.  It&lt;br /&gt;
does not occur in the current release.  So everything's okay. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Teleport ==&lt;br /&gt;
[http://angband.org/~erasmus/df/teleport22.zip teleport22.zip] -- Teleport dwarves and other creatures&lt;br /&gt;
&lt;br /&gt;
Version 2.2 is &amp;lt;u&amp;gt;really&amp;lt;/u&amp;gt; now independent of the DF version. (33c)&lt;br /&gt;
&lt;br /&gt;
Caveat: The teleport utility does not correctly set the occupancy flag for map squares.  As a results, dwarves will permanently crawl through the square that you teleported them out of.  In addition, you cannot build structures in those squares.&lt;br /&gt;
&lt;br /&gt;
== Water ==&lt;br /&gt;
[http://angband.org/~erasmus/df/water.exe water.exe] -- Quick hack to refill ponds.  Run this while your fortress is up, and it'll restore any &amp;quot;murky pool&amp;quot; tiles (i.e. the floor of ponds and lakes) to 7/7 water.  If you've tunneled into a pond, it'll still refill but will flow out normally.&lt;br /&gt;
&lt;br /&gt;
Only works with version 33e due to its &amp;quot;quick hack&amp;quot; status.&lt;br /&gt;
&lt;br /&gt;
Note:  If there is lava in a murky pool, it will be raised to depth 7/7.&lt;br /&gt;
&lt;br /&gt;
== Lava square ==&lt;br /&gt;
[http://angband.org/~erasmus/df/lavasquare.exe lavasquare.exe] -- Another quick hack to make a 7/7 unit of lava on the currently selected square.  Ignore the random text it spams, as it was quickly adapted from a map query tool, and I didn't bother removing the print statements.&lt;br /&gt;
&lt;br /&gt;
Only works with version 33e. To hack this executable for a later version of dwarf fortress see the [[Talk:Utilities#Lavasquare|talk page]].&lt;br /&gt;
&lt;br /&gt;
33g version plus autohotkey script: http://www.sendspace.com/file/xsl6gs --[[User:Jackard|Jackard]] 09:43, 13 January 2008 (EST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== [http://en.wikipedia.org/wiki/Macro_%28computer_science%29 Macro Programs] ==&lt;br /&gt;
A program that lets you program scripts/macros so that when you press a certain key combination, or in any other fashion activates the program, a series of keystrokes is sent to the active program instead.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.autohotkey.com/ AutoHotKey] ===&lt;br /&gt;
AHK lets you define global hotkeys to send a sequence of keystrokes. For example, you can have {{key|alt}}+{{key|w}} replace {{key|b}}-{{key|C}}-{{key|w}}-{{key|Enter}}-{{key|Enter}} to make wall building much easier.  See [[Macros and Keymaps]] for a how-to and some example scripts.&lt;br /&gt;
----&lt;br /&gt;
See [[:Category:ahk scripts]] for a list of user submitted scripts.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Winmerge ==&lt;br /&gt;
&lt;br /&gt;
This utility allows you to compare folders or files. It highlights anything that does not fit in with the other file, so that you can see if you want to merge them into one file or not..&lt;br /&gt;
&lt;br /&gt;
Download at [http://winmerge.org/].&lt;br /&gt;
[[User:Omagaalpha|Omagaalpha]] 08:30, 13 February 2008 (EST)&lt;br /&gt;
Edit:--[[User:AtomicTroop|AtomicTroop]] 12:15, 23 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== DFWall ==&lt;br /&gt;
&lt;br /&gt;
An utility for automatisation of mass constructions. Features three modes:&lt;br /&gt;
&lt;br /&gt;
1. Rectangle rewalling - quickly build a rectangle of walls/floors using:&lt;br /&gt;
&lt;br /&gt;
a) the same saved material every time ([http://mkv25.net/dfma/movie-495-dfwalldemo DEMO])&lt;br /&gt;
&lt;br /&gt;
b) any material with at least 1/10/99 units&lt;br /&gt;
&lt;br /&gt;
2. Quick reselect (for ANY single unit construction) - save that green glass box and never again have to look for it between all the bags!&lt;br /&gt;
&lt;br /&gt;
3. Pattern construction - make a pattern file and have stuff constructed according to it ([http://mkv25.net/dfma/movie-520-dfwalldemo2 DEMO]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details look here: [http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=2&amp;amp;t=001847 link]&lt;br /&gt;
&lt;br /&gt;
Get the newest version here: [http://dffd.wimbli.com/file.php?id=108 link]&lt;br /&gt;
&lt;br /&gt;
== Accent Removal ==&lt;br /&gt;
&lt;br /&gt;
This is a batch file compatible with [http://www.inforapid.de/html/searchreplace.htm InfoRapid Search &amp;amp; Replace.]&lt;br /&gt;
&lt;br /&gt;
It is used on the following raws to remove accented letters from translations:&lt;br /&gt;
*language_DWARF.txt&lt;br /&gt;
*language_ELF.txt&lt;br /&gt;
*language_GOBLIN.txt&lt;br /&gt;
*language_HUMAN.txt&lt;br /&gt;
&lt;br /&gt;
This could be useful for character sets that render accents improperly. Please remember to backup your raws before doing crazy things like this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;„&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;a&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt; &amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;a&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;ƒ&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;a&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;†&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;a&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;…&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;a&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;‡&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;c&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;‚&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;e&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;Š&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;e&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;ˆ&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;e&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;‰&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;e&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;¡&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;i&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;i&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;Œ&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;i&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;‹&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;i&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;¤&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;n&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;•&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;o&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;”&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;o&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;“&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;o&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;¢&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;o&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;—&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;u&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;–&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;u&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;£&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;u&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;Command&amp;gt;&lt;br /&gt;
	&amp;lt;Search&amp;gt;˜&amp;lt;/Search&amp;gt;&lt;br /&gt;
	&amp;lt;Replace&amp;gt;y&amp;lt;/Replace&amp;gt;&lt;br /&gt;
&amp;lt;/Command&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dtil ==&lt;br /&gt;
*[http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=2&amp;amp;t=001843 Forum Thread]&lt;br /&gt;
Dtil is a general purpose tool host that supplies a dynamically generated SDK for plugin authors.&lt;br /&gt;
&lt;br /&gt;
== Modbase ==&lt;br /&gt;
&lt;br /&gt;
Modbase is a great tool made by Sean Mirrsen which allows you to freely swap mods and tweak game settings.&lt;br /&gt;
[http://www.bay12games.com/forum/index.php?topic=18623.0 Get it now!]&lt;br /&gt;
For version 0.38c.&lt;br /&gt;
&lt;br /&gt;
== DF World Generator ==&lt;br /&gt;
&lt;br /&gt;
Swiftly written supplement to the command line world generator. Written in Python, so you have to have Python installed to use this.&lt;br /&gt;
Follow [http://dffd.wimbli.com/file.php?id=278 this] link to get to the file. It must be run from the command line and be in the DF Directory to work. Running the program with no parameters will provoke a short help-me dialog which will explain how to run it properly.&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Talk:Main_Page/archive2&amp;diff=522</id>
		<title>Talk:Main Page/archive2</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Talk:Main_Page/archive2&amp;diff=522"/>
		<updated>2008-06-07T20:32:25Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Offline Version? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Order descends newest to oldest. Use edit to add a newer section.&lt;br /&gt;
&lt;br /&gt;
== Offline Version? ==&lt;br /&gt;
&lt;br /&gt;
Is there an offline version of DwarfFortressWiki (ala [http://static.wikipedia.org/ Wikipedia])?  I'm going to be doing some traveling, and would like to use this resource when I don't have internet access :) --[[User:Sim9]], unsigned&lt;br /&gt;
&lt;br /&gt;
:I know that obtaining one is possible. --[[User:Savok|Savok]] 23:31, 6 June 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I was told that a torrent was circulating on 4chan and other places but I don't know anything else about it. --[[User:Senso|Senso]] 12:46, 7 June 2008 (EDT)&lt;br /&gt;
:Go to [[Special:Export]] then go to [[Special:Allpages]] in another window/tab. Make a copy of every article's name. Paste it into the export page and click export. Now its just a matter of finding a way to parse the xml file you get.&lt;br /&gt;
&lt;br /&gt;
== Coincidence? ==&lt;br /&gt;
&lt;br /&gt;
I got a quote that said:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;quot;You have been processed! Go forth, now, and edit!&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
--Savok&amp;lt;br&amp;gt;&lt;br /&gt;
right after creating this account... Is this a coincidence or a command?&amp;lt;br&amp;gt;&lt;br /&gt;
--[[User:Peewee|Peewee]] 20:02, 31 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Coincidence. That's the end of a newbie-welcoming template that someone found funny enough to put in the [[Main Page/Quote|Quote list]], which delivers randomized quotes to the main page. --[[User:Savok|Savok]] 22:49, 31 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Both coincidence AND command. [[User:VengefulDonut|VengefulDonut]] 11:41, 1 June 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Russian Interwiki == &lt;br /&gt;
I've made a deal with the admin of the Russian wiki, we can both link to each other. So if you know Russian, you're welcome to add links to the bottom of pages to their equivalent Russian pages.&lt;br /&gt;
For example, on the [[Carp]] page, I have added &amp;amp;#91;&amp;amp;#91;ru:Карп&amp;amp;#93;&amp;amp;#93; - so there is now a link to its Russian counterpart in the left-side navigation bar, under the &amp;quot;In other languages&amp;quot; header. --[[User:Senso|Senso]] 13:37, 2 April 2008 (EDT)&lt;br /&gt;
:Looks like the other wiki may be down/broken. I don't have a suggested action though.  -- [[User:Vaevictus|Vaevictus]] 13:33, 3 June 2008 (EDT)&lt;br /&gt;
== Many Laughs ==&lt;br /&gt;
Congrats to whomever made the april's fool's day changes. [[User:Yvain|Yvain]] 04:34, 1 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Agreed. I didn't think of doing anything myself so kudos for going in. Nobody changes it for the whole day, I'll revert any reverts. :) --[[User:Senso|Senso]] 08:56, 1 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Navigation on bottom ==&lt;br /&gt;
Since recently (2 or 3 days) the navigation and search box are at the very bottom of every page (opera user). Can someone please fix this? --[[User:Koltom|Koltom]] 07:38, 21 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:It's at the bottom of the page for me too, and I'm using Firefox. [[User:Klada|Klada]] 11:43, 21 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Confirm this is happening for me as well, Firefox 2.0.0.12 ubuntu 7.04. --[[User:Nunix|Nunix]] 14:56, 21 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::For what it's worth, ditto, and FF 2.0.0.12 Windows XP Home Edition Version 2002 Service Pack 2. --[[User:Savok|Savok]] 15:07, 21 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::::Hah! Sorry, meant Senso. XD Good to have another confirmation regardless. Anyway, I went ahead and emailed him. It's weird how it just cropped up all of a sudden, hopefully something easily fixed. --[[User:Nunix|Nunix]] 02:00, 22 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
:It should be back to normal now, sorry for that. --[[User:Senso|Senso]] 11:54, 22 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::No worries, looks good here. Thanks! --[[User:Nunix|Nunix]] 17:54, 22 March 2008 (EDT)&lt;br /&gt;
::: *[[User:Koltom|Koltom]] jumps up and rejoices*&lt;br /&gt;
:::: &amp;quot;[[User:Koltom|Koltom]] was pleased to have a mandate deadline met lately.&amp;quot;?  --[[User:FunnyMan|FunnyMan]] 06:13, 27 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;American&amp;quot; English or Rest-Of-The-World English? ==&lt;br /&gt;
Just a minor question, while spell-checking articles, I've encountered a few discrepancies between the two, but I usually see the &amp;quot;rest of the world English&amp;quot; more. So what's the official rule here, assuming we're going for a constant? --[[User:Snoob|Snoob]] 08:40, 7 March 2008 (EST)&lt;br /&gt;
:Haha. You don't sound biased at all ;). I figure we can go one of two routes. We can either claim that DF is an american topic, since it's being made in america by an american and the wiki is on an american domain&amp;amp;mdash;or we can say DF is an international topic since people from all over are funding Toady. If it's an international topic, we might as well follow the  [http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#National_varieties_of_English wikipedia manual of style]. Wikipedia has no preference over the variant used, but there should be consistency in each article. The first user who makes an edit which disambiguates the variety being used in the article is considered the first major contributor and all subsequent edits to that article should use the same type of english. If in doubt, we have history pages. I think the reason you see british english more often in the wiki is because we've had a few editors who in their extreme modesty decided british english is superior and changed several of the american english articles over. I've noticed this happening on a few occasions. (please dont do that). [[User:VengefulDonut|VengefulDonut]] 09:53, 7 March 2008 (EST)&lt;br /&gt;
::I second sticking with the Wikipedia's Manual of Style for language.  And as a note, there isn't a &amp;quot;Rest of the World English.&amp;quot;  In fact, the language is documented to vary [http://en.wikipedia.org/wiki/Regional_accents_of_English_speakers|as much as the countries that speak it].&lt;br /&gt;
::So, how does the Namibian English variant sound to everyone?  At least then most of us are at an equal starting point!  :P  --[[User:TarrVetus|TarrVetus]] 11:25, 7 March 2008 (EST)&lt;br /&gt;
::I made a pretty bad assumption there, I suppose. I was trying to not sound biased, but I suppose I accidentally let it creep in somewhere. I'll just leave the variations to you guys and stick to cleaning up actual typos then. :P --[[User:Snoob|Snoob]] 11:37, 7 March 2008 (EST)&lt;br /&gt;
:::Hehe.  I can sympathize, Snoob.  I've had this debate with myself in the past, though it was from the other side.  --[[User:TarrVetus|TarrVetus]] 13:17, 7 March 2008 (EST)&lt;br /&gt;
:::This is a late reply, but I am an American in China. Here, English is classified either as American English or British English, and American English is widely preferred even though British English is taught to beginning students. I wouldn't say calling it &amp;quot;rest-of-the-world English&amp;quot; is very accurate. I would venture that many countries in Latin America also prefer American English, but what do it know.--[[User:RustyMcloon|Rusty Mcloon]] 01:16, 17 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Version updates ==&lt;br /&gt;
There's a new version out today, so the version number and release date need changing. Unfortunately I have absolutely no idea how to do this as they appear to use some kind of function instead of being typed in. Somebody with the know-how fancy making the change? --[[User:TangoThree|TangoThree]] 10:04, 24 February 2008 (EST)&lt;br /&gt;
:[[Template:current/version]]&lt;br /&gt;
:[[Template:current/lastupdate]]&lt;br /&gt;
:[[User:VengefulDonut|VengefulDonut]] 10:15, 24 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
== Quote randomization ==&lt;br /&gt;
VengefulDonut, if you want to randomize that for improved quality, you'll need to do it right: Many (most?) of the quotes in the quote archive are in an ARCHIVE: They are bad quotes never intended to be reused. Also, what do we do when we get new quotes? Do they get put in a database, not to be used till the RNG chooses? --[[User:Savok|Savok]] 20:11, 7 February 2008 (EST)&lt;br /&gt;
:What would you like? [[User:VengefulDonut|VengefulDonut]] 20:36, 7 February 2008 (EST)&lt;br /&gt;
::I suggest that one quote is permanant, and the other quote refresh everytime we visit the page. So far, I noticed that even if I refresh the page, the same quotes stay. --[[User:Eagle of Fire|Eagle of Fire]] 05:49, 8 February 2008 (EST)&lt;br /&gt;
:::A new quote on the left, and a randomized archive quote on the right? As for the refesh: the template checks the time. --[[User:Jackard|Jackard]] 06:35, 8 February 2008 (EST)&lt;br /&gt;
::::What is the tick? Every few minutes? --[[User:Eagle of Fire|Eagle of Fire]] 08:14, 8 February 2008 (EST)&lt;br /&gt;
:::The template checks the time, but the time doesn't update because the server caches the page. It gets a new one whenever the server refreshes it; you can force this by editing the page or by clicking the preview button. Also, I could make it so that one of the quote boxes picks from the newest x quotes. [[User:VengefulDonut|VengefulDonut]] 10:43, 8 February 2008 (EST)&lt;br /&gt;
::::Having a newer quote on the left and an archived one on the right sounds better than a permanent quote on either. PS. Might want to remove a few of them, like the 'palisade' quote. --[[User:Jackard|Jackard]] 11:47, 8 February 2008 (EST)&lt;br /&gt;
:::::The goal of the quote archive was to archive every single quote which ever got to the main page. If you want to thin out only the best quotes, I suggest you use a separate database for that. Even then, how &amp;quot;good&amp;quot; is a quote is very open to interpretation and taste. If I had to remove all the quotes I find bad or unfunny myself, I'd probably remove 80% of the present quotes in the archive. --[[User:Eagle of Fire|Eagle of Fire]] 18:46, 8 February 2008 (EST)&lt;br /&gt;
::::::Ok. The right quotebox now chooses from the last 10 quotes instead of from among all of them. If anyone feels like they want to prune out or fiddle with quotes, go for it. I think what I've set up should be pretty straightforward, but if you have questions I'll be glad to answer them. [[User:VengefulDonut|VengefulDonut]] 20:11, 8 February 2008 (EST)&lt;br /&gt;
:::I added two new quotes (40, and 41), but only 40 is showing up at the moment, am I doing something wrong? --[[User:Markavian|Markavian]] 10:10, 10 March 2008 (EDT)&lt;br /&gt;
::::You did it exactly right. The left quote box randomly chooses between all quotes. The right quote box randomly chooses between the 10 newest. It will come up eventually. [[User:VengefulDonut|VengefulDonut]] 10:17, 10 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Requesting installation of ParserFunctions extension ==&lt;br /&gt;
It would be nice if the ParserFunctions[http://meta.wikimedia.org/wiki/Help:ParserFunctions] extension was installed (#if, #expr, etc).  It would be useful for having templates that exclude parts of it if no values are provided.  Note: I cannot find a place for requesting extensions --[[User:Aygar|Aygar]] 13:00, 21 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
:ParserFunctions has been '''installed'''. I did a quick test and it works. Let me know if you run into problems. --[[User:Senso|Senso]] 11:54, 22 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
== German Translation ==&lt;br /&gt;
I've got requests for either having a German wiki or Namespace. I'd like to have everybody's opinion on this. If you people think that having German (and maybe other languages eventually) translations on the main wiki is going to be annoying, tell me. I can also setup a new wiki on a subdomain (de.dwarffortresswiki.net for example). How would it be best organized? Should I use [http://www.mediawiki.org/wiki/Template:Languages LanguageTemplates]? Is there a need for other additional languages? --[[User:Senso|Senso]] 09:31, 17 January 2008 (EST)&lt;br /&gt;
:Since Dwarf Fortress is only available in English, if you can play the game, you can also read the wiki. I really don't think a German (or any other language) wiki version is worth the effort.--[[User:Siliziumleben|Siliziumleben]] 14:22, 18 January 2008 (EST)&lt;br /&gt;
::My oppinion also. This doesn't mean we should stop those enthusiam people though. --[[User:Eagle of Fire|Eagle of Fire]] 13:06, 17 January 2008 (EST)&lt;br /&gt;
::There's a big difference between understanding a game interface and reading long and complex tutorials, descriptions, discussions etc. I know French people who play this game; they can understand the UI but they use the French wiki for reference. Also, if I decide to use a separate wiki/subdomain, this will be totally transparent to you. --[[User:Senso|Senso]] 16:40, 17 January 2008 (EST)&lt;br /&gt;
:::My first language, the one I used since I'm born, is French. Yet, I way prefer this wiki over the french one. --[[User:Eagle of Fire|Eagle of Fire]] 10:06, 18 January 2008 (EST)&lt;br /&gt;
::::I'm French too, you know. But when I offered to host a DF wiki, I didn't do it in French because I know English is widely used. But I'm still glad that someone else started a French wiki. --[[User:Senso|Senso]] 22:58, 20 January 2008 (EST)&lt;br /&gt;
I don't see what harm could come from hosting a German, Japanese, and Russian wiki. It's not like it will interfere with the English one. Also, as a student of languages, I would love to read equivalent articles in German and Japanese. --[[User:DDouble|DDouble]] 22:01, 17 February 2008 (EST)&lt;br /&gt;
::I am german and while I can read english books like german ones, I have to agree that being able to use a UI and understanding the finer points in a tutorial etc. are two quite different things. I guess that if the bandwidth of the wiki is no burden on anyone, it could actually lead to an influx of new ideas and players, which is very important for a &amp;quot;community&amp;quot; game like DF. --[[User:Caiburn|Caiburn]] 20:44, 18 February 2008 (CET+1)&lt;br /&gt;
&lt;br /&gt;
== Version of MediaWiki? ==&lt;br /&gt;
Sorry if this is completely the wrong place, but does anybody know which version of MediaWiki these pages uses?&lt;br /&gt;
Maybe that information could be included in the page About DwarfFortressWiki? --[[User:Gauteamus|Gauteamus]] 17:00, 17 December 2007 (EST)&lt;br /&gt;
:I think I found out. This page: [[Special:Version]] says the version is 1.10.1, which should mean that limited #for-loops are supported. I will delete these comments soonishly, but will let them stay for a while incase someone has comments --[[User:Gauteamus|Gauteamus]] 17:28, 17 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Combat Logs? ==&lt;br /&gt;
What about a section where people could post cool combat logs from adventurer mode. This would different from the &amp;quot;Stories&amp;quot; section, which is more prose. (This is 'cause I'd like to post the log of a battle I had with a particularly clumsy Giant, who slammed into a wall allowing me to stab him in the back of the head for the eventual win. Its no dragon-slaying tale, but I still think its good.) --[[User:Wahnsinniger|Wahnsinniger]] 11:59, 2 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Humor? ==&lt;br /&gt;
Any thoughts about possibly linking [[Main Page/Quote Archive]] page somewhere on the main page? Its an orphan at the moment and is pretty funny and relevant. [[User:Vanan|Vanan]] 15:19, 13 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I'd like to be able to see that happen.  New people coming here might get overwhelmed if we don't amuse them with some good humor here and there.--[[User:AlBorland|AlBorland]] 13:42, 20 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
:I second that. This second is adorned with hanging rings of Goshenite and menaces with spikes of Goshenite. - [[User:Laugurinn|Laugurinn]] 22:57, 13 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
Where does one stick new funny quotes? Namely, this:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;quot;&amp;quot;Thikut Atheludib, Marksdwarf cancels shooting at Archery Range: Interrupted by Groundhog pup&amp;quot; - What brave soldiers I have&amp;quot; [[User:Juckto|Juckto]] 18:45, 10 December 2007 (EST)&lt;br /&gt;
:That's not exactly funny, but [[Main_Page/Quote]]. --[[User:GreyMario|GreyMario]] 00:43, 14 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Demystify messages? ==&lt;br /&gt;
Probably against the spirit of 'losing is fun', but how about a page that explains smoe of the more cryptic messages, such as; 'job item misplaced' and 'job item lost or destroyed'? [[User:Runspotrun|Runspotrun]] 16:43, 8 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Also, is there a suggestions pages? This probably isn't the best page to add ideas... [[User:Runspotrun|Runspotrun]] 16:44, 8 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Importing old entries ==&lt;br /&gt;
What's the stance on importing entries from the old wiki for stuff like general item stats? Most of them are still correct (or nearly so) and it would be nice not to have to switch between this and the old wiki any more. I can add a disclaimer to them stating I pulled them from the archives if that's appropriate. --[[User:Xazak|Xazak]] 15:07, 2 November 2007 (EDT)&lt;br /&gt;
:IMO (and I'm not admin or anything) it should be ok but only if you are 100% sure EVERYTHING is correct, and have verified it personally. I've edited at least one article someone copy-pasted with no changes that had old info in it so far and it makes me sad. --[[User:BurnedToast|BurnedToast]] 15:38, 2 November 2007 (EDT)&lt;br /&gt;
::Yes, I second this. Please be diligent if you are going to import old information. Even if you can't do it yourself, at least categorize it as needing verification so someone with the free time can. --[[User:EighenIndemnis|EighenIndemnis]] 15:37, 6 November 2007 (EST)&lt;br /&gt;
:You could use [[Template:Verify]] to indicate that something needs confirmation in the new version. --[[User:Senso|Senso]] 15:47, 6 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I have noticed an increase of pages in which only an old Wiki page is copied/pasted along with a warning that it was copied and thus may not be accurate. Is it just me or that's ''exactly'' what we didn't want to happen, and one of the reasons we started fresh with the new Wiki to begin with? --[[User:Eagle of Fire|Eagle of Fire]] 01:45, 9 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Basic Format ==&lt;br /&gt;
I think the [[Farming]] page is a good format for most of the key pages, perhaps the structure from the archive should be followed. --[[User:Infinity|Infinity]] 05:56, 31 October 2007 (EDT)&lt;br /&gt;
:Agreed, I've tried to copy this style on several pages, e.g. [[Gear Assembly]]. --[[User:Markavian|Markavian]] 23:30, 31 October 2007 (EDT)&lt;br /&gt;
I would like to add a request for a 'build tree' of sorts.  It would, for example, make figuring out how to get iron bars a whole lot less frustrating. --[[User:Dogcow|Dogcow]] 17:18, 1 November 2007 (EDT)&lt;br /&gt;
:Hello, I've added a whole page on the various metals you can make now.  This is my first time editing a wiki so feel free to make corrections for me if you want, just leave me a message on the page letting me know where I went wrong.  Also, since some Alloys involve smelting 3 bars of metal now, I have included a new template called Alloy3 to display these.  I'm not sure on the colors though so have at it where I'm off :)  --[[User:Chthon|Chthon]] 11:33, 3 November 2007 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Change guide? ==&lt;br /&gt;
Was just thinking, perhaps one of the links (or sections) on the main page should be a guide to the major changes between last version and this one.  Yes, a TON of stuff has changed, but a lot also has not, and a lot of the core concepts are the same... so I would imagine many of us who have played the previous version(s) would love a section where we can see a list of new basics we have to learn, along with links to those things' individual pages... like, z-axis (obviously), mechanisms, fluid dynamics, nobles, elevation/slope, farming... you get the idea.  --[[User:Cliffjeff|Cliffjeff]] 11:43, 30 October 2007 (EDT)&lt;br /&gt;
:Yea, I'm thinking not. Isn't the whole point of DF finding things out on your own? &amp;quot;Losing is Fun&amp;quot; and all that. Ok, so if we summarized all the changes, and someone (like me) didn't want to know we could not just not look at it right? What can I say? I'M WEAK! If we summarize the changes I will CONSUME it! (I'm only here because I still have another 6 hours of work before I can go home and try it!)&lt;br /&gt;
::Meanwhile, I'm lazy and stubborn and would love a consolidated list of only new things I need to know =p and I'm also trapped at work and unable to mess around in the game :( but if the whole point was finding out things on your own, why would we have a wiki? ;p --[[User:Cliffjeff|Cliffjeff]] 15:58, 30 October 2007 (EDT)&lt;br /&gt;
:::I agree, I think the change guide is a good idea, and it would also help us direct our attention at the articles that are likely to need the most work. --[[User:Peristarkawan|Peristarkawan]] 16:01, 30 October 2007 (EDT)&lt;br /&gt;
::::It ought not to be very hard to generate a basic change guide based on the official change notes, and then update it as the details are discovered.  --[[User:Bobson|Bobson]] 16:26, 30 October 2007 (EDT)&lt;br /&gt;
:::A change guide 'page' might be useful pointing out major differences but I think the style of the wiki should be aimed at new users who know nothing of previous versions. I think we should not compare old/vs new as a rule, but if necessary we should include comparisons at the bottom of a page as apposed to the main article. That is how I am writing my edits. --[[User:Markavian|Markavian]] 23:26, 31 October 2007 (EDT)&lt;br /&gt;
::*The thing is, the whole idea of the wiki kind of goes against 'finding things out on your own'.  If you want to be completely surprised by a game, don't read a wiki specifically intended to reveal all the details about it...  sure, we do put warnings on the most spoily stuff, but at the end of the day this is a Wiki intended to document everything about Dwarf Fortress, so just about every page is going to be a spoiler to some degree. --[[User:Aquillion|Aquillion]] 03:12, 9 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
To add my take on this subject... I think that this is a gigantic game, in some ways more complex then any of the Elder Scrolls game. I mean, in the ES games, you have weapons, armor and others... In this game you have an exceptionally large number of items of many different types and purposes... It's very difficult for newbies to fathom exactly what an item is used for. Without this Wiki, I think a lot of people would struggle with this game. [[User:AlexFili|AlexFili]] 05:59, 9 May 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Macros_and_keymaps&amp;diff=31765</id>
		<title>40d:Macros and keymaps</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Macros_and_keymaps&amp;diff=31765"/>
		<updated>2008-05-24T17:54:29Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Embark Settings macros */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Playing Dwarf Fortress means lots of typing.  Although the game (as of version v0.27.176.38c) has no internal macro/keymap system, using an external program can save you a great deal of time when dumping, rewalling, designating, and so forth.&lt;br /&gt;
&lt;br /&gt;
#  Go to [[Utilities#AutoHotKey]] and download AutoHotKey.  Installation is simple and the program uses few system resources.&lt;br /&gt;
#  Write macro scripts (file type .ahk), which may contain any number of commands.  You activate scripts by double-clicking .ahk files and deactivate them by right-clicking the AutoHotKey icon on the task bar.  Both of these can be done at any time - even right in the middle of a game.  AutoHotKey also allows for automated activation of scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AutoHotKey Examples ==&lt;br /&gt;
&lt;br /&gt;
===Dumping===&lt;br /&gt;
====Stock Screen Dump====&lt;br /&gt;
Taken from an old version of [[User:Jackard|Jackard's user page]].&lt;br /&gt;
&lt;br /&gt;
To use, first have your bookeeper do enough desk work so you can view individual items in the stocks listing.  Then bring it up and press del to quickly mark stuff.  To adjust the key repeat rate, edit the KEY_HOLD_MS value in \data\init\init.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
del::&lt;br /&gt;
IfWinActive Dwarf Fortress&lt;br /&gt;
{&lt;br /&gt;
  send d{down}&lt;br /&gt;
  return&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
  send {del}&lt;br /&gt;
  return&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Designation Dump====&lt;br /&gt;
A dumping script by [[User:Dukederek|Dukederek]]:&lt;br /&gt;
&lt;br /&gt;
This script uses a system similar the commands in the designations menu to mark most of the contents of a large area for dumping. [[User:Dukederek|My talk page]] has more detailed instruction.&lt;br /&gt;
&lt;br /&gt;
Essentially you need to create two text files with the following titles and content. When playing DF it is safe to have blockdumpinit running constantly as long as you dont plan on using the ctrl-d combination for something else.&lt;br /&gt;
&lt;br /&gt;
'''blockdumpinit.ahk'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^d::&lt;br /&gt;
RunWait, &amp;quot;blockdumpmain.ahk&amp;quot;&lt;br /&gt;
Return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''blockdumpmain.ahk'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetKeyDelay 25&lt;br /&gt;
return::&lt;br /&gt;
Send k&lt;br /&gt;
return&lt;br /&gt;
up::&lt;br /&gt;
Send w&lt;br /&gt;
return&lt;br /&gt;
left::&lt;br /&gt;
Send a&lt;br /&gt;
return&lt;br /&gt;
down::&lt;br /&gt;
Send s&lt;br /&gt;
return&lt;br /&gt;
right::&lt;br /&gt;
Send d&lt;br /&gt;
return&lt;br /&gt;
q::&lt;br /&gt;
ExitApp&lt;br /&gt;
return&lt;br /&gt;
shift::&lt;br /&gt;
x := 0&lt;br /&gt;
y := 1&lt;br /&gt;
Loop{&lt;br /&gt;
Input, keypress, B, {esc} , w,a,s,d,k,q&lt;br /&gt;
if keypress = w&lt;br /&gt;
{&lt;br /&gt;
y := --y&lt;br /&gt;
Send {up}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = s&lt;br /&gt;
{&lt;br /&gt;
y := ++y&lt;br /&gt;
Send {down}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = a&lt;br /&gt;
{&lt;br /&gt;
x := --x&lt;br /&gt;
Send {left}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = d&lt;br /&gt;
{&lt;br /&gt;
x := ++x&lt;br /&gt;
Send {right}&lt;br /&gt;
continue&lt;br /&gt;
}else if keypress = k &lt;br /&gt;
{&lt;br /&gt;
break&lt;br /&gt;
}else if keypress = q&lt;br /&gt;
{&lt;br /&gt;
ExitApp&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
y := y / 2&lt;br /&gt;
z := y&lt;br /&gt;
z := Floor(z)&lt;br /&gt;
z := y/z&lt;br /&gt;
Send d{NumpadAdd}d&lt;br /&gt;
If z = 0&lt;br /&gt;
{	&lt;br /&gt;
If x = 0&lt;br /&gt;
ExitApp&lt;br /&gt;
Else{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d&lt;br /&gt;
}ExitApp&lt;br /&gt;
}&lt;br /&gt;
}If z &amp;lt;&amp;gt; 1&lt;br /&gt;
{&lt;br /&gt;
Loop %y%{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {right}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d{NumpadAdd}d&lt;br /&gt;
}Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}&lt;br /&gt;
}Else If z = 1&lt;br /&gt;
{&lt;br /&gt;
y := y + 0.5&lt;br /&gt;
Loop %y%{&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {left}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d&lt;br /&gt;
Loop %x%{&lt;br /&gt;
Send {right}d{NumpadAdd}d&lt;br /&gt;
}Send {up}d{NumpadAdd}d&lt;br /&gt;
}Send d{NumpadSub}d&lt;br /&gt;
}ExitApp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rewalling ===&lt;br /&gt;
Taken from [[User:Valdemar|Valdemar's user page]].&lt;br /&gt;
&lt;br /&gt;
This is a macro to aid with rewalling. To use, copy-paste the script into a new .ahk file and run the script with AutoHotkey. Then, in Dwarf Fortress, press b-C-w, move the cursor to where you want to start the wall, and hold Ctrl-Shift-Arrowkey, using the direction you want to rewall in. To build floors, press b-C-f instead, and use Ctrl-Alt-Arrowkey. To stop, just release the keys.&lt;br /&gt;
&lt;br /&gt;
The script will use the first material in the list. I suggest you create a stockpile near the construction site that only accepts the item you wish to build with and temporarily forbid any nearby materials you don't want to build with. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$^+Left:: ProcessEvent(&amp;quot;Left&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Right:: ProcessEvent(&amp;quot;Right&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Up:: ProcessEvent(&amp;quot;Up&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
$^+Down:: ProcessEvent(&amp;quot;Down&amp;quot;,&amp;quot;w&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
$^!Left:: ProcessEvent(&amp;quot;Left&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Right:: ProcessEvent(&amp;quot;Right&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Up:: ProcessEvent(&amp;quot;Up&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
$^!Down:: ProcessEvent(&amp;quot;Down&amp;quot;,&amp;quot;f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ProcessEvent(direction, type)&lt;br /&gt;
{   &lt;br /&gt;
    Send {Enter}&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send {Enter}&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send %type%&lt;br /&gt;
    Sleep 100&lt;br /&gt;
    Send {%direction%}&lt;br /&gt;
    Loop&lt;br /&gt;
    {&lt;br /&gt;
        if not GetKeyState(direction, &amp;quot;P&amp;quot;) &lt;br /&gt;
            break  &lt;br /&gt;
        Send {Enter}&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send {Enter}&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send %type%&lt;br /&gt;
        Sleep 100&lt;br /&gt;
        Send {%direction%}&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Grid-by-grid designation===&lt;br /&gt;
For easier diagonal and fancy mining.  Assumes that DF is active.  &amp;quot;^!&amp;quot; means ctrl-alt-direction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^!NumpadEnd::&lt;br /&gt;
send {Enter}{Enter}{NumpadEnd}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadDown::&lt;br /&gt;
send {Enter}{Enter}{NumpadDown}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadPgDn::&lt;br /&gt;
send {Enter}{Enter}{NumpadPgDn}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadLeft::&lt;br /&gt;
send {Enter}{Enter}{NumpadLeft}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadRight::&lt;br /&gt;
send {Enter}{Enter}{NumpadRight}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadHome::&lt;br /&gt;
send {Enter}{Enter}{NumpadHome}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadUp::&lt;br /&gt;
send {Enter}{Enter}{NumpadUp}&lt;br /&gt;
return&lt;br /&gt;
^!NumpadPgUp::&lt;br /&gt;
send {Enter}{Enter}{NumpadPgUp}&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Embark Settings macros===&lt;br /&gt;
These macros are used to ease the setup of skills and supplies before you embark.&lt;br /&gt;
====Food-buying macro====&lt;br /&gt;
This macro buys all the 2 cost meat items available at the start screen. Simply go to the item screen, erase the random food items the game starts you with, and press F2. By [[User:Napsterbater|Napsterbater]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
F2::&lt;br /&gt;
  send {n}{Right}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Down}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Down}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Pgdn}{Down}{Down}{Down}{Down}{Enter}&lt;br /&gt;
  send {n}{Right}{Up}{Up}{Up}{Up}{Up}{Enter}&lt;br /&gt;
  send {n}{Right}{Up}{Up}{Up}{Up}{Up}{Enter}&lt;br /&gt;
  send {n}{Right}{Up}{Up}{Up}{Up}{Up}{Enter}&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Useless, becuse the types of meat you can take with you varies with each world/civ. It will work with the civ you wrote it for, but not for the overwhelming majority of others--[[User:Dorten|Dorten]] 05:08, 2 April 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
Just realized this. Whoops - Napsterbater&lt;br /&gt;
&lt;br /&gt;
I'll go ahead and delete this soon.&lt;br /&gt;
&lt;br /&gt;
====Improved Food/Alcohol buying macro====&lt;br /&gt;
This macro buys all the cost-2 food (that I have seen), as well as the four types of alcohol.  Just press ctrl+f on the Items screen.&lt;br /&gt;
It can deal with meat or drink that you already have, or is not currently featured.   By [[User:Redfenix|Redfenix]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
^f::&lt;br /&gt;
&lt;br /&gt;
send ndwarven{SPACE}ale{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}rum{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}beer{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndwarven{SPACE}wine{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndonkey{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nchimpanzee{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngazelle{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nbonobo{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmule{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ndeer{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nraccoon{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nfox{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nrhesus{SPACE}macaque{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nhorse{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngroundhog{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmountain{SPACE}goat{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nhoary{SPACE}marmot{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send ngorilla{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send norangutan{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nsiamang{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nbilou{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send npileated{SPACE}gibbon{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nmandrill{SPACE}meat{RIGHT}{ENTER}{F9}&lt;br /&gt;
send nturtle{RIGHT}{ENTER}{F9}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===='First Fortress' setup====&lt;br /&gt;
This macro works with the default setup of DF, and starts you with (almost) the setup suggested in the &amp;quot;Your first fortress&amp;quot; tutorial.  The amounts are adjustable with the variables at the top of the macro.&lt;br /&gt;
&amp;lt;pre&amp;gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
; materialplanner.ahk					  	;&lt;br /&gt;
; this is a ahk script to set up the embark settings roughly as	;&lt;br /&gt;
;suggested in the &amp;quot;your first fortress&amp;quot; tutorial.  Inventory	;&lt;br /&gt;
;can be customized slightly.					;&lt;br /&gt;
; use ctrl+shift+e to run				  	;&lt;br /&gt;
;							  	;&lt;br /&gt;
; NOTEs:						  	;&lt;br /&gt;
; change variables to suit your desires			 	;&lt;br /&gt;
; the fourth guy is a Stonecrafter instead of Herbalist		;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;&lt;br /&gt;
;;VARIABLES;;&lt;br /&gt;
;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
PICKS = 2	;number of picks to pack&lt;br /&gt;
AXES = 1 	;number of axes to pack&lt;br /&gt;
ANVILS = 0	;number of anvils to pack&lt;br /&gt;
MEATS = 7	;how much meat to take, each buys one of each cheap type (total number depends on locale)&lt;br /&gt;
DRINKS = 26	;how many drinks to take, each one buys 4 drinks, one of each type&lt;br /&gt;
SEEDS = 5	;each increment buys 5 plump helmet spawn, 2 pig tail, and 2 rock nuts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SetKeyDelay, 12	;Key delay, to keep Dwarf Fortress from being overwhelmed.&lt;br /&gt;
		:Set higher if you get weird results, or lower to get the&lt;br /&gt;
		:script to run faster&lt;br /&gt;
SLEEPTIME = 12	;same thing, only used in the repeated key press loops though&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;&lt;br /&gt;
;;The code;;&lt;br /&gt;
;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
^+e::&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			;remove all of the items&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
loop 105{&lt;br /&gt;
	Send {NumpadSub}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
			;place the skills&lt;br /&gt;
			;first guy&lt;br /&gt;
			;Proficient Miner&lt;br /&gt;
Send {right}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;novice appraiser&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 7{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
			;novice Judge of Intent&lt;br /&gt;
Send {Up}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
			;competent gem setter&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 7{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 3{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;second guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
			;Proficient Miner&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Mason&lt;br /&gt;
loop 3{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;third guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Carpenter&lt;br /&gt;
Send {UP}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Wood Cutter&lt;br /&gt;
Send {UP}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;fourth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Grower&lt;br /&gt;
Send {PgDn}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Down}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Stone Crafter&lt;br /&gt;
loop 9{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;fifth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Mechanic&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Building Designer&lt;br /&gt;
Send {PgUp}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;sixth guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Weaponsmith&lt;br /&gt;
loop 1{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Armorsmith&lt;br /&gt;
loop 2{&lt;br /&gt;
	Send {Down}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;seventh guy&lt;br /&gt;
Send {Left}&lt;br /&gt;
Send {Down}&lt;br /&gt;
Send {Right}&lt;br /&gt;
			;Proficient Cook&lt;br /&gt;
Send {PgDn}&lt;br /&gt;
loop 2{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
			;Proficient Brewer&lt;br /&gt;
loop 1{&lt;br /&gt;
	Send {Up}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
loop 5{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
			;do the inventory&lt;br /&gt;
Send {Tab}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
			;Meat&lt;br /&gt;
&lt;br /&gt;
if MEATS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
tmp := MEATS - 1&lt;br /&gt;
send ndonkey{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nchimpanzee{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngazelle{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nbonobo{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmule{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ndeer{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nraccoon{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nfox{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nrhesus{SPACE}macaque{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nhorse{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngroundhog{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmountain{SPACE}goat{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nhoary{SPACE}marmot{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send ngorilla{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send norangutan{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nsiamang{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nbilou{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send npileated{SPACE}gibbon{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nmandrill{SPACE}meat{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
send nturtle{RIGHT}{ENTER}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {F9}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			;copper picks&lt;br /&gt;
if PICKS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}copper picks{Right}{Enter}&lt;br /&gt;
tmp := PICKS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Axes&lt;br /&gt;
if AXES &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}steel axes{Right}{Enter}&lt;br /&gt;
tmp := AXES - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Seeds&lt;br /&gt;
if SEEDS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
send {n}Rock nuts{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
send {n}plump helmet spawn{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
send {n}Pig tail Seeds{Right}{Enter}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
&lt;br /&gt;
tmp := SEEDS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
			;Anvils&lt;br /&gt;
if ANVILS &amp;gt; 0&lt;br /&gt;
{&lt;br /&gt;
Send {n}iron anvils{Right}{Enter}&lt;br /&gt;
tmp := ANVILS - 1&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
	Send {NumpadAdd}&lt;br /&gt;
	Sleep %SLEEPTIME%&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
			;Drinks&lt;br /&gt;
if DRINKS &amp;gt; 0{&lt;br /&gt;
send {n}Dwarven ale{Right}{Enter}&lt;br /&gt;
send {n}Dwarven beer{Right}{Enter}&lt;br /&gt;
send {n}Dwarven wine{Right}{Enter}&lt;br /&gt;
send {n}Dwarven rum{Right}{Enter}&lt;br /&gt;
&lt;br /&gt;
tmp := DRINKS - 1&lt;br /&gt;
loop 4{&lt;br /&gt;
loop %tmp%{&lt;br /&gt;
Send {NumpadAdd}&lt;br /&gt;
}&lt;br /&gt;
Send {up}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===A more modular approach===&lt;br /&gt;
Hit WIN+G to go once you are on the empty item screen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#g::&lt;br /&gt;
;add an anvil&lt;br /&gt;
Additem(&amp;quot;iron anvils&amp;quot;,1)&lt;br /&gt;
;add 31 of the boozes (kind of iffy might end up with dwarven cheese or something if the civilization does not have 4 boozes)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
Additem(&amp;quot;dw&amp;quot;,31)&lt;br /&gt;
;adds copper nuggets &lt;br /&gt;
Additem(&amp;quot;copper n&amp;quot;,5)&lt;br /&gt;
;adds cassiterite&lt;br /&gt;
Additem(&amp;quot;cass&amp;quot;,5)&lt;br /&gt;
;bitumous coal&lt;br /&gt;
Additem(&amp;quot;coal&amp;quot;,5)&lt;br /&gt;
;tower cap logs&lt;br /&gt;
Additem(&amp;quot;logs&amp;quot;,11)&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
IsCurrentItemThere()&lt;br /&gt;
{&lt;br /&gt;
	;color of text in the new item screen 0xFFFF00(selected) or 0x808000 (unselected)&lt;br /&gt;
	;location of text in the new item screen 305, 150&lt;br /&gt;
	PixelSearch, , , 305, 150, 315, 160, 0x808000, 3,&lt;br /&gt;
	return !ErrorLevel&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AddItem(name,amount)&lt;br /&gt;
{&lt;br /&gt;
	Sleep 100&lt;br /&gt;
	amount -= 1&lt;br /&gt;
	SetKeyDelay 150&lt;br /&gt;
	SendInput n&lt;br /&gt;
	SendInput %name%&lt;br /&gt;
	;MsgBox Name Check&lt;br /&gt;
	Sleep 200&lt;br /&gt;
	if IsCurrentItemThere() &lt;br /&gt;
	{&lt;br /&gt;
		Sleep 200&lt;br /&gt;
		SendInput {Right}&lt;br /&gt;
		SendInput {Enter}&lt;br /&gt;
		Sleep 200&lt;br /&gt;
		Loop&lt;br /&gt;
		{&lt;br /&gt;
			if amount &amp;lt;= 0 &lt;br /&gt;
			{&lt;br /&gt;
				break&lt;br /&gt;
			}&lt;br /&gt;
			SendInput {NumpadAdd}&lt;br /&gt;
			Sleep 10&lt;br /&gt;
			amount --&lt;br /&gt;
		}&lt;br /&gt;
		;MsgBox Done&lt;br /&gt;
	}&lt;br /&gt;
	else &lt;br /&gt;
	{&lt;br /&gt;
		SendInput {F9}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bed Assigning macro===&lt;br /&gt;
This will assign bedrooms to your dwarfs. Press F3 followed by a single digit indicating how many beds to assign. Can repeat the action, as the number of beds assigned is stored in a counter. Room size is default, but easily edited into the script. By [[User:Napsterbater|Napsterbater]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bedcounter = 0&lt;br /&gt;
F3::&lt;br /&gt;
  Input, counter, L1&lt;br /&gt;
  SetKeyDelay, 100&lt;br /&gt;
  loop  %counter% {&lt;br /&gt;
    loop %bedcounter%&lt;br /&gt;
      send {Down}&lt;br /&gt;
    loop % A_Index - 1&lt;br /&gt;
      send {Down}&lt;br /&gt;
    send {q}{r}{Enter}{a}&lt;br /&gt;
    loop %bedcounter%&lt;br /&gt;
      send {NumPadAdd}&lt;br /&gt;
    loop % A_Index - 1&lt;br /&gt;
      send {NumPadAdd}&lt;br /&gt;
    send {NumPadAdd}{Enter}&lt;br /&gt;
    send {space}{r}&lt;br /&gt;
  }&lt;br /&gt;
  bedcounter += counter&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Room-designation macros===&lt;br /&gt;
&lt;br /&gt;
====Valdemar's Designator Macro====&lt;br /&gt;
This macro can read a spreadsheet and designate rooms according to it. [http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&amp;amp;f=2&amp;amp;t=001507 Forum Thread/Download]&lt;br /&gt;
&lt;br /&gt;
====Fedor's chambered circle====&lt;br /&gt;
A circular room with eight equal-sized chambers, suitable for everything from housing to workshops to a mausoleum.&amp;lt;br&amp;gt;&lt;br /&gt;
[http://mkv25.net/dfma/movie-216-room-designationmacro01 See this macro in action]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Macros_and_Keymaps_Examples#Room-designation Macro 01|Macro text]]&lt;br /&gt;
&lt;br /&gt;
====Valdemar's bedroom complex====&lt;br /&gt;
A large fractal bedroom/dining complex, with 56 bedrooms and room for 24 tables.&lt;br /&gt;
&lt;br /&gt;
You can press Alt-B to create a bedroom block, or Alt-C to create a full complex with 4 bedroom blocks and a dining block in the center.&lt;br /&gt;
&lt;br /&gt;
Note - the macro is much faster than the demo movie shows, it is done in under a minute.&lt;br /&gt;
&lt;br /&gt;
[http://mkv25.net/dfma/movie-252 Demo Movie]&lt;br /&gt;
&lt;br /&gt;
[http://www.pindi.us/files/fractalbr.zip Download]&lt;br /&gt;
&lt;br /&gt;
====Tulip's room macros====&lt;br /&gt;
Based on [[Bedroom_design|the bedroom designs.]]&lt;br /&gt;
&lt;br /&gt;
^g means alt+g, !g means ctrl+g, and so on.&lt;br /&gt;
Open up the designations window before using these:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
; This will make a basic 'x' pattern workshop/room layout&lt;br /&gt;
; and will 'land' back on the same tile it starts on each time,&lt;br /&gt;
; which happens to be the center.&lt;br /&gt;
; It is modified so that you will have 3 staircases, and an extra tile&lt;br /&gt;
; because many workshops do not have corner access.&lt;br /&gt;
!r::&lt;br /&gt;
Send di2{enter}88{enter}4d{enter}4{enter}67{enter}77{enter}66666666&lt;br /&gt;
Send {enter}11{enter}1{enter}6{enter}114{enter}4{enter}2{enter}11{enter}&lt;br /&gt;
Send 66666666{enter}77{enter}7{enter}6{enter}74&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes GnomeChomsky's Tessellated Apartments, bedrooms only.&lt;br /&gt;
; Your cursor will be over the left staircase.&lt;br /&gt;
!g::&lt;br /&gt;
Send i999866{enter}{enter}33332{enter}{enter}11114{enter}{enter}&lt;br /&gt;
Send d3{enter}22{enter}4{enter}{enter}&lt;br /&gt;
Send 78{enter}44{enter}8{enter}{enter}&lt;br /&gt;
Send 96{enter}88{enter}6{enter}{enter}	&lt;br /&gt;
Send 32{enter}66{enter}2{enter}{enter}&lt;br /&gt;
Send 96{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 96{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 1444{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 88{enter}88{enter}6{enter}{enter}&lt;br /&gt;
Send 78{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 66{enter}22{enter}4{enter}{enter}&lt;br /&gt;
Send 14{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 32{enter}{enter}6{enter}88{enter}7i{enter}{enter}&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes GnomeChomsky's Tessellated Apartments, bedrooms plus dining.&lt;br /&gt;
; Everything above applies.&lt;br /&gt;
^g::&lt;br /&gt;
Send i{enter}{enter}999866{enter}{enter}33332{enter}{enter}11114{enter}{enter}d&lt;br /&gt;
Send 444{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 32{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 9966{enter}{enter}6{enter}88{enter}&lt;br /&gt;
Send 96{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 7788{enter}{enter}8{enter}44{enter}&lt;br /&gt;
Send 78{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 1144{enter}{enter}4{enter}22{enter}&lt;br /&gt;
Send 14{enter}{enter}2{enter}66{enter}&lt;br /&gt;
Send 36{enter}8886666666{enter}&lt;br /&gt;
Send 9{enter}4444444{enter}&lt;br /&gt;
Send 8{enter}6666{enter}744{enter}{enter}&lt;br /&gt;
Send 222222441{enter}6666666{enter}&lt;br /&gt;
Send {enter}22{enter}8{enter}4444{enter}&lt;br /&gt;
Send 7778&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; This makes THLawrence's Living Pods (the A is for Arabia).&lt;br /&gt;
; Put your cursor where you want the upper left staircase to be.&lt;br /&gt;
; Like my other scripts, it recenters on that tile.&lt;br /&gt;
; Also, thank you THLawrence, this one was really easy write!&lt;br /&gt;
!a::&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 96666666&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 33222&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 7444&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}22{enter}1{enter}44{enter}7{enter}&lt;br /&gt;
Send 9988888&lt;br /&gt;
return&lt;br /&gt;
&lt;br /&gt;
; This makes the lobby for THLawrence's Living pods.&lt;br /&gt;
^a::&lt;br /&gt;
Send i{enter}{enter}d7{enter}7{enter}666{enter}3{enter}66{enter}9{enter}66{enter}3{enter}41i{enter}{enter}&lt;br /&gt;
Send 36d{enter}1444444{enter}&lt;br /&gt;
Send 74{enter}1{enter}22{enter}3{enter}3i{enter}{enter}d1{enter}1{enter}666{enter}9{enter}&lt;br /&gt;
Send 66{enter}3{enter}66{enter}9{enter}88{enter}7{enter}74{enter}1144{enter}&lt;br /&gt;
Send 36666i{enter}{enter}777777&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===The MOUSE control===&lt;br /&gt;
For unrivaled mouse control in DF try [http://www.dwarffortresswiki.net/index.php/User:Digger this DF Mouse script]&lt;br /&gt;
&lt;br /&gt;
{{Game_Interface FAQ}}&lt;br /&gt;
[[Category:ahk scripts]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Frogman&amp;diff=27126</id>
		<title>40d Talk:Frogman</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Frogman&amp;diff=27126"/>
		<updated>2008-05-24T06:07:53Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Update? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page need a completely rewrite. To be frank, I don't see the point of having this page up with the current content. There's nothing usefull in it. --[[User:Eagle of Fire|Eagle of Fire]] 01:10, 18 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I added that they jump out of rivers, but I've never seen this happen in my own games (still kind of a noob). It would be cool if someone could add the equipment they carry. I'd do it myself but I've never seen a frogman. --[[User:Benitosimies|Benitosimies]] 10:53, 14 March 2008 (EDT)&lt;br /&gt;
:because they act just like any other cave river creatures. they dont raid you, they will move out if theres a path, just like giant toads or olms. they also dont carry any equiptment, because they arent an entity, just a regular creature -[[User:Chariot|Chariot]] 05:21, 15 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Update?==&lt;br /&gt;
&amp;quot;In the past, frogmen were fairly weak Creatures, that could wound or kill lower level dwarves. Right now they are powerful creatures that can easily kill several Military dwarves&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Is this still accurate? I had a panic attack and recruited all seven dwarves to fend one off, expecting it to rip them to shreds. Instead they tore it apart (literally) without taking a single wound. --[[User:Juckto|Juckto]] 23:10, 23 May 2008 (EDT)&lt;br /&gt;
:Read the line right below that. At one point swimming creatures would quickly become legendary swimmers gaining huge stat boosts before you found the cave river. The creatures would then kill everything if let out.--[[User:Ikkonoishi|Ikkonoishi]] 02:07, 24 May 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Talk:Hoborobo&amp;diff=41492</id>
		<title>Talk:Hoborobo</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Talk:Hoborobo&amp;diff=41492"/>
		<updated>2008-05-10T00:46:29Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Redirecting to User talk:Hoborobo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[User_talk:Hoborobo]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Hoborobo&amp;diff=38996</id>
		<title>User talk:Hoborobo</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Hoborobo&amp;diff=38996"/>
		<updated>2008-05-10T00:25:18Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to this wiki! Dwarf Fortress rapidly becomes more complicated, and we're always glad to have new writers.&amp;lt;br&amp;gt;&lt;br /&gt;
Since we request that you try to follow our wiki's standards, we've made a list of basic guidelines to follow. Note that '''this is a template''', so some may not apply to you.&amp;lt;br&amp;gt;&lt;br /&gt;
* To let us know who you are, please sign your posts on discussion pages by typing &amp;quot;&amp;lt;nowiki&amp;gt;--~~~~&amp;lt;/nowiki&amp;gt;&amp;quot; after your posts. This can also be inserted with the [[Image:Button sig756222.png]] button if JavaScript is enabled.&lt;br /&gt;
* Avoid making a dozen small edits to a page, instead making one large edit. This makes the history of the page a lot easier to read and avoids cluttering the Recent changes page.&lt;br /&gt;
* When making comments on a talk page, if you are replying to a comment, use one more indent than the comment you are replying to. Since indents are created with :'s at the beginning of line, you'd use ::::: at the beginning if you were replying to a 4-indent comment. Put an empty line between comments by others and you but not in the middle of your own comment.&lt;br /&gt;
* Most importantly, [[DwarfFortressWiki:Community_Portal#We_are_doing_this.21_Let_us_do_it_right.|read and follow the rules.]]&lt;br /&gt;
--[[User:Savok|Savok]] 11:35, 11 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
Check out the Forums for detailed (if disorganized) modding info.&amp;lt;br&amp;gt;&lt;br /&gt;
There's an entire forum dedicated to it. [[http://www.bay12games.com/cgi-local/ultimatebb.cgi]]&amp;lt;br&amp;gt;&lt;br /&gt;
--[[User:N9103|Edward]] 18:58, 9 May 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Talk:Hoborobo&amp;diff=41491</id>
		<title>Talk:Hoborobo</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Talk:Hoborobo&amp;diff=41491"/>
		<updated>2008-05-10T00:25:03Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Hoborobo&amp;diff=41467</id>
		<title>User:Hoborobo</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Hoborobo&amp;diff=41467"/>
		<updated>2008-05-10T00:24:20Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Hoborobo moved to User:Hoborobo: This page should be in the user namespace.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== I yam what I yam ===&lt;br /&gt;
&lt;br /&gt;
hi im hoborobo. Dwarf fortress entusiast and Triffid hunter...you know what a Triffid is right? Well as soon as I get the answers to creating life, I'll be able to make my very own Triffid and be able to give one to all my friends&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The answer to life, the Universe and Everything ==&lt;br /&gt;
&lt;br /&gt;
Well, I'm talking about Dwaf Fortress here and I want to be able to my own Cretures and Items and stuff. If anyone could tell me I'd like to know.&lt;br /&gt;
&lt;br /&gt;
== About me ==&lt;br /&gt;
&lt;br /&gt;
Hoborobo has had a good time recently. He has played a brilliant game recently. He has eaten fine pasta recently.Hoborobo is a devout worshipper of the fire god,Melons and all things cheese.&lt;br /&gt;
Hoborobo loves Triffids for they're cuddling killing nature and fine meat. He detests Killer sheep as they haunt his dreams.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Utility:Dwarf_Companion&amp;diff=33075</id>
		<title>Utility:Dwarf Companion</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Utility:Dwarf_Companion&amp;diff=33075"/>
		<updated>2008-04-27T01:34:33Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* How */  link for the gtk pointed to an out of date version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Utilities]]&lt;br /&gt;
[[Image:dfcompanion1.png|thumb|This is a preliminary screenshot of the prototype.]]&lt;br /&gt;
= What? =&lt;br /&gt;
&lt;br /&gt;
This project is about having a helper utility for dwarf fortress, hopefully filling gaps in the user interface. It will also allow some cool cheating, so that it would be possible to play with the engine. For example, you can now mark your nobles as butcherable! Ain't that cool?&lt;br /&gt;
&lt;br /&gt;
For now, a '''PROTOTYPE''' utility is available, for testings. It uses python and requires many dependencies. It will end up as a standard .exe tool once features are ironed out.&lt;br /&gt;
&lt;br /&gt;
It supports versions 33d, 33f, 33g, and 38a. The latest screenshot is at [http://bartabox.banquise.net/df/screen1.png this place].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Important warning =&lt;br /&gt;
When fiddling with DF memory, you might get crashes. Here are two important advices:&lt;br /&gt;
* when writing into memory (like updating a creature's data), pause the game, load the data, update it, save it and then unpause the game&lt;br /&gt;
* do not teleport creatures that are hauling&lt;br /&gt;
&lt;br /&gt;
= How =&lt;br /&gt;
You need to install several things first.&lt;br /&gt;
&lt;br /&gt;
* [http://www.python.org/download/ Python] (works with any version, 2.5 is prefered)&lt;br /&gt;
* from [http://sourceforge.net/project/showfiles.php?group_id=98754 this page], the latest &amp;quot;Gtk+/Win32 Runtime Environment Installer&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* For python 2.5 users, just grab the utility at [http://bartabox.banquise.net/df/companion-0.8-python25.zip this place], and unzip it.&lt;br /&gt;
* For users of the -any versions, or python 2.4 users, you must:&lt;br /&gt;
** Install the three modules from [http://www.pygtk.org/downloads.html this page] (PyCairo, PyGObject, PyGTK)&lt;br /&gt;
** Grab the software at [http://bartabox.banquise.net/df/companion-0.11-any.zip this place].&lt;br /&gt;
&lt;br /&gt;
* Double click on &amp;quot;dfcompanion_prototype.py&amp;quot;!&lt;br /&gt;
&lt;br /&gt;
An installer that contains all needed modules can be found here:&lt;br /&gt;
http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html&lt;br /&gt;
&lt;br /&gt;
= Problems? =&lt;br /&gt;
Please run the tool from the command line if you experience problems, and copy/paste errors in the discussion page.&lt;br /&gt;
&lt;br /&gt;
The unit list often gets desynchronised (multiple dwarves appearing). To solve this, just press &amp;quot;refresh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
= Usage - what can you do? =&lt;br /&gt;
First run Dwarf Fortress, and load your game. It won't work otherwise.&lt;br /&gt;
&lt;br /&gt;
The general idea is to have the main window open next to your DF windows. It should help you play the game by providing useful hints while playing. Order dwarves using the column &amp;quot;alerts&amp;quot; so that most important stuff is on top : hungry, unhappy, moody, hurt dwarves. You can play with creatures and view detailled views of their attributes by double clicking them. Right now, you can interact by:&lt;br /&gt;
* clicking &amp;quot;heal&amp;quot;, heals creature&lt;br /&gt;
* clicking &amp;quot;hurt&amp;quot;, hurts creature&lt;br /&gt;
* clicking &amp;quot;apply&amp;quot;, saves the following changes:&lt;br /&gt;
** position X,Y,Z&lt;br /&gt;
** strength, agility, toughness&lt;br /&gt;
** all flags (the checkbox stuff), most being unknown, please let us know about their use if you get it!&lt;br /&gt;
** pain, exhaustion, hunger, thirst, drowsiness&lt;br /&gt;
** race (still needs to be tested!)&lt;br /&gt;
** mood type (fey, macabre, ...), and mood skill increased&lt;br /&gt;
&lt;br /&gt;
Interesting effects are [http://mkv25.net/dfma/movie-236-lazydwarvesmustdie butcherable dwarves] and [http://img184.imageshack.us/img184/7919/straydognz6.jpg Corbine's crazy dogs]. Oh, and skeletal legendary miners that turn against your fortress.&lt;br /&gt;
&lt;br /&gt;
= dwarfdbg scripts =&lt;br /&gt;
Here is a collection of scripts that wouldn't fit in DC but might be useful. Copy them in the DC folder and run them.&lt;br /&gt;
* [http://bartabox.banquise.net/df/butchercats.py butchercats.py] : marks all &amp;quot;unintersted&amp;quot; cats and kitten as ready for slaughter.&lt;br /&gt;
* Soon, the &amp;quot;designator&amp;quot;, with a list of cool stuff : [[User:Bartavelle/DesignatorTiles]]&lt;br /&gt;
&lt;br /&gt;
= Changelog =&lt;br /&gt;
* utils.zip : initial test, some bugs with accents&lt;br /&gt;
* utils.0.1.zip : corrected problem with bad characters&lt;br /&gt;
* utils.0.2.zip : corrected problem with long strings&lt;br /&gt;
* utils.0.3.zip : corrected problem with creatures not in legends&lt;br /&gt;
* utils.0.4.zip : quick (untested) upgrade to v0.27.169.33g&lt;br /&gt;
* companion.0.5-any.zip - 07/01/2008&lt;br /&gt;
** Skill edition&lt;br /&gt;
** Removed the dependency on pydbg, should now work with python 2.x&lt;br /&gt;
** Incomplete linux support, for those people who go on holiday with only their linux laptops ...&lt;br /&gt;
** More details in the flags names&lt;br /&gt;
** Disabled the regular refreshes for now&lt;br /&gt;
** Body part name is resolved when showing damages&lt;br /&gt;
** Right-click popup with quick features : heal, hurt, tame, make war animal, rest and restore&lt;br /&gt;
** Civilization altering (steal that merchant swordsman!)&lt;br /&gt;
* companion.0.6-any.zip - 22/01/2008&lt;br /&gt;
** Better error handling for Window users, should help debugging ...&lt;br /&gt;
** Firstname and nickname editor (finally)&lt;br /&gt;
** Money warnings, and money cheat&lt;br /&gt;
** Combat reports in DF mode&lt;br /&gt;
** Bleeding/Paralysis/ ... can be tweaked&lt;br /&gt;
** &amp;quot;Opinion poll&amp;quot;&lt;br /&gt;
** More details&lt;br /&gt;
** Instamood!&lt;br /&gt;
* companion.0.7-any.zip - 07/02/2008&lt;br /&gt;
** Couples list&lt;br /&gt;
** Name editor&lt;br /&gt;
** Right click / zoom now works&lt;br /&gt;
** Support for 38a&lt;br /&gt;
* companion.0.8-any.zip - 13/02/2008&lt;br /&gt;
** Removal of the couple list, should hopefully fix bugs&lt;br /&gt;
** Several scripts for more fun&lt;br /&gt;
** Better support for stuff&lt;br /&gt;
** Should be &amp;quot;final&amp;quot; of the prototype, next step will probably involve working on a standalone .exe, and the occasionnal fun script&lt;br /&gt;
* companion.0.9-any.zip - 18/02/2008&lt;br /&gt;
** Quick update to fix for the new DF version.&lt;br /&gt;
* companion.0.9-any.zip - 26/02/2008&lt;br /&gt;
** Another quick fix for 38b&lt;br /&gt;
= thanks =&lt;br /&gt;
* the memory hackers!&lt;br /&gt;
* Phil, for the clever python tricks&lt;br /&gt;
* Corbine, for early testings, bug discovery, and flags discovery&lt;br /&gt;
* sinoth, for early testings, bug discovery&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Purring_maggot&amp;diff=32148</id>
		<title>40d:Purring maggot</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Purring_maggot&amp;diff=32148"/>
		<updated>2008-04-22T04:02:32Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: linkify&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purring maggot is currently the only creature that can be [[milk]]ed. You cannot embark with purring maggots, because they are classified as vermin.&lt;br /&gt;
&lt;br /&gt;
Purring maggots have been caught in [[animal trap|animal traps]] with meat for bait.&lt;br /&gt;
&lt;br /&gt;
If you find a map with purring maggots and domesticate them, be sure to keep them in an area away from most of your dwarves, because like all vermin, some dwarves find them disgusting.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Item_token&amp;diff=13773</id>
		<title>40d:Item token</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Item_token&amp;diff=13773"/>
		<updated>2008-04-08T22:43:13Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These are to be used with certain [[Creature Tokens]] (such as ITEMCORPSE) as well as in [[Reactions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An item is described by four tokens, as such:&lt;br /&gt;
&lt;br /&gt;
 [&amp;lt;whatever is asking for the token&amp;gt;:TYPE:SUBTYPE:MATERIAL:MATGLOSS]&lt;br /&gt;
&lt;br /&gt;
==Item type tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; width=&amp;quot;55%&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Token&lt;br /&gt;
! width=&amp;quot;80%&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| SMALLGEM || Cut gemstones usable in jeweler's workshop&lt;br /&gt;
|-&lt;br /&gt;
| BLOCKS || Blocks of any kind&lt;br /&gt;
|-&lt;br /&gt;
| ROUGH || Raw gemstones&lt;br /&gt;
|-&lt;br /&gt;
| STONE || Raw mined stone&lt;br /&gt;
|-&lt;br /&gt;
| WOOD || Wooden logs&lt;br /&gt;
|-&lt;br /&gt;
| DOOR || Doors&lt;br /&gt;
|-&lt;br /&gt;
| FLOODGATE || Floodgates&lt;br /&gt;
|-&lt;br /&gt;
| BED || Beds&lt;br /&gt;
|-&lt;br /&gt;
| CHAIR || Chairs and thrones&lt;br /&gt;
|-&lt;br /&gt;
| CHAIN || Chains and ropes&lt;br /&gt;
|-&lt;br /&gt;
| FLASK || Flasks&lt;br /&gt;
|-&lt;br /&gt;
| GOBLET || Goblets&lt;br /&gt;
|-&lt;br /&gt;
| INSTRUMENT || Musical instruments&lt;br /&gt;
|-&lt;br /&gt;
| TOY || Toys&lt;br /&gt;
|-&lt;br /&gt;
| WINDOW || &lt;br /&gt;
|-&lt;br /&gt;
| CAGE || Cages&lt;br /&gt;
|-&lt;br /&gt;
| BARREL || Barrels&lt;br /&gt;
|-&lt;br /&gt;
| BUCKET || Buckets&lt;br /&gt;
|-&lt;br /&gt;
| ANIMALTRAP || Traps for animals&lt;br /&gt;
|-&lt;br /&gt;
| TABLE || Tables&lt;br /&gt;
|-&lt;br /&gt;
| COFFIN || Coffins and caskets&lt;br /&gt;
|-&lt;br /&gt;
| STATUE || Statues&lt;br /&gt;
|-&lt;br /&gt;
| CORPSE || Dead things&lt;br /&gt;
|-&lt;br /&gt;
| WEAPON || Weapons&lt;br /&gt;
|-&lt;br /&gt;
| ARMOR || Armor&lt;br /&gt;
|-&lt;br /&gt;
| SHOES || Shoes&lt;br /&gt;
|-&lt;br /&gt;
| SHIELD || Shields&lt;br /&gt;
|-&lt;br /&gt;
| HELM || Hats&lt;br /&gt;
|-&lt;br /&gt;
| GLOVES || Gloves&lt;br /&gt;
|-&lt;br /&gt;
| BOX || Chests, coffers, and boxes&lt;br /&gt;
|-&lt;br /&gt;
| BIN || Bins&lt;br /&gt;
|-&lt;br /&gt;
| SAND || Sand&lt;br /&gt;
|-&lt;br /&gt;
| ARMORSTAND || Armor stands&lt;br /&gt;
|-&lt;br /&gt;
| WEAPONRACK || Weapon racks&lt;br /&gt;
|-&lt;br /&gt;
| CABINET || Cabinets&lt;br /&gt;
|-&lt;br /&gt;
| FIGURINE || &lt;br /&gt;
|-&lt;br /&gt;
| AMULET || Amulets&lt;br /&gt;
|-&lt;br /&gt;
| SCEPTER || Scepters&lt;br /&gt;
|-&lt;br /&gt;
| AMMO || Ammunition for hand-held weapons&lt;br /&gt;
|-&lt;br /&gt;
| CROWN || Crowns&lt;br /&gt;
|-&lt;br /&gt;
| RING || Rings&lt;br /&gt;
|-&lt;br /&gt;
| EARRING || Earrings&lt;br /&gt;
|-&lt;br /&gt;
| BRACELET || Bracelets&lt;br /&gt;
|-&lt;br /&gt;
| GEM || Large gems&lt;br /&gt;
|-&lt;br /&gt;
| ANVIL || Anvils&lt;br /&gt;
|-&lt;br /&gt;
| CORPSEPIECE || Body parts&lt;br /&gt;
|-&lt;br /&gt;
| REMAINS || Dead vermin bodies&lt;br /&gt;
|-&lt;br /&gt;
| MEAT || Butchered meat&lt;br /&gt;
|-&lt;br /&gt;
| FISH || Prepared fish&lt;br /&gt;
|-&lt;br /&gt;
| FISH_RAW || Unprepared fish&lt;br /&gt;
|-&lt;br /&gt;
| VERMIN || &lt;br /&gt;
|-&lt;br /&gt;
| PET || &lt;br /&gt;
|-&lt;br /&gt;
| SEEDS || Seeds from plants&lt;br /&gt;
|-&lt;br /&gt;
| PLANT || Plants&lt;br /&gt;
|-&lt;br /&gt;
| SKIN_RAW || Untanned skins&lt;br /&gt;
|-&lt;br /&gt;
| SKIN_TANNED || Tanned skins&lt;br /&gt;
|-&lt;br /&gt;
| BONES || Bones from critters&lt;br /&gt;
|-&lt;br /&gt;
| SHELL || Shells from critters that have them&lt;br /&gt;
|-&lt;br /&gt;
| LEAVES || Leaves from certain plants after processing&lt;br /&gt;
|-&lt;br /&gt;
| THREAD || Thread gathered from webs or made at the farmer's workshop&lt;br /&gt;
|-&lt;br /&gt;
| CLOTH || Cloth made at the loom&lt;br /&gt;
|-&lt;br /&gt;
| TOTEM || Totems&lt;br /&gt;
|-&lt;br /&gt;
| SKULL || Skulls of dead critters&lt;br /&gt;
|-&lt;br /&gt;
| PANTS || Pants&lt;br /&gt;
|-&lt;br /&gt;
| BACKPACK || Backpacks&lt;br /&gt;
|-&lt;br /&gt;
| QUIVER || Quivers&lt;br /&gt;
|-&lt;br /&gt;
| CATAPULTPARTS || Catapult parts&lt;br /&gt;
|-&lt;br /&gt;
| BALLISTAPARTS || Ballista parts&lt;br /&gt;
|-&lt;br /&gt;
| SIEGEAMMO || Siege ammo&lt;br /&gt;
|-&lt;br /&gt;
| BALLISTARROWHEAD || Arrow heads for ballista bolts&lt;br /&gt;
|-&lt;br /&gt;
| TRAPPARTS || Mechanisms&lt;br /&gt;
|-&lt;br /&gt;
| TRAPCOMP || Weapons for traps only.&lt;br /&gt;
|-&lt;br /&gt;
| EXTRACT || Extracts from certain plants and creatures.&lt;br /&gt;
|-&lt;br /&gt;
| POTION || &lt;br /&gt;
|-&lt;br /&gt;
| DRINK || &lt;br /&gt;
|-&lt;br /&gt;
| POWDER_MISC || &lt;br /&gt;
|-&lt;br /&gt;
| CHEESE || Cheeses&lt;br /&gt;
|-&lt;br /&gt;
| FOOD || Prepared food&lt;br /&gt;
|-&lt;br /&gt;
| LIQUID_MISC || &lt;br /&gt;
|-&lt;br /&gt;
| COIN || Coins&lt;br /&gt;
|-&lt;br /&gt;
| GLOB || &lt;br /&gt;
|-&lt;br /&gt;
| ROCK || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Item subtype tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; width=&amp;quot;55%&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Token&lt;br /&gt;
! width=&amp;quot;80%&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| NO_SUBTYPE || No specific subtype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Material tokens==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot; width=&amp;quot;5%&amp;quot;&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | #&lt;br /&gt;
! align=&amp;quot;left&amp;quot; | Token&lt;br /&gt;
|-  &lt;br /&gt;
| 1 || WOOD&lt;br /&gt;
|-  &lt;br /&gt;
| 2 || STONE&lt;br /&gt;
|-  &lt;br /&gt;
| 3 || METAL&lt;br /&gt;
|-  &lt;br /&gt;
| 4 || BONE&lt;br /&gt;
|-  &lt;br /&gt;
| 5 || IVORY&lt;br /&gt;
|-  &lt;br /&gt;
| 6 || HORN&lt;br /&gt;
|-  &lt;br /&gt;
| 7 || AMBER&lt;br /&gt;
|-  &lt;br /&gt;
| 8 || CORAL&lt;br /&gt;
|-  &lt;br /&gt;
| 9 || PEARL&lt;br /&gt;
|-  &lt;br /&gt;
| 10 || SHELL&lt;br /&gt;
|-  &lt;br /&gt;
| 11 || LEATHER&lt;br /&gt;
|-  &lt;br /&gt;
| 12 || SILK&lt;br /&gt;
|-  &lt;br /&gt;
| 13 || PLANT_ALCOHOL&lt;br /&gt;
|-  &lt;br /&gt;
| 14 || GLASS_GREEN&lt;br /&gt;
|-  &lt;br /&gt;
| 15 || GLASS_CLEAR&lt;br /&gt;
|-  &lt;br /&gt;
| 16 || GLASS_CRYSTAL&lt;br /&gt;
|-  &lt;br /&gt;
| 17 || SAND&lt;br /&gt;
|-  &lt;br /&gt;
| 18 || COAL&lt;br /&gt;
|-  &lt;br /&gt;
| 19 || POTASH&lt;br /&gt;
|-  &lt;br /&gt;
| 20 || ASH&lt;br /&gt;
|-  &lt;br /&gt;
| 21 || PEARLASH&lt;br /&gt;
|-  &lt;br /&gt;
| 22 || LYE&lt;br /&gt;
|-  &lt;br /&gt;
| 23 || RENDERED_FAT&lt;br /&gt;
|-  &lt;br /&gt;
| 24 || SOAP_ANIMAL&lt;br /&gt;
|-  &lt;br /&gt;
| 25 || FAT&lt;br /&gt;
|-  &lt;br /&gt;
| 26 || MUD&lt;br /&gt;
|-  &lt;br /&gt;
| 27 || VOMIT&lt;br /&gt;
|-  &lt;br /&gt;
| 28 || BLOOD_NONSPECIFIC&lt;br /&gt;
|-  &lt;br /&gt;
| 29 || BLOOD_SPECIFIC&lt;br /&gt;
|-  &lt;br /&gt;
| 30 || SLIME&lt;br /&gt;
|-  &lt;br /&gt;
| 31 || SALT&lt;br /&gt;
|-  &lt;br /&gt;
| 32 || FILTH_B&lt;br /&gt;
|-  &lt;br /&gt;
| 33 || FILTH_Y&lt;br /&gt;
|-  &lt;br /&gt;
| 34 || UNKNOWN_SUBSTANCE&lt;br /&gt;
|-  &lt;br /&gt;
| 35 || GRIME&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Tentacle_demon&amp;diff=39365</id>
		<title>40d Talk:Tentacle demon</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Tentacle_demon&amp;diff=39365"/>
		<updated>2008-03-21T22:31:36Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Is this a joke?{{nosignature|Amenos42}}&lt;br /&gt;
:Yes and no. It is a real creature. It is also a joke. --[[User:Ikkonoishi|Ikkonoishi]] 18:31, 21 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Herbalist&amp;diff=38525</id>
		<title>40d Talk:Herbalist</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Herbalist&amp;diff=38525"/>
		<updated>2008-03-07T07:05:01Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I would like to add a section &amp;quot;plant gathering can be a good food source early on, and a source for seeds otherwise not obtainable, but tends to be completely useless later in game unless you are in a biome where you can find Kobold Bulb or Valley herb. Objections? --[[User:Koltom|Koltom]] 23:53, 6 March 2008 (EST)&lt;br /&gt;
:What! Are you mad? That has to be the dumbest thing I have ever heard!&lt;br /&gt;
:&lt;br /&gt;
:Go read http://www.mediawiki.org/wiki/Help:Editing_pages#Editing_rules.2C_editing_conventions.2C_and_formatting and follow those directions man. This is a wiki Edit first. Verify facts later (if ever). --[[User:Ikkonoishi|Ikkonoishi]] 02:05, 7 March 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Trading&amp;diff=35836</id>
		<title>40d:Trading</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Trading&amp;diff=35836"/>
		<updated>2008-03-04T03:44:54Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Pack Creatures */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Trading in Dwarf Fortress first occurs in the first autumn of building your fort, with the arrival of the [[dwarf|Dwarven]] [[caravan]]. Trading is a good way to acquire resources that are not available or are rare in the local area. It also improves your freedom of choice on what item to [[embark]] with because you can always trade for them later, e.g. dropping the expensive [[anvil]] to bring 500 extra units of booze. New players can look [[Your_first_fortress#Trading|here]] for advice on trading with your first caravan.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
Building a [[trade depot]] will allow you the opportunity to trade with caravans that arrive at your [[fortress]].  Trade depots require three [[stone]]s or [[log]]s to build, and the [[architecture]] [[skill]] along with either [[masonry]] or [[carpentry]].&lt;br /&gt;
&lt;br /&gt;
== Using Trade Depot ==&lt;br /&gt;
Hit {{key|q}} to bring up the building interaction menu, and then move your cursor over the trade depot to gain access to the following options. &lt;br /&gt;
&lt;br /&gt;
=== Move Goods to/from Depot ===&lt;br /&gt;
When a caravan arrives, it is time to move local goods ready for trade. Selecting items in the categorized view will mark them [PENDING] and they will be moved to the depot. (Note: any dwarf can move goods to depot, even if his hauling labors are disabled) When ready for trade, an item is marked [TRADE]. The depot can be emptied in the same manner.&lt;br /&gt;
&lt;br /&gt;
=== Trader requested at depot/No trader needed at depot ===&lt;br /&gt;
Hit {{key|r}} to toggle between these two options. If a trader is requested then someone will come to the depot on behalf of your dwarves to trade with the the merchants. Who exactly comes is dependent on the option you have selected for who is allowed to trade (see below).&lt;br /&gt;
&lt;br /&gt;
=== Only broker may trade/Anyone may trade ===&lt;br /&gt;
A [[broker]] is not required but is preferable for getting better deals. To toggle whether anyone can trade or just the broker is done with {{K|b}}. &lt;br /&gt;
{{K|r}}equesting a trader at the trade depot will queue a job on the traders list. A higher level of brokerage will give you greater returns, so if you're dependent on trade it's recommended to keep one dwarf as broker and level up his appraisal skill as high as possible. It is advised to deactivate all labors from the broker during trading (including &amp;quot;all dwarves harvest&amp;quot; in the options menu). However, eating drinking and sleeping are always at a higher priority than trading.&lt;br /&gt;
&lt;br /&gt;
== Trading ==&lt;br /&gt;
When merchants have arrived and unloaded their goods, it's time to trade.  Access trading view by selecting building options for the Trade Depot with {{key|q}} and then pressing {{key|t}}.  ({{key|t}}rade will be disabled until a trader from your fortress arrives.)  In the trading view, merchants' goods are displayed on the left and player's on the right. Items from each side are selected for trade with {{key|enter}} and then traded with {{key|t}}.&lt;br /&gt;
&lt;br /&gt;
There are two factors to consider in making a balanced trade: weight and [[item value]]. Caravans have weight limits and the allowed additional weight is shown in the bottom right corner. The merchants must also profit from the deal. The amount of profit depends on the broker skill of the trader. It is strongly advised to use an allocated broker to do the transaction with the merchants. Having one person being a broker means that only he gains experience in [[social skills]] from successful trades, thus being able to negotiate more favorable deals in the future.&lt;br /&gt;
&lt;br /&gt;
=== Caravans ===&lt;br /&gt;
Each of the three friendly races will send a caravan once per year, however they will not arrive unless your region is marked as accessible by them. Dwarves will always arrive regardless of location, however.  Since trading caravans arrive from the direction of their civilization, it is currently preferable to build the depot as close to the middle of the map as possible if the civilizations are in different directions.  This reduces the chance of the caravan traveling across the whole map then turning around because it is time to leave.&lt;br /&gt;
&lt;br /&gt;
Dwarves and humans also send a [[liaison]] with whom the local broker has a meeting. Import and export requests are made, adjusting the prices for the next year. Desired items become more valuable.&lt;br /&gt;
&lt;br /&gt;
==== Dwarves ====&lt;br /&gt;
Dwarves arrive every year in the [[Calendar|fall]], typically bringing [[food]], [[alcohol|booze]], [[leather]] and miscellaneous supplies.  They are the only caravan that can bring [[steel]] in any form, either as equipment, crafts or unworked metal bars. The caravan will have wagons 3 tiles wide that require an adequate path.&lt;br /&gt;
&lt;br /&gt;
Unlike other races, the dwarven civilization will never attack you even if their traders don't make it home.&lt;br /&gt;
&lt;br /&gt;
==== Elves ====&lt;br /&gt;
Elves send small caravans of only muskoxen or mules, no wagons, in [[Calendar|spring]], loaded with [[cloth]], [[rope]], various [[plants]], and [[wood]]en items. The may also bring some [[tame]] [[animal]]s. They are very picky about what they will accept in return.&lt;br /&gt;
&lt;br /&gt;
Elven traders do not like to be offered any dead animal or tree byproducts. Forbidden items include{{ver|0.23.130.23a}}:&lt;br /&gt;
&lt;br /&gt;
* [[Bone]], [[shell]], [[leather]], or [[chitin]] items&lt;br /&gt;
* [[Wood]]en items, and items derived from wood, such as [[charcoal]] and [[pearlash]]&lt;br /&gt;
* Clear and crystal [[glass]] (because [[pearlash]] is used in their creation)&lt;br /&gt;
* Items [[decoration|decorated]] with any of the above materials&lt;br /&gt;
* [[Obsidian]] shortswords (since they have wooden handles)&lt;br /&gt;
* [[Soap]]&lt;br /&gt;
* [[Cheese]]&lt;br /&gt;
* Any item they normally would accept that has [[Blood|blood]] on it, for instance from a slain enemy.&lt;br /&gt;
&lt;br /&gt;
[[Metal]] items are acceptable, even when [[charcoal]] is used in their production. Items made from [[silk]] are acceptable, as are all non-wooden plant-derived products. You can also transport your goods to the [[trade depot]] in a wooden [[bin]], as long as you do not try to sell the bin. Living animals are acceptable, as long as the cage or trap is not made of [[wood]].&lt;br /&gt;
&lt;br /&gt;
Although [[tower-cap]]s are giant mushrooms, they are considered trees by the elves.&lt;br /&gt;
&lt;br /&gt;
==== Humans ====&lt;br /&gt;
The first human caravan will arrive in the summer of your second year, provided a human [[civilization]] has access to your site. The caravan will have wagons 3 tiles wide like the dwarven one, but which some players believe to be especially slow or having trouble finding a route, although there is no evidence of this in the current version(38a). &lt;br /&gt;
&lt;br /&gt;
There must be a path at least three tiles wide from the edge of the map where humans enter. You do not need to have an actual road, but you will usually need to {{K|d}}esignate {{K|s}}moothing of some boulders (outside) and {{K|t}}ree-cutting to clear the path. Use {{K|D}} to verify that there is a wagon accessible path to the depot. If there is not a wide enough path then the humans will only send pack mules greatly reducing the amount of stuff you can trade for.&lt;br /&gt;
&lt;br /&gt;
If the caravan must take a very long path to reach the depot, this is reduced from the time to trade. If the time is up while they are still moving, they will turn back and leave. To prevent this make it so that the depot is only accessible from one spot on the map which is close to the depot.&lt;br /&gt;
&lt;br /&gt;
Humans may also send a Representative, and having more skilled trading nobles will upgrade him to a Merchant Baron or Merchant Prince, who have larger caravans. The Representative will set up [[Trade agreement]]s with your trading noble, which lets you order the goods you want the next caravan to bring. Humans value weapons, and will usually negotiate to pay more for them in their trade agreements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pack Creatures ===&lt;br /&gt;
Races that trade will use pack creatures to carry their goods. Mules are the most common ones chosen but there are a number of other options. The best creatures are [[wagon|wagons]] which are only used by the humans and dwarves. Wagons can carry much more than the smaller mules, but they are larger and can not navigate tight and twisty paths. Wagons need a path that is at least three tiles wide, and that is unobstructed by trees, boulders, doors, ect...&lt;br /&gt;
&lt;br /&gt;
You can see what tiles are wagon accessible by hitting the {{k|D}} key once you have built a depot.&lt;br /&gt;
&lt;br /&gt;
=== Trader Mood ===&lt;br /&gt;
If your trader has Novice or better [[Judge of Intent]] skill, there will be a line added below the traders' dialogue describing the traders' attitude. Their attitude rises with successful trades (especially if they get lots of profit) and falls when you propose deals they don't like. &lt;br /&gt;
&lt;br /&gt;
* (trader) seems ecstatic with the trading&lt;br /&gt;
* (trader) seems very happy about the trading&lt;br /&gt;
* (trader) seems pleased with the trading&lt;br /&gt;
* (trader) seems willing to trade (Default, at least for humans)&lt;br /&gt;
* (trader) seems to be rapidly losing patience&lt;br /&gt;
* (trader) is not going to take much more of this&lt;br /&gt;
* (trader) is unwilling to trade&lt;br /&gt;
&lt;br /&gt;
Happy merchants seem more likely to take your deals, although the exact mechanics of trader happiness and negotiation are unknown. If the traders reach the lowest level (unwilling to trade) as a result of repeated failed deals, they will immediately pack up and no further trade will be possible. Since traders who are annoyed with you are more likely to reject deals, you should tread cautiously in initial negotiations; the more times you fail to make a deal, the less happy they'll be and the less inclined they'll be to accept further deals. Skilled negotiators seem to be more likely to get traders to accept offers that include little or no profit for them, and less likely to offend traders with unsuccessful deals. &lt;br /&gt;
&lt;br /&gt;
=== Seizing Goods ===&lt;br /&gt;
When trading with Elves and Humans, it is possible to {{K|s}}eize goods from the caravan.  This will cause them to respond with the message &amp;quot;Take what you want. I can't stop you.&amp;quot; and they will leave immediately, leaving you with the seized goods. You cannot seize goods from the Dwarven caravan.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Trading&amp;diff=35835</id>
		<title>40d:Trading</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Trading&amp;diff=35835"/>
		<updated>2008-03-04T03:42:58Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Trading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Trading in Dwarf Fortress first occurs in the first autumn of building your fort, with the arrival of the [[dwarf|Dwarven]] [[caravan]]. Trading is a good way to acquire resources that are not available or are rare in the local area. It also improves your freedom of choice on what item to [[embark]] with because you can always trade for them later, e.g. dropping the expensive [[anvil]] to bring 500 extra units of booze. New players can look [[Your_first_fortress#Trading|here]] for advice on trading with your first caravan.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
Building a [[trade depot]] will allow you the opportunity to trade with caravans that arrive at your [[fortress]].  Trade depots require three [[stone]]s or [[log]]s to build, and the [[architecture]] [[skill]] along with either [[masonry]] or [[carpentry]].&lt;br /&gt;
&lt;br /&gt;
== Using Trade Depot ==&lt;br /&gt;
Hit {{key|q}} to bring up the building interaction menu, and then move your cursor over the trade depot to gain access to the following options. &lt;br /&gt;
&lt;br /&gt;
=== Move Goods to/from Depot ===&lt;br /&gt;
When a caravan arrives, it is time to move local goods ready for trade. Selecting items in the categorized view will mark them [PENDING] and they will be moved to the depot. (Note: any dwarf can move goods to depot, even if his hauling labors are disabled) When ready for trade, an item is marked [TRADE]. The depot can be emptied in the same manner.&lt;br /&gt;
&lt;br /&gt;
=== Trader requested at depot/No trader needed at depot ===&lt;br /&gt;
Hit {{key|r}} to toggle between these two options. If a trader is requested then someone will come to the depot on behalf of your dwarves to trade with the the merchants. Who exactly comes is dependent on the option you have selected for who is allowed to trade (see below).&lt;br /&gt;
&lt;br /&gt;
=== Only broker may trade/Anyone may trade ===&lt;br /&gt;
A [[broker]] is not required but is preferable for getting better deals. To toggle whether anyone can trade or just the broker is done with {{K|b}}. &lt;br /&gt;
{{K|r}}equesting a trader at the trade depot will queue a job on the traders list. A higher level of brokerage will give you greater returns, so if you're dependent on trade it's recommended to keep one dwarf as broker and level up his appraisal skill as high as possible. It is advised to deactivate all labors from the broker during trading (including &amp;quot;all dwarves harvest&amp;quot; in the options menu). However, eating drinking and sleeping are always at a higher priority than trading.&lt;br /&gt;
&lt;br /&gt;
== Trading ==&lt;br /&gt;
When merchants have arrived and unloaded their goods, it's time to trade.  Access trading view by selecting building options for the Trade Depot with {{key|q}} and then pressing {{key|t}}.  ({{key|t}}rade will be disabled until a trader from your fortress arrives.)  In the trading view, merchants' goods are displayed on the left and player's on the right. Items from each side are selected for trade with {{key|enter}} and then traded with {{key|t}}.&lt;br /&gt;
&lt;br /&gt;
There are two factors to consider in making a balanced trade: weight and [[item value]]. Caravans have weight limits and the allowed additional weight is shown in the bottom right corner. The merchants must also profit from the deal. The amount of profit depends on the broker skill of the trader. It is strongly advised to use an allocated broker to do the transaction with the merchants. Having one person being a broker means that only he gains experience in [[social skills]] from successful trades, thus being able to negotiate more favorable deals in the future.&lt;br /&gt;
&lt;br /&gt;
=== Caravans ===&lt;br /&gt;
Each of the three friendly races will send a caravan once per year, however they will not arrive unless your region is marked as accessible by them. Dwarves will always arrive regardless of location, however.  Since trading caravans arrive from the direction of their civilization, it is currently preferable to build the depot as close to the middle of the map as possible if the civilizations are in different directions.  This reduces the chance of the caravan traveling across the whole map then turning around because it is time to leave.&lt;br /&gt;
&lt;br /&gt;
Dwarves and humans also send a [[liaison]] with whom the local broker has a meeting. Import and export requests are made, adjusting the prices for the next year. Desired items become more valuable.&lt;br /&gt;
&lt;br /&gt;
==== Dwarves ====&lt;br /&gt;
Dwarves arrive every year in the [[Calendar|fall]], typically bringing [[food]], [[alcohol|booze]], [[leather]] and miscellaneous supplies.  They are the only caravan that can bring [[steel]] in any form, either as equipment, crafts or unworked metal bars. The caravan will have wagons 3 tiles wide that require an adequate path.&lt;br /&gt;
&lt;br /&gt;
Unlike other races, the dwarven civilization will never attack you even if their traders don't make it home.&lt;br /&gt;
&lt;br /&gt;
==== Elves ====&lt;br /&gt;
Elves send small caravans of only muskoxen or mules, no wagons, in [[Calendar|spring]], loaded with [[cloth]], [[rope]], various [[plants]], and [[wood]]en items. The may also bring some [[tame]] [[animal]]s. They are very picky about what they will accept in return.&lt;br /&gt;
&lt;br /&gt;
Elven traders do not like to be offered any dead animal or tree byproducts. Forbidden items include{{ver|0.23.130.23a}}:&lt;br /&gt;
&lt;br /&gt;
* [[Bone]], [[shell]], [[leather]], or [[chitin]] items&lt;br /&gt;
* [[Wood]]en items, and items derived from wood, such as [[charcoal]] and [[pearlash]]&lt;br /&gt;
* Clear and crystal [[glass]] (because [[pearlash]] is used in their creation)&lt;br /&gt;
* Items [[decoration|decorated]] with any of the above materials&lt;br /&gt;
* [[Obsidian]] shortswords (since they have wooden handles)&lt;br /&gt;
* [[Soap]]&lt;br /&gt;
* [[Cheese]]&lt;br /&gt;
* Any item they normally would accept that has [[Blood|blood]] on it, for instance from a slain enemy.&lt;br /&gt;
&lt;br /&gt;
[[Metal]] items are acceptable, even when [[charcoal]] is used in their production. Items made from [[silk]] are acceptable, as are all non-wooden plant-derived products. You can also transport your goods to the [[trade depot]] in a wooden [[bin]], as long as you do not try to sell the bin. Living animals are acceptable, as long as the cage or trap is not made of [[wood]].&lt;br /&gt;
&lt;br /&gt;
Although [[tower-cap]]s are giant mushrooms, they are considered trees by the elves.&lt;br /&gt;
&lt;br /&gt;
==== Humans ====&lt;br /&gt;
The first human caravan will arrive in the summer of your second year, provided a human [[civilization]] has access to your site. The caravan will have wagons 3 tiles wide like the dwarven one, but which some players believe to be especially slow or having trouble finding a route, although there is no evidence of this in the current version(38a). &lt;br /&gt;
&lt;br /&gt;
There must be a path at least three tiles wide from the edge of the map where humans enter. You do not need to have an actual road, but you will usually need to {{K|d}}esignate {{K|s}}moothing of some boulders (outside) and {{K|t}}ree-cutting to clear the path. Use {{K|D}} to verify that there is a wagon accessible path to the depot. If there is not a wide enough path then the humans will only send pack mules greatly reducing the amount of stuff you can trade for.&lt;br /&gt;
&lt;br /&gt;
If the caravan must take a very long path to reach the depot, this is reduced from the time to trade. If the time is up while they are still moving, they will turn back and leave. To prevent this make it so that the depot is only accessible from one spot on the map which is close to the depot.&lt;br /&gt;
&lt;br /&gt;
Humans may also send a Representative, and having more skilled trading nobles will upgrade him to a Merchant Baron or Merchant Prince, who have larger caravans. The Representative will set up [[Trade agreement]]s with your trading noble, which lets you order the goods you want the next caravan to bring. Humans value weapons, and will usually negotiate to pay more for them in their trade agreements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pack Creatures ===&lt;br /&gt;
Races that trade will use pack creatures to carry their goods. Mules are the most common ones chosen but their are a number of other options. The best creatures are wagons which are only used by the humans and dwarves. Wagons can carry much more than the smaller mules, but they are larger and can not navigate tight and twisty paths. Wagons need a path that is at least three tiles wide, and that is unobstructed by trees, boulders, doors, ect...&lt;br /&gt;
&lt;br /&gt;
You can see what tiles are wagon accessible by hitting the {{k|D}} key once you have built a depot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Trader Mood ===&lt;br /&gt;
If your trader has Novice or better [[Judge of Intent]] skill, there will be a line added below the traders' dialogue describing the traders' attitude. Their attitude rises with successful trades (especially if they get lots of profit) and falls when you propose deals they don't like. &lt;br /&gt;
&lt;br /&gt;
* (trader) seems ecstatic with the trading&lt;br /&gt;
* (trader) seems very happy about the trading&lt;br /&gt;
* (trader) seems pleased with the trading&lt;br /&gt;
* (trader) seems willing to trade (Default, at least for humans)&lt;br /&gt;
* (trader) seems to be rapidly losing patience&lt;br /&gt;
* (trader) is not going to take much more of this&lt;br /&gt;
* (trader) is unwilling to trade&lt;br /&gt;
&lt;br /&gt;
Happy merchants seem more likely to take your deals, although the exact mechanics of trader happiness and negotiation are unknown. If the traders reach the lowest level (unwilling to trade) as a result of repeated failed deals, they will immediately pack up and no further trade will be possible. Since traders who are annoyed with you are more likely to reject deals, you should tread cautiously in initial negotiations; the more times you fail to make a deal, the less happy they'll be and the less inclined they'll be to accept further deals. Skilled negotiators seem to be more likely to get traders to accept offers that include little or no profit for them, and less likely to offend traders with unsuccessful deals. &lt;br /&gt;
&lt;br /&gt;
=== Seizing Goods ===&lt;br /&gt;
When trading with Elves and Humans, it is possible to {{K|s}}eize goods from the caravan.  This will cause them to respond with the message &amp;quot;Take what you want. I can't stop you.&amp;quot; and they will leave immediately, leaving you with the seized goods. You cannot seize goods from the Dwarven caravan.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Swimmer&amp;diff=33814</id>
		<title>40d Talk:Swimmer</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Swimmer&amp;diff=33814"/>
		<updated>2008-03-02T23:28:33Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can you or can a dwarf not swim to the surface the answer says both. Maybe it means in adventurer mode? {{unsigned|Jikor}}&lt;br /&gt;
: It was thought to be impossible, but then someone recorded a movie of a dwarf doing it, so...--[[User:SL|SL]] 20:38, 3 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Are we sure that dwarves drown at the same rate with heavy or light equipment if they have swimming skill? Or is it just ones that have no skill?--[[User:SL|SL]] 20:38, 3 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
What are the exact requirements to build a drowning trap. I built a large outlook lake I could floor/empty. After luring some goblins into the area and filling it all to 7/7 the only goblin to drown was the one which stood directly under the area where the water entered from above. It seems that they will only drown if they are in 7/7 water and there is at least 1/7 water above them. Any confirmation/additions welcomed. [[User:Yvain|Yvain]] 16:49, 2 March 2008 (EST)&lt;br /&gt;
:If there is a roof above them they drown in 7/7 otherwise they can tread water, and keep their heads up to breath. --[[User:Ikkonoishi|Ikkonoishi]] 18:28, 2 March 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Melt_item&amp;diff=35780</id>
		<title>40d Talk:Melt item</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Melt_item&amp;diff=35780"/>
		<updated>2008-03-01T05:25:42Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How material efficient is melting things down? [[User:Risim|Risim]] 23:54, 25 January 2008 (EST)&lt;br /&gt;
:It's not lossless, that's for sure. I could be quite wrong, but something makes me want to say it's around 3:1, based on bars required to create the items. I think overages are lost, but that's just a casual observation. It's really the only way to get certain metals in larger quantities though, assuming importing the bars or ore alone aren't good enough for your means. (Most commonly run into when trying to get certain metals from the mountainhomes before you're ready to bring in humans) --[[User:N9103|Edward]] 06:32, 26 January 2008 (EST)&lt;br /&gt;
:: Does smelting need coal?--[[User:Koltom|Koltom]] 23:53, 29 February 2008 (EST)&lt;br /&gt;
:::It needs fuel. So coal or magma. --[[User:Ikkonoishi|Ikkonoishi]] 00:25, 1 March 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Waterskin&amp;diff=34475</id>
		<title>40d Talk:Waterskin</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Waterskin&amp;diff=34475"/>
		<updated>2008-02-28T03:53:40Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Civilians==&lt;br /&gt;
Is it possible to get civilians to carry waterskins? I think I'm about to wipe out my entire clan due to all the water being frozen, while they were activated to chase down a kobold (who they didn't manage to catch anyway) they all went and picked up waterskins then they put them down when I deactivated them... now they are dying of thirst since the brook and lakes are all frozen... :( [[User:GarrieIrons|GarrieIrons]] 07:04, 10 January 2008 (EST)&lt;br /&gt;
:I do not think it is possible. Only military dwarves can carry a waterskin. You should have planned ahead and built yourself a well or made more booze... ;) --[[User:Eagle of Fire|Eagle of Fire]] 07:35, 10 January 2008 (EST)&lt;br /&gt;
:Really what true Dwarf actually drinks water? [[User:Jikor|Jikor]] 07:52, 10 January 2008 (EST)&lt;br /&gt;
::As unbeleivable as it sound, some outposts seem to have problem producing enough booze in the first few years to allow everyone to drink true to dwarven tradition. Where is the world going, I ask you? ;) --[[User:Eagle of Fire|Eagle of Fire]] 10:25, 10 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Does quality of the leather/leatherworker affect a waterskin in any way?&lt;br /&gt;
&amp;lt;small&amp;gt;—Preceding [[template:unsigned|unsigned]] comment added by [[User:Shadow archmagi|Shadow archmagi]] ([[User talk:Shadow archmagi|talk]]•[[Special:Contributions/Shadow archmagi|contribs]]) {{{2|}}}&amp;lt;/small&amp;gt;&lt;br /&gt;
:Leather has no quality but the quality of the leatherwork will make it more valuable.--[[User:Ikkonoishi|Ikkonoishi]] 22:53, 27 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Starting_builds&amp;diff=9527</id>
		<title>40d:Starting builds</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Starting_builds&amp;diff=9527"/>
		<updated>2008-02-21T20:24:42Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Combining Skills */  Miner uses mining to fight with pick.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Starting builds''' are different strategies that you can choose when starting a new game in [[fortress mode]]. The skills and items which you assign to your dwarves will have a large impact on life in your new fortress, especially in its first year.&lt;br /&gt;
&lt;br /&gt;
This page gives advice on some of the many gameplay elements which influence the flow of your game based on your goals. These include: choosing a ''fortress site'', the ''starting build'' itself - defined by who and what to take with you - as well as ''challenge builds'' aimed at providing new or unusual challenges to advanced players.&lt;br /&gt;
&lt;br /&gt;
* Your First Fortress?&lt;br /&gt;
Note: If you are a new player looking for a solid basis to survive the first couple of months or years, check out [[Your_first_fortress|this guide]]. It includes a basic starting build similar to the one discussed below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Components of a Starting Build ==&lt;br /&gt;
&lt;br /&gt;
=== Skills ===&lt;br /&gt;
&lt;br /&gt;
Each dwarf can learn any of a large number of [[skills]]. &lt;br /&gt;
&lt;br /&gt;
* Dwarves with little experience in a skill will work slowly and ineffectively.&lt;br /&gt;
&lt;br /&gt;
* Inexperienced [[farming|farmers]] and [[herbalist|herbalists]], for example, will harvest stacks of only one or two items or even nothing, wasting the seed/shrub. This results in a small overall harvest which takes many [[container#container|containers]] to store in, less effective food preparation in the kitchen, and more space needed for [[stockpiles]].&lt;br /&gt;
&lt;br /&gt;
* Inexperienced [[Miner|miners]] work very slowly. Mining can be levelled up quite quickly by mining [[soil#soil|soil]], but taking two dwarves with at least some points in mining is recommended in many cases.&lt;br /&gt;
&lt;br /&gt;
* Dwarves improve their skills on a learning-by-doing-basis. Dwarves who have specific labors enabled will, after a while, progress to Dabbling users of their skill, and continue to learn from performing that labor.&lt;br /&gt;
&lt;br /&gt;
* Inexperienced dwarves who create items in nearly all [[workshops#workshops|workshops]] will create low [[quality#quality|quality]] goods, and take a long time doing so. Skilled dwarves work quickly and produce high-quality items.&lt;br /&gt;
&lt;br /&gt;
* [[Quality]] is a central concept in the game - it affects [[food]] and [[alcohol]],  almost anything you will have your dwarves create in the game: [[trading]] goods, [[barrel|barrels]], [[clothing]], [[armor]], [[furniture]], [[weapons]], and so on. Quality also very much affects the worth of an item while [[trading]].&lt;br /&gt;
&lt;br /&gt;
Overall, 'Levelling up' the dwarves' skills quickly is a good game goal to set. Doing so [[losing|may]] result in your dwarves efficiently creating a magnificent fortress filled to the brim with valuable items and furniture.&lt;br /&gt;
&lt;br /&gt;
Using and seeing high-quality items gives dwarves happy [[thoughts]]. This tends to increase a fortress' [[tantrum|longevity]].&lt;br /&gt;
&lt;br /&gt;
=== Which do I need, really? ===&lt;br /&gt;
&lt;br /&gt;
Most builds recommend:&lt;br /&gt;
&lt;br /&gt;
* 2 miners&lt;br /&gt;
* 2 farmers&lt;br /&gt;
* mason&lt;br /&gt;
* mechanic&lt;br /&gt;
* carpenter&lt;br /&gt;
* woodcutter&lt;br /&gt;
* brewer&lt;br /&gt;
* cook&lt;br /&gt;
* herbalist&lt;br /&gt;
* plus some extra skills - to create trade goods, or build up a dwarven glass or steel industry.&lt;br /&gt;
&lt;br /&gt;
==== Combining Skills ====&lt;br /&gt;
Some [[skills]] are highly time-consuming, and working at different jobs levels up specific [[attribute]]s. One could level up a miner until hes becomes mighty and ultra-tough - and then turn him into a soldier. If you plan on doing so, it may not be a good idea to give this guy another critical job such as Trader and Record Keeper, but maybe military skills depending on how soon you intend to have [[soldier]]s.&lt;br /&gt;
&lt;br /&gt;
Since tasks will take place in specific areas, it makes sense to combine tasks into dwarves who will take care of a specific industry - so Combine (indoor) farming with cooking (not mining), for example.&lt;br /&gt;
&lt;br /&gt;
Most builds recommend combinations such as:&lt;br /&gt;
&lt;br /&gt;
* Woodcutter/Carpenter. Add Axedwarf for added security.&lt;br /&gt;
* Mason. Apparently, in most many fortresses, the Mason is a very busy man indeed. Recommendations include 'spare miner', 'rarely needed skills' or skills which are not very time-consuming.&lt;br /&gt;
* Farmer/Cook, Farmer/Brewer. Basic two-person food team.&lt;br /&gt;
* Farmer/Herbalist, Farmer/Brewer/Cook. One bold dwarf to farm and venture outside looking for wild plants, the other to keep busy in the still, kitchen, and indoor farms.&lt;br /&gt;
* Noble/Boss: Novice [[Judge of intent]]/Novice [[Appraiser]]/Novice [[Organizer]]/Novice [[Record keeper]]. Combine this with a single time-intensive task such as Masonry or Mining, and optionally turn off all hauling tasks right at the start of the game. This results in an all-around Boss and Trader (who can usually be coerced into going to the trade depot and hold meetings just by turning the main profession off).&lt;br /&gt;
* Craftsdwarf, depending on your strategy - e.g. [[glass]] maker, weapon smith or armor smith, sometimes combined with related tasks from that industry (furnace operating, wood burning). Typically an item hauler in the initial months of your fortress, this dwarf may become one of your most valuable dwarves later.&lt;br /&gt;
&lt;br /&gt;
=== Items ===&lt;br /&gt;
&lt;br /&gt;
Some basics are recommended for all builds. You definitely need to bring one [[pick]] for each [[miner]], some [[food]], and some [[alcohol]]. Everything else depends on your strategy and on how tough or leisurely a challenge you want the game to be.&lt;br /&gt;
&lt;br /&gt;
Note: Many builds recommend that you bring many different cheap foods, with quantities ending in a &amp;quot;1&amp;quot; or a &amp;quot;6&amp;quot;. This is to maximize the number of [[barrels]] you start with, since most foodstuffs fit five to a barrel. More barrels will let you build a larger stockpile for your first winter and conserves the [[wood]] you harvest in the early game for beds and other necessities.&lt;br /&gt;
&lt;br /&gt;
== Fortress Sites ==&lt;br /&gt;
Each fortress site offers particular challenges and opportunities. The starting builds below can and should be adjusted depending on the specific vision you have of your fortress ... and what it will take to stay [[losing|alive]] where you're going!&lt;br /&gt;
&lt;br /&gt;
=== Mountains ===&lt;br /&gt;
Most dwarven fortresses are founded along the edges of mountain ranges on sites that combine abundant ore and access to the outside world.  Magma and rare metals lure settlers here, but [[goblins]], [[chasm]] dwellers, and even [[giant eagle]]s are potent threats.&lt;br /&gt;
&lt;br /&gt;
Trees and plants do not grow at high elevations, so you'll want to include non-mountainous areas to obtain lumber and food - or, failing this, to pack a lot of extra food and logs.&lt;br /&gt;
&lt;br /&gt;
Other consideration is elevation range.  The game allows access up to 15 levels above the highest peak and 15 levels below the deepest valley, so steeper slopes means much more diggable area.  The downside is lag; more levels also means more CPU burden (this can cripple a fortress - be careful).&lt;br /&gt;
&lt;br /&gt;
Be sure to include a stream on the map; running water is (almost) essential for any fortress.  In Cold and Freezing climates  streams and lakes will often be frozen year-round and your dwarves may quickly die of exposure.  Choose Temperate or tropical zones for an easier game.&lt;br /&gt;
&lt;br /&gt;
=== Wooded Plains (with trees and plants) ===&lt;br /&gt;
Flatlands with at least some trees and gatherable plants can also make for highly successful fortresses.  &lt;br /&gt;
&lt;br /&gt;
Advantages over mountain zones include abundant trees and plants, guaranteed agriculture both on the surface and underground, fewer hostile fortresses and caves, and (unless frozen) more abundant water.  There are even (rare) magma vents.&lt;br /&gt;
&lt;br /&gt;
The greatest disadvantage is a lack of rock to mine.  Fewer elevations means fewer exploitable z-levels.  The first few levels below the surface are almost always soil, peat, loam, clay, or sand, none of which offers much (or any) gems, ore, or building material.  An [[aquifer]], if present, may bar all access to stone until you freeze, pump out, or find a way through the water.&lt;br /&gt;
&lt;br /&gt;
=== Desert, Glaciers, and Barren (few or no trees and plants) ===&lt;br /&gt;
Treeless (or near-treeless) biomes are challenging sites for a fortress:  you get most of the disadvantages of a flatland site without having access to nearly as many trees and plants.  However, near-lifeless zones such as glaciers are wonderful for those with slower machines, as there's little to burden the CPU but your dwarves and livestock.  Deserts and barren areas often have sand; with a sufficient source of energy (preferably magma), you can build almost anything out of unlimited glass.&lt;br /&gt;
&lt;br /&gt;
=== Ocean Side ===&lt;br /&gt;
An interesting combination of a few of the above locations, beaches are often a mix of ease intermingled with bouts of extreme difficulty. Minerals and trees are often abundant, as well as farmland and sand, but there is often no drinking water unless the biome has a river.&lt;br /&gt;
There is also a likelihood that the settlement will fall between two biomes, potentially hazardous if the player expects a peaceful oceanside meadow, without realizing the ocean is full of amphibious zombie whales.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Build ==&lt;br /&gt;
&lt;br /&gt;
The first order of business is simply to survive.  Here is a simple, somewhat paranoid, way to do this.&lt;br /&gt;
&lt;br /&gt;
==== Dwarves &amp;amp; skills ====&lt;br /&gt;
On most (but not all) sites, you'll want to get food, brew drink, mine, make wood and stone items, and trade.  Whatever additional skills you purchase, be sure to cover these.  If you need more points to buy skills (and it's a good idea to buy lots of skills), remove a battle axe.&lt;br /&gt;
&lt;br /&gt;
* 2 miners&lt;br /&gt;
* 1 mason/mechanic&lt;br /&gt;
* 1 carpenter/woodcutter&lt;br /&gt;
* 1 grower/brewer/cook.  He's responsible for making prepared meals and drinks.&lt;br /&gt;
* either a herbalist/grower, or a fisherdwarf, or a hunter.  The first gets you lots of brewable plants on maps with plants, the second gets you food and bones on maps with water (in maps with dangerous fish such as [[carp]] fishing is suicidal so be careful), and the third gets you meat and bones on maps with animals.  Herbalism is usually the safest of the three.&lt;br /&gt;
* 1 spare dwarf.  You might make him the leader and broker; if so, give him at least novice [[appraiser]] skill so you know what stuff is worth.  You might make him responsible for making trade goods, or turn him into your first soldier, or you might just give him some skills you want to experiment with.&lt;br /&gt;
&lt;br /&gt;
==== Items ====&lt;br /&gt;
You want picks, food, and drink.  Everything else is optional.  The suggestions below assume you spent the maximum possible on skills.  We'll pack lots just to be safe.&lt;br /&gt;
&lt;br /&gt;
* 2 [[pick]]s - 1 per miner&lt;br /&gt;
* 1 [[battle axe]] - so you can chop wood&lt;br /&gt;
* 1 [[Anvil]] - so you can make weapons, trade crafts, and such&lt;br /&gt;
* 20 units of drink:  [[dwarven ale]], [[dwarven beer]], and [[dwarven rum]] are all good.  [[dwarven wine]] you'll get through brewing.&lt;br /&gt;
* 30 [[plump helmets]] - They're good to eat and produce 5 units of booze for each one brewed at a [[still]].&lt;br /&gt;
* 5 turtles - they get you bones and shells&lt;br /&gt;
* 20 [[plump helmet spawn]] - for planting.&lt;br /&gt;
* 2 dogs - to guard against thieves and help kill intruders.&lt;br /&gt;
* (optional) other kinds of seeds and rock nuts&lt;br /&gt;
* (optional) 1 of many different kinds of meats for extra barrels&lt;br /&gt;
* (optional) some cheap (5 point) leather to make quivers and bags and such&lt;br /&gt;
&lt;br /&gt;
If the map is treeless, remove the battle axe and spend the freed points on more plump helmets and logs (you're going to run out however many you bring...).&lt;br /&gt;
&lt;br /&gt;
If you're willing to wait a year or two to do any metalworking and you're sure traders will come, remove the anvil and spend the freed points on such things as skills, food and drink, wood, leather, raw materials, or weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Rapid Expansion''' ===&lt;br /&gt;
A plan for quick growth followed up by heavy immigration works well both as an early game strategy and as an assist for a late game foundation.  Starting off with the anvil is also much less troublesome if you drop both battleaxes and make your own picks too.  Don't worry though, you'll be digging out cavernous villas in no time, and cheaply too, with this build.  Food and stone will be in abundance and you'll have excellent worker time utilization. And due to the early metalworking and distributed skills your dwarves have, soon you'll have powerful steel-armored warrior workers that'll form the bedrock of a city guard.&lt;br /&gt;
&lt;br /&gt;
Always build a wood burning furnace, Smelter and Metalsmith shop first, and take apart that wagon for extra logs. Either burn those logs into charcoal, or smelt coal into fuel, and then make your tools.&lt;br /&gt;
&lt;br /&gt;
==== Dwarves &amp;amp; skills ====&lt;br /&gt;
By dropping both picks and axes you'll be able to afford a lot of useful skills, and you'll be able to get a metalsmithing shop running within the first seconds of your game, so no precious time is lost. Your Dwarves are divided largely into two groups, your laborers (Butcher, Baker and candle--er, Brewer) and your craftsdwarves.  Essentially a Blue collar/White collar divide to set up a nice class war later. Also, by having such wide assortments of skills, your dwarves will get lots of attribute bonuses and become extremely capable fighters by the time you need to worry about that.&lt;br /&gt;
&lt;br /&gt;
Laborers are given mining and growing skills with some extra to cover food production.  The Ranger is the oddball, but will spend his early days gathering plants and hauling items, so fits here. Your first order of business with them is to dig that top later out quickly and get some farms started and fully stocked.  Then, as they grow, you can go back to digging out the rest of the base.&lt;br /&gt;
&lt;br /&gt;
* The Baker: +5 Mining, +2 Growing, +3 Cooking.&lt;br /&gt;
* The Brewer: +5 Mining,  +2 Growing, +3 Brewing.&lt;br /&gt;
* The Butcher: +5 Mining, +2 Growing, +1 Butchering, +1 Tanning, +1 Leatherworking.  Make some bags for sand and the Quarry Bushes and a butcher's shop before the Ranger starts his hunts.&lt;br /&gt;
&lt;br /&gt;
* The Ranger: +3 Woodcutter, +3 Carpenter, +1 Herbalist, +1 Ambusher, +2 Axedwarf. Be sure to assign a war dog or two to this guy, since he's the only one who needs to go outside. Once he gets an axe, he'll also be a competent fighter and hunter and will start with armor due to +1 ambusher.&lt;br /&gt;
&lt;br /&gt;
Craftsdwarves focus on running shops, building trade goods, and making the outpost as profitable as possible in the first year, to attract additional immigrants that can be thrown into the mines or toil in the mushroom fields. They should have very broad skill bases, but the actual choice of leader is up to you.&lt;br /&gt;
&lt;br /&gt;
* The Smithy: +1 Weaponsmith, Armorsmith, Metalsmith, Furnace Operator, Wood Burner, Stone Crafting, Bone Carving. This guy will cover all of your rarely needed creation skills, and make your picks and axes. After this he usually ends up making scads of stone crafts for sale. Glassworking, gem cutting, and potash making are good as well, and even with novice in all areas you'll build fast enough for these rare items.&lt;br /&gt;
* The Foreman: +3 Building Design, +3 Mechanic, +1 Judge of Intent, Appraiser, Organizer, Record Keeper.  Building design and mechanical work is extremely quick work, so instead give him nobleman skills to spend the rest of his work hours on. These are extremely useful in the long-term.&lt;br /&gt;
* The Freemason: +5 Masonry. It seems a bit silly to give him just one primary skill,  but Masons are usually working 24 hours a day on all variety of stone doors, chairs and tables.&lt;br /&gt;
&lt;br /&gt;
There's a variation if you want a more 'compact' design of those last two:&lt;br /&gt;
&lt;br /&gt;
* The Construction Worker: +5 Masonry, +3 Mechanic, +2 Building Design.&lt;br /&gt;
* The Lazy Boss: +3 Fishing, +3 Fish Cleaning, +1 Judge of Intent, Appraiser, Organizer, Record Keeper.&lt;br /&gt;
&lt;br /&gt;
This is not as useful or safe, as Fishing is a time-intensive skill, so it takes him away from his record keeping job for extended periods and a Carp might kill him.  It also forces your Mason to get behind on Queues every time someone needs a trap build or a workshop set up.  Halting book-keeping doesn't slow down any production, so the original stat-spread can work out better.&lt;br /&gt;
&lt;br /&gt;
==== Items ====&lt;br /&gt;
The only thing you need is your anvil, a few stones and bars of metal, everything else is optional. A point of contention is the Iron Axe you'll be making, as some may prefer it to be steel. Steel Bars cost 150, which is three times the cost of iron, and only provide a small damage bonus and no chopping speed bonus. If you start in an area with [[Limestone]] or [[Chalk]] you'll soon be able to smelt Steel with your functioning metalsmith shop anyway.  If you're on a map without trees, well, I suppose you don't need the axe at all.  But in that case you'd be better off taking the picks, dropping the anvil, and buying a few hundred logs.&lt;br /&gt;
&lt;br /&gt;
* 1 [[Anvil]] - this is what makes it all possible, and helps you get started faster.&lt;br /&gt;
* 3 [[Copper|Copper bars]] - these cost 10 each, and will be your picks. Three for the price of one, literally.&lt;br /&gt;
* 1 [[Iron|Iron bar]] - this costs 50, and will be your axe.  The 40 extra is worth it for the damage increase you get over copper or bronze.&lt;br /&gt;
* 2 [[Bituminous coal]] or [[Log]]s - you can smelt two coal into 4 fuel for the cost of 2 logs. Inexpensive at 3 each, one can afford to bring more.&lt;br /&gt;
* 4 cheap stone - any sort works, such as inexpensive [[granite]]. You'll use these to make your first three buildings.&lt;br /&gt;
&lt;br /&gt;
That's what you need to get started, but this is a guide for the items on your list. This build does not require or recommend bringing plump helmets due to their cost. Instead, encourage your dwarves to eat the turtles and meat out of the barrels and cook wine biscuits.  Your farms will be running amazingly quickly anyway, and for half the cost of a single helmet you can make feed several dwarves on baked beer. You'll get enough seeds from brewing the [[plump helmets]] soon enough.&lt;br /&gt;
&lt;br /&gt;
* 26 of [[Dwarven wine|Wine]], [[Dwarven rum|Rum]], [[Dwarven beer|Beer]] and [[Dwarven ale|Ale]]&lt;br /&gt;
* 36 of [[rock nut]]s, [[Plump helmet spawn]] and [[Pig tail]] [[seeds]]&lt;br /&gt;
* 11 [[turtle]]s - these hilarious little dudes are way better than the meat you usually set out with, what with all the bones they leave. I use these as 'before farming' rations and build up a good supply of bone bolts. Shells are also valuable to have around.&lt;br /&gt;
* 1 of each other 2 cost meat, for extra empty barrels. Barrels cost 10, so getting any food below that can save you money.&lt;br /&gt;
* 2 [[Dogs]] - preferably war dogs or hunting dogs. Assign these to your Ranger. Bring a pair so you can make more dogs.&lt;br /&gt;
* 1 [[Horse]] - they're relatively inexpensive and will help you begin breeding horses faster, as you are nearly always getting a horse with your wagon. Livestock are a valuable commodity for meat and bones, and you want as many of these as possible 'emergency rations' on hand.&lt;br /&gt;
* 4 [[Leather]] - you need leather bags to process [[quarry bush]]es and to gather sand for glass. Four will be enough, and you can get it for only 20.&lt;br /&gt;
&lt;br /&gt;
If you do it exactly as written, you will end up with a few points left over. Grab some extra food or upgrade one of your copper bars to an actual copper pick, if you want a faster start. These foodstuffs will last a very long time if managed properly, so get your farms going and start preparing for next year now.&lt;br /&gt;
&lt;br /&gt;
=== Metalbashing/Glassworking ===&lt;br /&gt;
Heavy metalbashing and glassworking requires a site with 1) abundant fuel and 2) raw materials.  Magma is ideal but large coal seams or a forest will also suffice.  A site with either limestone or chalk means nearly unlimited steel.  Any site with &amp;quot;sand&amp;quot; (not &amp;quot;loamy sand&amp;quot; or the like) will permit glassworking.  Failing these, any place with lots of rock, trees, and preferably sand will work fine.  Your biggest choice when setting up is whether to optimize for a fast start or long-term success.&lt;br /&gt;
&lt;br /&gt;
==== Dwarves &amp;amp; Skills ====&lt;br /&gt;
Unless you're trying a low-skills challenge, each dwarf should get the maximum possible number (currently 10) of skill boosts; remove a battle axe to free up needed points.  Individual preferences can be mighty handy; if you have a dwarf who likes steel, clear glass, crossbows, siege engine parts, or something else equally interesting, he's an ideal candidate for matching skills.&lt;br /&gt;
&lt;br /&gt;
* A Carpenter/Leader:  Points into Carpenter, Wood Cutter, and a bunch of nobles' skills, including at least novice Negotiator and Appraiser.  This dwarf should have good inter-personal thoughts/preferences.&lt;br /&gt;
* A Mason/Mechanic:  Points into Mason, Building Designer, and Mechanic.  Adding more points to Mason gets construction materials and furniture faster.  More points to Mechanic allows faster trap-setting.  Adding Appraiser and/or Negotiator skills gives you a back-up leader or broker.  A boost to Wrestling gets you better on-call defense.&lt;br /&gt;
* A Farmer/Herbalist (assumes the site has at least some plants):  This dwarf will gather the plant material you need to brew drinks.  Points into Grower and Herbalist.  Leftover skill raises should be invested in a valuable, hard to raise trade skill such as [[Blacksmith]], [[Metal_crafter|Metal Crafter]], or perhaps [[Glassmaker]] or [[Clothier]].&lt;br /&gt;
* A Farmer/Brewer/Cook:  This dwarf is responsible for keeping your community fed and liquored up.  Points into Grower, Brewer, and (optionally) Cook.  Leftover skill raises should be invested as for the Farmer/Herbalist.&lt;br /&gt;
* A Craftsdwarf:  Points into whatever hard-to-raise skills you most want.  [[Armorsmith]], [[Weaponsmith]], [[Bowyer]], [[Glassmaker]], and even [[Siege_engineer|Siege Engineer]], [[Clothier]], or [[Gem_setter|Gem Setter]] can all be good choices depending on your setup.  If you plan to bash metal, remember to spend a few points on Furnace Operator and (if needed) Wood Burning.&lt;br /&gt;
* 2 Miners/Soldiers:  Points into both mining and military skills.  The miners first get legendary and then become extremely powerful fighters.  Remember that it's much easier to increase Mining skill than most of the military skills (especially Armor User), but also that you'll want capable miners immediately.&lt;br /&gt;
&lt;br /&gt;
With this setup, you have several ways to make the trade goods you'll need to buy what you lack.  Metal goblets, stone mugs, handwear, footwear, mechanisms, bone or wood crossbows, prepared meals, or bone and shell crafts are all solid choices.&lt;br /&gt;
&lt;br /&gt;
Food and drink for the first few seasons are assured by first cooking all the meat to free up barrels, then brewing your plump helmets (and any gathered plants) to make booze.&lt;br /&gt;
&lt;br /&gt;
==== Items (all starts) ====&lt;br /&gt;
* 2 [[pick]]s&lt;br /&gt;
* 6 or 11 of each of [[dwarven ale]], [[dwarven beer]], and [[dwarven rum]].  With abundant brewable plants and lots of wood you don't actually need any starting booze, but it's nice to have a backup.&lt;br /&gt;
* at least 11 [[plump helmet]]s.  Bring a lot more if you anticipate problems with gathering brewable plants.&lt;br /&gt;
* at least 6 [[turtle]]s.  Not only are they good eating, they ensure you have the [[shell]]s and [[bone]]s needed to satisfy [[strange mood]]s.&lt;br /&gt;
* 1 of every kind of meat that costs 2 or 4, as each type of meat will be packed in its own free barrel and cooking the meat will release that barrel for use.  If you don't like this feature, bring more turtles or plump helmets instead.&lt;br /&gt;
* Unless the map is glacial, or you intend only outdoor agriculture, bring plenty of seeds as well.  A minimum of 15 plump helmet spawn are essential for a quick start to underground agriculture; rock nuts, sweet pod seeds, pig tail seeds, and cave wheat seeds will diversify your meals and drinks and let you set up for clothes-making.  Seeds are packed in bags.&lt;br /&gt;
* (optional) some cheap (5 point) leather to make quivers and bags and such&lt;br /&gt;
&lt;br /&gt;
===== Items (fast start) =====&lt;br /&gt;
* 1 [[Anvil]]&lt;br /&gt;
* no [[battle axe]] - you'll save points by making it yourself.&lt;br /&gt;
* only a few logs (just enough to get started with), unless the map has no trees&lt;br /&gt;
&lt;br /&gt;
See [[Make Your Own Weapons]] for more details on what to bring and how to make the battle axes you need to chop wood.&lt;br /&gt;
&lt;br /&gt;
===== Items (moderate start) =====&lt;br /&gt;
Warning:  Going without an anvil will slow you down until you get one in trade (which normally takes about 6 or 7 seasons) and might even cost you a failed [[strange mood]].&lt;br /&gt;
* no [[Anvil]]&lt;br /&gt;
* 1 [[battle axe]] (at present, steel is the only option)&lt;br /&gt;
* few or no logs, unless the map has no trees&lt;br /&gt;
* with the points you save by not bringing an anvil, buy logs, bars of base metals you expect your site to lack, and (if needed) coal (for fuel and coke) and/or dolomite (for flux).&lt;br /&gt;
&lt;br /&gt;
===== Items (slow start) =====&lt;br /&gt;
* no [[Anvil]]&lt;br /&gt;
* no [[battle axe]]s&lt;br /&gt;
* lots of logs - at least 25 on a heavily forested map.  You can survive without them, but it's a lot cheaper to buy logs to make barrels than to bring more drink.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Free Equipment ===&lt;br /&gt;
&lt;br /&gt;
Dwarves who start with the ambusher skill get some leather armor, a crossbow and some bolts for free. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Challenge Builds ===&lt;br /&gt;
If you want a challenge try some [[Challenge_Builds]].&lt;br /&gt;
&lt;br /&gt;
{{Starting FAQ}}&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Deity&amp;diff=37860</id>
		<title>40d Talk:Deity</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Deity&amp;diff=37860"/>
		<updated>2008-02-21T07:10:41Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Levels of worship */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Levels of worship==&lt;br /&gt;
Has anyone compiled a list of the levels of worship yet? I haven't found any atheists; I think I've seen dubious, normal, and zealous (iffy on the exact words) worshippers so far. --[[User:Nunix|Nunix]] 21:42, 20 February 2008 (EST)&lt;br /&gt;
:*an ardent worshipper&lt;br /&gt;
:*a faithful worshipper&lt;br /&gt;
:*a worshipper&lt;br /&gt;
:*a casual worshipper&lt;br /&gt;
:*a dubious worshipper&lt;br /&gt;
:Thats from a string extract. --[[User:Ikkonoishi|Ikkonoishi]] 02:10, 21 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Flood&amp;diff=19446</id>
		<title>40d:Flood</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Flood&amp;diff=19446"/>
		<updated>2008-02-18T01:38:35Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: Who cares about previous versions now.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There can be up to seven units of [[water]] in a tile:  1/7 is ankle-deep, while at 7/7, water fills up to the ceiling. At depths below 4/7, dwarves can walk freely, but if the depth is greater than 4/7, dwarves must swim. At 4/7, a dwarf chooses whether he or she walks or swims.{{verify}} A dwarf who can't swim can [[drowning|drown]] in a tile with too much water in it.&lt;br /&gt;
&lt;br /&gt;
A tile will flood if there is a water source adjacent to it, which can potentially lead to fatal accidents. Deliberately flooding squares can be useful for [[farming]], but can cause you to lag from all the water movement.&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Miner&amp;diff=37572</id>
		<title>40d Talk:Miner</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Miner&amp;diff=37572"/>
		<updated>2008-02-17T16:28:01Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;According to the Forum, &amp;quot;Hammerdwarf&amp;quot; is the military skill which dictates how efficient a pick wielding Miner will fight once drafted.&lt;br /&gt;
:Forum is wrong then. --[[User:Ikkonoishi|Ikkonoishi]] 11:28, 17 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13801</id>
		<title>40d:Reactions</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Reactions&amp;diff=13801"/>
		<updated>2008-02-12T06:54:20Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Anatomy of a Reaction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reactions currently control the actions of the [[smelter]] building. They consist of at least one reagent and one product. Eventually the goal is to include all buildings and their actions within the raws.&lt;br /&gt;
&lt;br /&gt;
You may have multiple reagents and products within a reaction. By including a product that replaces a consumed reagent, you could create things like tools and catalytic reactions.&lt;br /&gt;
&lt;br /&gt;
==Anatomy of a Reaction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[REACTION:BITUMINOUS_COAL_TO_COKE] &amp;lt;-- The name of the reaction. Not referenced elsewhere yet, but must be unique.&lt;br /&gt;
===NAME===&lt;br /&gt;
[NAME:make coke from bituminous coal] &amp;lt;-- What appears in the game when the necessary reagents are available.&lt;br /&gt;
===SMELTER===&lt;br /&gt;
[SMELTER] &amp;lt;-- Says the reaction is performed in the smelter. There are currently no other building tokens.&lt;br /&gt;
===REAGENT===&lt;br /&gt;
Reagents come in two main types.&lt;br /&gt;
====Type 1====&lt;br /&gt;
[REAGENT:1:STONE:NO_SUBTYPE:STONE:COAL_BITUMINOUS] &amp;lt;-- First parameter after REAGENT is the number of this item the reaction needs. The second is an [[Item Token]], for instance BAR for metal bars. The third is the subtype, if applicable. Fourth is the matgloss class - probably only PLANT, STONE, METAL, COAL, and WOOD, although there may be more lurking. The last is the name of the material in the matgloss files.&lt;br /&gt;
&lt;br /&gt;
====Type 2====&lt;br /&gt;
[REAGENT:1:REACTION_CLASS:FLUX] &amp;lt;-- Reaction_class can be replaced with METAL_ORE and possibly STONE_NAME and THREAD_METAL though those aren't used in the basic reaction types.&lt;br /&gt;
Those are special cases that identify items that use the tags like [STONE_NAME:platinum nuggets] or [THREAD_METAL:ADAMANTINE:100]  {{Verify}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE] &amp;lt;-- The end product(s) of the reaction. The first parameter might be probability of success. The rest is the same as in REAGENT.&lt;br /&gt;
===FUEL===&lt;br /&gt;
[FUEL] &amp;lt;-- Says the reaction uses fuel.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
There are some pitfalls to reaction modding, and other odd behaviour that should be noted.&lt;br /&gt;
&lt;br /&gt;
Certain item tokens, notably LEAVES and PLANT use the MATERIAL and MATGLOSS tokens in an unexpected way. Rather than interpreting these tokens in the usual way, the game takes the numerical value of the MATERIAL token (as listed on the [[Item tokens]] page, and picks the plant that is that number of places in the raws. The MATGLOSS token appears to be ignored. For example, using the token [PRODUCT:100:1:PLANT:NO_SUBTYPE:BONE:DWARF] would result in the creation of one sweet pod plant, because BONE is material token number 4, and sweet pod is the fourth plant in the matgloss_plant.txt raw file.&lt;br /&gt;
&lt;br /&gt;
Secondly, it does not seem possible to use extracts as reagents at this time. Attempting to do so will behave as if the reagent is not available, even if it is in plentiful supply. Queueing up the reaction from the manager will result in the job being cancelled, telling you that your dwarf needs some of the relevant extract. Extracts can still be created as reaction products, using the normal MATERIAL and MATGLOSS rules. However, since extracts need to go in a container (bag, barrel, or vial), any extract produced in a reaction is treated as 'spilled', and if placed in a stockpile it will be swiftly cleaned up by a dwarf.&lt;br /&gt;
&lt;br /&gt;
[[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Well&amp;diff=6345</id>
		<title>40d Talk:Well</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Well&amp;diff=6345"/>
		<updated>2008-02-12T04:11:36Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* flood? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Where can these be constructed? only near an aquifer?--[[User:Alc|Alc]] 14:16, 30 October 2007 (EDT)&lt;br /&gt;
&lt;br /&gt;
Open space probably refers to just that - a dug-out space below it that leads to water. Will have to test, though. --[[User:Tracker|Tracker]] 15:54, 30 October 2007 (EDT)&lt;br /&gt;
&lt;br /&gt;
Does it need to be a channel all the way down, on all levels below the well, or can you have normal floor below it all the way down to water?  Can you put one well directly above another well, and have them both work (if there's water below)?  --[[User:Sowelu|Sowelu]] 15:56, 30 October 2007 (EDT)&lt;br /&gt;
&lt;br /&gt;
:You don't need to have channels all the way down.  I haven't actually built any, but I don't see why it HAS to go all the way down, I just think there needs to be water there.&lt;br /&gt;
::Has it been verified that you need water down there? --[[User:Mitchy|Mitchy]] 11:22, 8 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Does anyone know if it is okay to have a well like this?&amp;lt;br /&amp;gt;&lt;br /&gt;
(side view)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_W_ &lt;br /&gt;
| |    &amp;lt;-- Empty space between water and well&lt;br /&gt;
|~|    &amp;lt;-- Water down here&lt;br /&gt;
---&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
--[[User:Delton|Delton]] 16:07, 14 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Confirmed that the above is a functional well.&lt;br /&gt;
--[[User:Delton|Delton]] 07:52, 19 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Flooding? ==&lt;br /&gt;
&lt;br /&gt;
Gah! Why do my wells keep flooding? How can I prevent this? [[User:Runspotrun|Runspotrun]] 06:08, 26 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
-- Well ... if you did it like I did [http://www.vaevictus.net/images/bucket_full.png (lol)], you lost to backpressure.  i filled from a reservoir that was taller than my well floor. (and it was attached to a brook. :) I'm working on using a floodgate and pressure plate to regulate water levels. [[User:Vaevictus|Vaevictus]] 11:30, 20 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Fair Warning ==&lt;br /&gt;
&lt;br /&gt;
Whatever you do, don't let a barracks area overlap any of your wells. Military dwarves can and will fall in if they're sparring next to it. Ah well, I didn't want that full set of bismuth bronze armor anyway.  -- [[User:Vanst|Vanst]] 08:39, 26 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Grates and Buckets ==&lt;br /&gt;
&lt;br /&gt;
Buckets don't pass through grates, in the well construct. That means a well with a grate halfway will become dry. I had 2/7 water above the grate (and 5 levels of 7/7 water under it), but it was not enough. [[User:Wlievens|Wlievens]] 07:24, 23 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
== flood? ==&lt;br /&gt;
&lt;br /&gt;
I have a &amp;lt;s&amp;gt;lake&amp;lt;/s&amp;gt;murky pool outside(reaching down one more z level). On the same level i want to construct a well inside. can i just build a chanel, thus tap the lake on the lower z level and then build a well on top of the end of the channel? or do i need one more level free space? If i can, will the water flood my outpost or will it stop on floor level? would it help if i tapped the lake one more level down? --[[User:Koltom|Koltom]] 17:12, 8 February 2008 (EST)&lt;br /&gt;
:So long as the well is at or above the level of the pond you will have no problem. --[[User:Ikkonoishi|Ikkonoishi]] 23:11, 11 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Bolt&amp;diff=25342</id>
		<title>40d Talk:Bolt</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Bolt&amp;diff=25342"/>
		<updated>2008-02-11T03:39:50Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;Metal bolts ... are considered too valuable to be wasted on practice.&amp;quot; Is that a rule enforced by the game, or the contributor's opinion? --[[User:Tocky|Tocky]] 14:13, 11 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
:  The game. [[User:Calculus|Calculus]] 14:22, 11 November 2007 (EST)&lt;br /&gt;
::Besides have you ever traded bolts or arrows? They are ☼expensive☼. --[[User:Ikkonoishi|Ikkonoishi]] 22:39, 10 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
how much wood is needed for one bolt? checking.. --[[User:Koltom|Koltom]] 21:37, 10 February 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
seems one log makes 25 bolts? anyone agree? --[[User:Koltom|Koltom]] 22:11, 10 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Wagon_(embark)&amp;diff=24556</id>
		<title>40d Talk:Wagon (embark)</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Wagon_(embark)&amp;diff=24556"/>
		<updated>2008-02-10T03:47:43Z</updated>

		<summary type="html">&lt;p&gt;Ikkonoishi: /* Multiple Wagons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Cliff climbing wagons? ==&lt;br /&gt;
&lt;br /&gt;
Alright. I'm just playing a great map with a open magma vent hell'uva lot of magnetite, when some humans arrived. I had long prepared my self for their precious wagons and had rebuilt the whole path leading to my main entrance, where my trade depots are. At the beginning they were somewhat chaotic in their pathfinding, but I was just clearing some trees to make access to my depots more direct, so I wrote that off as an oddity relating to that. However, soon I noticed that the wagons were following their old path. The thing is, I had dug out the old ramps leading to my entrance, so that the old path was no longer usable. Strangely enough it didn't bother the wagons. They simply climbed the cliffs and acted like it was totally normal for wagons to climb 90* cliffs. Freaky... At least no good were lost or damaged and those damned Fire Imps didn't put em on fire! Ugh... Hate those buggers. [[User:Noctis|Noctis]] 11:11, 9 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They're no longer very slow as of 33b. --[[User:Geofferic|Geofferic]] 01:58, 19 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Multiple Wagons ==&lt;br /&gt;
I was playing around with cheatomatic and i brought a few thousand items with me for my starting fortress. I ended up with five wagons! [[User:Diabl0658|Diabl0658]] 03:03, 8 January 2008 (EST)&lt;br /&gt;
:Yea. The game doesn't actually try to pack *EVERYTHING* in one wagon, and distributes them as humans bringing the same goods would. --[[User:N9103|Edward]] 05:15, 8 January 2008 (EST)&lt;br /&gt;
::All right - so how many rocks (which are 3 points each) do I need to bring to get a second wagon? If it is less than 30 - it's a cheap way of getting an extra 2 beasts of burden.[[User:GarrieIrons|GarrieIrons]] 20:23, 9 February 2008 (EST)&lt;br /&gt;
:::Spending all points on lead bars didn't get me a second wagon. Nor did spending it all on basalt. It is not less than 30. It is in fact more than 600. Brought 2060 seeds. Also only one wagon although thats probably because they ended up in 21 bags.&lt;br /&gt;
&lt;br /&gt;
== What, did the wheels all fall off? ==&lt;br /&gt;
&lt;br /&gt;
All right... so I can come all the way from the capital, to pretty much the centre of my map.&lt;br /&gt;
&lt;br /&gt;
So '''why can't I move the wagon to where I want the entrance to the mine to be?'''&lt;br /&gt;
&lt;br /&gt;
Can somebody ''please'' confirm that my poor dwarves hauling everything from the centre of the wagon to the best spot for my mine to go is the only way of avoiding digging a hidey-hole, then the ''real deal''?&lt;br /&gt;
[[User:GarrieIrons|GarrieIrons]] 03:48, 9 February 2008 (EST)&lt;br /&gt;
:Unfortunately so. [[User:VengefulDonut|VengefulDonut]] 10:33, 9 February 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Ikkonoishi</name></author>
	</entry>
</feed>