Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Multiple containers in a reaction?  (Read 1056 times)

Nate McCloud

  • Bay Watcher
    • View Profile
Multiple containers in a reaction?
« on: February 28, 2018, 04:02:55 pm »

I'm trying to create reactions that either require multiple containers of reagents (e.g. 7 buckets of water at my Obsidian Forge for 1 boulder of obsidian) or give multiple containers of product (e.g. 1 ore boulder at my Pulverizer for 2 bags of ore sand). How would I go about this?

Two methods come to mind, but I'm not sure which is correct.

Method 1:
Code: [Select]
[REAGENT:water:3000:LIQUID_MISC:NONE:WATER]
[REAGENT:water container:7:NONE:NONE:NONE:NONE]
[CONTAINS:water]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]

Method 2
Code: [Select]
[REAGENT:water 1:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 1:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 1]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 2:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 2:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 2]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 3:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 31:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 3]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 4:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 4:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 4]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 5:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 5:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 5]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 6:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 6:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 6]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:water 7:150:LIQUID_MISC:NONE:WATER]
[REAGENT:water container 7:1:NONE:NONE:NONE:NONE]
[CONTAINS:water 7]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]

EDIT: ...I'm just now realizing that this won't work no matter how I do it, because dwarves won't fill buckets with water to do the reaction, anyway, and there's no vanilla way to store water in buckets...
« Last Edit: March 01, 2018, 03:01:11 am by Nate McCloud »
Logged

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Multiple containers in a reaction?
« Reply #1 on: March 02, 2018, 02:20:48 am »

...I'm just now realizing that this won't work no matter how I do it, because dwarves won't fill buckets with water to do the reaction, anyway, and there's no vanilla way to store water in buckets...
That's quitter talk, friend. Create a creature that has an interaction that only works in water, which induces a syndrome in another creature, which transforms the latter into another creature that lays water buckets as eggs. (Or if that's not possible, make it lay ice, for which you can create a reaction to transform it into water and put in a bucket.) Perhaps give the former creature a high temperature so that it actually consumes water (by turning it into steam.)
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

Nate McCloud

  • Bay Watcher
    • View Profile
Re: Multiple containers in a reaction?
« Reply #2 on: March 02, 2018, 07:43:24 am »

That's uh...an extremely roundabout way of going about it...
Logged

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: Multiple containers in a reaction?
« Reply #3 on: March 02, 2018, 11:59:47 am »

I like having a plants-to-hospital-waterbuckets reaction. For pondless & caveless embarks.

[REACTION:PRESS_PLANTS_WATER] --by Malecus
   [NAME:press water from plants]
   [BUILDING:SCREW_PRESS:CUSTOM_ALT_P]
   [REAGENT:A:7:PLANT:NONE:NONE:NONE][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [REAGENT:B:1:BUCKET:NONE:NONE:NONE][EMPTY][DOES_NOT_ABSORB][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [PRODUCT:80:1:LIQUID_MISC:NONE:WATER:NONE][PRODUCT_DIMENSION:150][PRODUCT_TO_CONTAINER:B]
   [SKILL:PRESSING]
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Nate McCloud

  • Bay Watcher
    • View Profile
Re: Multiple containers in a reaction?
« Reply #4 on: March 02, 2018, 06:16:36 pm »

...Huh. That's actually not a bad idea...it would work, and it wouldn't be cheaty like just producing water from nothing. I like it.
Logged