Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Drinks in Reaction  (Read 983 times)

IT 000

  • Bay Watcher
  • Strange Mood
    • View Profile
Drinks in Reaction
« on: June 16, 2011, 09:46:03 pm »

Is it possible to have a reaction that requires/produces a drink? If so how?
Logged

***CORROSION v2.14***
<<<More Than Just Zombies>>>
Back from the Dead!

D_E

  • Bay Watcher
    • View Profile
Re: Drinks in Reaction
« Reply #1 on: June 16, 2011, 11:33:08 pm »

Yes, to both.

I can show you how to do one that produces a drink:
Code: [Select]

[REACTION:REFINE_BRAIN_ALCOHOL_B]
[NAME:create semi-sapient brain drink]
[BUILDING:STILL:CUSTOM_S]
[REAGENT:A:1:NONE:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:SEMI_SAPIENT_BRAIN_DRINK][USE_BODY_COMPONENT]
[REAGENT:B:1:BARREL:NONE:NONE:NONE][EMPTY][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:10:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:A:SEMI_SAPIENT_BRAIN_DRINK][PRODUCT_TO_CONTAINER:B]
[SKILL:BREWING]

And here's an example of making a liquid from vanilla DF's honey rxns:
Code: [Select]
[REACTION:PRESS_HONEYCOMB]
[NAME:press honey from honeycomb]
[BUILDING:SCREW_PRESS:CUSTOM_H]
[REAGENT:honeycomb:1:TOOL:ITEM_TOOL_HONEYCOMB:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:HONEYCOMB_PRESS_MAT]
[NOT_PRESSED]
[REAGENT:liquid container:1:TOOL:NONE:NONE:NONE]
[EMPTY]
[DOES_NOT_ABSORB]
[PRESERVE_REAGENT]
[HAS_TOOL_USE:LIQUID_CONTAINER]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:1:LIQUID_MISC:NONE:GET_MATERIAL_FROM_REAGENT:honeycomb:HONEYCOMB_PRESS_MAT][PRODUCT_TO_CONTAINER:liquid container]
[PRODUCT:100:1:GLOB:NONE:GET_MATERIAL_FROM_REAGENT:honeycomb:NONE][PRODUCT_PRESSED]
[SKILL:PRESSING]

Finally, here's how to use a liquid in a rxn, also from the honey rxns:
Code: [Select]
[REACTION:MAKE_MEAD]
[NAME:make mead]
[BUILDING:STILL:CUSTOM_M]
[REAGENT:honey:150:LIQUID_MISC:NONE:CREATURE_MAT:HONEY_BEE:HONEY]
[UNROTTEN]
[REAGENT:honey container:1:NONE:NONE:NONE:NONE]
[CONTAINS:honey]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[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:honey:DRINK_MAT]
[PRODUCT_TO_CONTAINER:barrel/pot]
[PRODUCT_DIMENSION:150]
[SKILL:BREWING]

If you wanted to use a drink as a reagent, you would just have to change LIQUID_MISC in the reagent line to DRINK.

Remember that LIQUID_MISCs and DRINKs are two different things.
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Drinks in Reaction
« Reply #2 on: June 17, 2011, 01:24:03 am »

Hahahah brain drink. I will be using that now  :P
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Drinks in Reaction
« Reply #3 on: June 17, 2011, 09:30:42 am »

I have a goddamn VENDING MACHINE.
Logged
Dwarf Fortress: Threats of metabolism.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Drinks in Reaction
« Reply #4 on: June 17, 2011, 10:42:59 am »

Out of curiosity, what happens if you make a reaction that creates DRINK items made of WATER or CREATURE_MAT:foo:MILK and puts them into a barrel? Will dwarves drink them and not get sober?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.