Dwarf Fortress > DF Modding
Reaction Question: use always the same bar when multiple bars are required?
Urist McGoombaBrother:
So there is a basic reaction requiring three bars of metal:
[REACTION:MAKE_SOMETHING]
[NAME:make metal something]
[BUILDING:METALSMITH:NONE]
[REAGENT:bar:450:BAR:NONE:INORGANIC:NONE]
[PRODUCT:100:1:TOOL:SOMETHING:GET_MATERIAL_FROM_REAGENT:bar:NONE]
[SKILL:METALCRAFT]
Usually the dwarfs go ahead and pick any three bars of metal, while the first they pick defines the material of the product. Now I do like to restrict the reaction, so dwarfs can pick any metal bar, but it has to be three times the same. That means allowed are e.g. three bars of copper or three bars of iron or three bars of gold, etc. Not allowed is one bar of copper, one bar of iron and one bar of gold or two of a kind plus one of another kind. Is it possible to make such a restriction right within the reaction?
Button:
Short answer: No.
Long answer: Sort of.
At the moment, the only way to do this is to create separate reactions for each different reagent. So, MAKE_COPPER_SOMETHING, MAKE_GOLD_SOMETHING, MAKE_SILVER_SOMETHING, MAKE_IRON_SOMETHING, etc.
With the new reaction menus, cluttering up the reaction menus is less of a concern, so these sorts of extremely specific reactions are now feasible.
sv-esk:
You can make stockpile for specific type of bars and link it to workshop. Also, DFHack has reaction menu (gui/workshop-job), it is binded to Alt-A by default.
Button:
Although, this may be possible in 42.06, which was just released!
Urist McGoombaBrother:
Thx for all your replies. Actually the background is to prevent cheating/abusing the system. Let's say you are in urgent need of steel and have only one single bar and there exists a reaction requiring 10 bars of any metal. Then you can go ahead and let it use the steel as first material and fill the other nine pieces with cheap copper, lead or any other expendable material. Still the final product will be made of steel. When you melt it down, you will end up with more steel than you had before. When all ten bars need to be the same material, there won't be any miraculous material transformation.
--- Quote from: Button on February 10, 2016, 02:48:34 pm ---At the moment, the only way to do this is to create separate reactions for each different reagent. So, MAKE_COPPER_SOMETHING, MAKE_GOLD_SOMETHING, MAKE_SILVER_SOMETHING, MAKE_IRON_SOMETHING, etc.
--- End quote ---
I fear that's only feasable, when you have a handful of basic reactions. When we are talking about dozends or more basic reactions and you have to multiply them with all possible metals, stones or other materials. That will end up in hundreds or even thousands of individual reactions. And then there are still missing all materials available via mods.
Navigation
[0] Message Index
[#] Next page
Go to full version