v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Reaction examples

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
  
  
{{category|modding}}
+
{{old}}{{category|modding}}
 
[[Reaction]]s seem to be causing people some issues. As such, examples would probably be useful for those who'd like some help creating what they want. When adding a new reaction, make sure to add a line for it in the entity_default file, under the mountain (first section) section. For example, if adding the adamantine wafer reaction, open entity_default, go to the mountain entry (the first one), scroll down until you see [PERMITTED_REACTION:something] (like [PERMITTED_REACTION:TAN_A_HIDE]) and add another line that says [PERMITTED_REACTION:REACTION_NAME], where REACTION_NAME is whatever is stated in the reaction's REACTION tag, so in this case the entry would read [PERMITTED_REACTION:FREE_ADAMANTINE_WAFERS].
 
[[Reaction]]s seem to be causing people some issues. As such, examples would probably be useful for those who'd like some help creating what they want. When adding a new reaction, make sure to add a line for it in the entity_default file, under the mountain (first section) section. For example, if adding the adamantine wafer reaction, open entity_default, go to the mountain entry (the first one), scroll down until you see [PERMITTED_REACTION:something] (like [PERMITTED_REACTION:TAN_A_HIDE]) and add another line that says [PERMITTED_REACTION:REACTION_NAME], where REACTION_NAME is whatever is stated in the reaction's REACTION tag, so in this case the entry would read [PERMITTED_REACTION:FREE_ADAMANTINE_WAFERS].
  
Line 8: Line 8:
  
 
===Smelt Hematite Ore===
 
===Smelt Hematite Ore===
Simulates the built-in smelting of hematite ore.
+
Simulates the built in smelting of hematite ore.
 
  [REACTION:SMELT_IRON_FROM_HEMATITE]
 
  [REACTION:SMELT_IRON_FROM_HEMATITE]
 
  [NAME:Smelt hematite to bars]
 
  [NAME:Smelt hematite to bars]
 
  [BUILDING:SMELTER:NONE]
 
  [BUILDING:SMELTER:NONE]
  [REAGENT:A:BOULDER:NO_SUBTYPE:INORGANIC:HEMATITE]
+
  [REAGENT:A:STONE:NO_SUBTYPE:STONE:HEMATITE]
  [PRODUCT:100:4:BAR:NO_SUBTYPE:INORGANIC:IRON][PRODUCT_DIMENSION:150]
+
  [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON][PRODUCT_DIMENSION:150]
 
  [FUEL]
 
  [FUEL]
 
  [SKILL:SMELT]
 
  [SKILL:SMELT]
Results in 4 iron bars, of basic size.
+
Results in 1 iron bar, of basic size.
  
 
===Smelt Galena Ore===
 
===Smelt Galena Ore===
Simulates the built-in smelting of galena ore.
+
Simulates the built in smelting of galena ore.
 
  [REACTION:SMELT_COPPER_FROM_GALENA]
 
  [REACTION:SMELT_COPPER_FROM_GALENA]
 
  [NAME:Smelt galena to bars]
 
  [NAME:Smelt galena to bars]
 
  [BUILDING:SMELTER:NONE]
 
  [BUILDING:SMELTER:NONE]
  [REAGENT:A:BOULDER:NO_SUBTYPE:INORGANIC:GALENA]
+
  [REAGENT:A:STONE:NO_SUBTYPE:STONE:GALENA]
  [PRODUCT:100:4:BAR:NO_SUBTYPE:INORGANIC:COPPER][PRODUCT_DIMENSION:150]
+
  [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:COPPER][PRODUCT_DIMENSION:150]
  [PRODUCT:50:4:BAR:NO_SUBTYPE:INORGANIC:SILVER][PRODUCT_DIMENSION:150]
+
  [PRODUCT:50:1:BAR:NO_SUBTYPE:METAL:SILVER][PRODUCT_DIMENSION:150]
 
  [FUEL]
 
  [FUEL]
 
  [SKILL:SMELT]
 
  [SKILL:SMELT]
Results in 4 copper bars, with a 50% chance of a silver bar.
+
Results in 1 copper bar, with a 50% chance of a silver bar.
  
 
==Plant Reactions==
 
