- 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.
Difference between revisions of "v0.31:Reaction examples"
Uprightpath (talk | contribs) |
m |
||
(12 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{av}}{{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]. | ||
==Smelter Emulation== | ==Smelter Emulation== | ||
Line 16: | Line 17: | ||
===Smelt Galena Ore=== | ===Smelt Galena Ore=== | ||
Simulates the built in smelting of galena ore. | Simulates the built in smelting of galena ore. | ||
− | [REACTION: | + | [REACTION:SMELT_COPPER_FROM_GALENA] |
[NAME:Smelt galena to bars] | [NAME:Smelt galena to bars] | ||
[BUILDING:SMELTER:NONE] | [BUILDING:SMELTER:NONE] | ||
Line 31: | Line 32: | ||
==Weapon Reactions== | ==Weapon Reactions== | ||
+ | |||
+ | ===Gemstone Long Sword=== | ||
+ | Make a long sword out of four rough gemstones of the same type. | ||
+ | |||
+ | |||
+ | [REACTION:MAKE_GEMSTONE_SWORD_LONG] | ||
+ | [NAME:make gemstone long sword] | ||
+ | [BUILDING:SMELTER:NONE] | ||
+ | [REAGENT:A:4:ROUGH:NO_SUBTYPE:NONE:NONE] | ||
+ | [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_LONG:GET_MATERIAL_FROM_REAGENT:A:NONE] | ||
+ | [FUEL] | ||
+ | [SKILL:SMELT] | ||
==Misc Item Reactions== | ==Misc Item Reactions== | ||
+ | |||
+ | ===Cremate Vermin Remains=== | ||
+ | Incinerates all those non-rotting vermin remains so they stop cluttering up your hallways. | ||
+ | [REACTION:CREMATE_REMAINS] | ||
+ | [NAME:cremate remains] | ||
+ | [BUILDING:SMELTER:NONE] | ||
+ | [REAGENT:A:1:REMAINS:NONE:NONE:NONE] | ||
+ | [PRODUCT:100:1:BAR:NONE:ASH:NONE][PRODUCT_DIMENSION:150] | ||
+ | [SKILL:SMELT] | ||
+ | [AUTOMATIC] | ||
+ | Results in 1 bar of ash, and also automatically populates itself in an idle smelter like the loom cloth and tan a hide tasks. | ||
+ | |||
+ | ===Create Adamantine Wafers=== | ||
+ | Creates adamantine wafers, pretty self-explanatory. | ||
+ | |||
+ | [REACTION:FREE_ADAMANTINE_WAFERS] | ||
+ | [NAME:create adamantine wafers] | ||
+ | [BUILDING:SMELTER:NONE] | ||
+ | [PRODUCT:100:5:BAR:NO_SUBTYPE:METAL:ADAMANTINE] | ||
+ | [SKILL:SMELT] | ||
+ | |||
+ | ===Create Adamantine Thread=== | ||
+ | Again, self-explanatory. Also, trains clothesmaking. | ||
+ | |||
+ | [REACTION:FREE_ADAMANTINE_THREAD] | ||
+ | [NAME:create adamantine thread] | ||
+ | [BUILDING:SMELTER:NONE] | ||
+ | [PRODUCT:100:5:THREAD:NO_SUBTYPE:METAL:ADAMANTINE] | ||
+ | [SKILL:CLOTHESMAKING] |
Latest revision as of 10:00, 15 July 2013
This article is about an older version of DF. |
Reactions 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].
Smelter Emulation[edit]
Smelt Hematite Ore[edit]
Simulates the built in smelting of hematite ore.
[REACTION:SMELT_IRON_FROM_HEMATITE] [NAME:Smelt hematite to bars] [BUILDING:SMELTER:NONE] [REAGENT:A:STONE:NO_SUBTYPE:STONE:HEMATITE] [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON][PRODUCT_DIMENSION:150] [FUEL] [SKILL:SMELT]
Results in 1 iron bar, of basic size.
Smelt Galena Ore[edit]
Simulates the built in smelting of galena ore.
[REACTION:SMELT_COPPER_FROM_GALENA] [NAME:Smelt galena to bars] [BUILDING:SMELTER:NONE] [REAGENT:A:STONE:NO_SUBTYPE:STONE:GALENA] [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:COPPER][PRODUCT_DIMENSION:150] [PRODUCT:50:1:BAR:NO_SUBTYPE:METAL:SILVER][PRODUCT_DIMENSION:150] [FUEL] [SKILL:SMELT]
Results in 1 copper bar, with a 50% chance of a silver bar.
Plant Reactions[edit]
Buckets/Alcohol Reactions[edit]
Weapon Reactions[edit]
Gemstone Long Sword[edit]
Make a long sword out of four rough gemstones of the same type.
[REACTION:MAKE_GEMSTONE_SWORD_LONG] [NAME:make gemstone long sword] [BUILDING:SMELTER:NONE] [REAGENT:A:4:ROUGH:NO_SUBTYPE:NONE:NONE] [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_LONG:GET_MATERIAL_FROM_REAGENT:A:NONE] [FUEL] [SKILL:SMELT]
Misc Item Reactions[edit]
Cremate Vermin Remains[edit]
Incinerates all those non-rotting vermin remains so they stop cluttering up your hallways.
[REACTION:CREMATE_REMAINS] [NAME:cremate remains] [BUILDING:SMELTER:NONE] [REAGENT:A:1:REMAINS:NONE:NONE:NONE] [PRODUCT:100:1:BAR:NONE:ASH:NONE][PRODUCT_DIMENSION:150] [SKILL:SMELT] [AUTOMATIC]
Results in 1 bar of ash, and also automatically populates itself in an idle smelter like the loom cloth and tan a hide tasks.
Create Adamantine Wafers[edit]
Creates adamantine wafers, pretty self-explanatory.
[REACTION:FREE_ADAMANTINE_WAFERS] [NAME:create adamantine wafers] [BUILDING:SMELTER:NONE] [PRODUCT:100:5:BAR:NO_SUBTYPE:METAL:ADAMANTINE] [SKILL:SMELT]
Create Adamantine Thread[edit]
Again, self-explanatory. Also, trains clothesmaking.
[REACTION:FREE_ADAMANTINE_THREAD] [NAME:create adamantine thread] [BUILDING:SMELTER:NONE] [PRODUCT:100:5:THREAD:NO_SUBTYPE:METAL:ADAMANTINE] [SKILL:CLOTHESMAKING]