==Plant Reactions==
===Brew drink from plant===
 
This is the built-in reaction to brew alcohol from plants.
 
  
[REACTION:BREW_DRINK_FROM_PLANT]
+
==Buckets/Alcohol Reactions==
[NAME:brew drink from plant]
 
[BUILDING:STILL:HOTKEY_STILL_BREW]
 
[REAGENT:plant:1:PLANT:NONE:NONE:NONE]
 
[HAS_MATERIAL_REACTION_PRODUCT:DRINK_MAT] only accept plants that have drinks defined
 
[UNROTTEN]
 
[REAGENT:barrel/pot:1:NONE:NONE:NONE:NONE]
 
[EMPTY]
 
[FOOD_STORAGE_CONTAINER] barrel or any non-absorbing tool with FOOD_STORAGE
 
[PRESERVE_REAGENT]
 
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
 
[PRODUCT:100:5:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:plant:DRINK_MAT]
 
[PRODUCT_TO_CONTAINER:barrel/pot]
 
[PRODUCT_DIMENSION:150]
 
[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
 
[SKILL:BREWING]
 
 
 
==Bucket/Alcohol Reactions==
 
  
 
==Weapon Reactions==
 
==Weapon Reactions==
Line 57: Line 38:
 
===Gemstone Long Sword===
 
===Gemstone Long Sword===
 
Make a long sword out of four rough gemstones of the same type.
 
Make a long sword out of four rough gemstones of the same type.
 +
  
 
  [REACTION:MAKE_GEMSTONE_SWORD_LONG]
 
  [REACTION:MAKE_GEMSTONE_SWORD_LONG]
Line 67: Line 49:
  
 
==Misc Item Reactions==
 
==Misc Item Reactions==
 
===Craft Windows from Shells===
 
 
Turns shells into a window made from that animal's shell.
 
 
[REACTION:MAKE WINDOW FROM SHELL]
 
[NAME:make shell window]
 
[BUILDING:CRAFTSMAN:NONE]
 
[REAGENT:shell:3:CORPSEPIECE:NO_SUBTYPE:NONE:NONE]
 
[ANY_SHELL_MATERIAL]
 
[USE_BODY_COMPONENT]
 
[PRODUCT:100:1:WINDOW:NO_SUBTYPE:GET_MATERIAL_FROM_REAGENT:shell:NONE]
 
[SKILL:BONECARVE]
 
  
 
===Cremate Vermin Remains===
 
===Cremate Vermin Remains===
Line 98: Line 67:
 
  [NAME:create adamantine wafers]
 
  [NAME:create adamantine wafers]
 
  [BUILDING:SMELTER:NONE]
 
  [BUILDING:SMELTER:NONE]
  [PRODUCT:100:5:BAR:NO_SUBTYPE:INORGANIC:ADAMANTINE][PRODUCT_DIMENSION:150]
+
  [PRODUCT:100:5:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
 
  [SKILL:SMELT]
 
  [SKILL:SMELT]
  
Line 107: Line 76:
 
  [NAME:create adamantine thread]
 
  [NAME:create adamantine thread]
 
  [BUILDING:SMELTER:NONE]
 
  [BUILDING:SMELTER:NONE]
  [PRODUCT:100:5:THREAD:NO_SUBTYPE:INORGANIC:ADAMANTINE][PRODUCT_DIMENSION:15000]
+
  [PRODUCT:100:5:THREAD:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:15000]
 
  [SKILL:CLOTHESMAKING]
 
  [SKILL:CLOTHESMAKING]
  
Line 130: Line 99:
  
 
An important thing to note is that the code above works with all wood items. Turning every single wooden bolt into 0.25 charcoal is considered cheaty, so it is up to the user to use the code appropiately. If the user wants more than 4 units per unit of charcoal for better balance, the number of reagents can easily be expanded.
 
An important thing to note is that the code above works with all wood items. Turning every single wooden bolt into 0.25 charcoal is considered cheaty, so it is up to the user to use the code appropiately. If the user wants more than 4 units per unit of charcoal for better balance, the number of reagents can easily be expanded.
 
{{Category|Modding}}
 
{{Category|Modding_Examples}}
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

This page is a member of 1 hidden category: