Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can we call reagent materials from other reagents? (marrying booze)  (Read 776 times)

YAHG

  • Bay Watcher
    • View Profile

If this is possible then something like
Spoiler (click to show/hide)
could be used to automatically marry all of our forts alchohol  8).

TheFlame52

  • Bay Watcher
  • Certified geezer & only man to win 0.40.24
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #1 on: July 22, 2014, 07:28:33 pm »

Have you tested this? What exactly does it do? From what I can see, it allows you to mix two barrels of booze into one as long as they are the same type, saving barrels.

Roses

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #2 on: July 22, 2014, 07:37:47 pm »

Haven't tested it in the newest version, but in the last version :GET_MATERIAL_FROM_REAGENT was a product only thing.
Logged

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #3 on: July 22, 2014, 07:43:25 pm »

So, hang on, what's this about getting married to booze? At first I thought it was a typo, but now I'm genuinely confused.
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

YAHG

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #4 on: July 22, 2014, 08:08:07 pm »

So, hang on, what's this about getting married to booze? At first I thought it was a typo, but now I'm genuinely confused.

Pouring two bottles of alcohol together is called marrying them. In some states its illegal to do at bars if you continue to use the original label.

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #5 on: July 22, 2014, 08:52:34 pm »

Now I feel silly.
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

YAHG

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #6 on: July 22, 2014, 09:48:17 pm »

Now I feel silly.

 :) You probably are,


considering everyone else is.. :)

Agent_Irons

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #7 on: July 23, 2014, 11:30:07 am »

If this is possible then something like
Spoiler (click to show/hide)
could be used to automatically marry all of our forts alchohol  8).

Does this work? I am so curious.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #8 on: July 23, 2014, 03:28:06 pm »

I'm not sure this will work, but I don't want to discourage the act of trying for SCIENCE. Personally I think a reaction looks for all the materials at once, not a reagent by reagent.

like:
use Reaction
Reaction checks for all reagents at once
missing one
can't do it

which the way of a reagent calling for another reagent (Reagent B is Reagent A)
But if reactions started based on first reagent then moved on I'm sure it would work.

Use Reaction
Reaction checks for Reagent A
finds A
Reaction checks for Reagent B (B is whatever A is)
looks for more A (which is for B)

But im sure it works the way of my first example so
Code: [Select]
[REACTION:COMBINE_DRINK]
   [NAME:marry barrels]
   [BUILDING:STILL:CUSTOM_M]
   [REAGENT:A:1:DRINK:NONE:NONE:NONE]
   [REAGENT:CONTAINER_A:1:NONE:NONE:NONE:NONE]
      [CONTAINS:A]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [REAGENT:B:1:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [REAGENT:CONTAINER_B:1:NONE:NONE:NONE:NONE]
      [CONTAINS:B]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [REAGENT:CONTAINER_C:1:NONE:NONE:NONE:NONE]
      [EMPTY]
      [FOOD_STORAGE_CONTAINER] barrel or any non-absorbing tool with FOOD_STORAGE
      [PRESERVE_REAGENT]
   [PRODUCT:100:2:DRINK:NONE:NONE:NONE]
      [PRODUCT_TO_CONTAINER:CONTAINER_C]
      [PRODUCT_DIMENSION:150]
   [SKILL:BREWING]
   [AUTOMATIC]

Basically (with my thinking) it's looking for
A = Drink

B = null

C = barrel

Product = 2 DRINK(no material defined, so generic drink) in C
Logged

YAHG

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #9 on: July 23, 2014, 04:01:17 pm »

I'm not sure this will work, but I don't want to discourage the act of trying for SCIENCE. Personally I think a reaction looks for all the materials at once, not a reagent by reagent.

If that is the case would this likely be better?

Code: [Select]
[REACTION:COMBINE_DRINK]
   [NAME:marry barrels]
   [BUILDING:STILL:CUSTOM_M]
   [REAGENT:A:2:DRINK:NONE:NONE:NONE]
   [REAGENT:CONTAINER_A:2:NONE:NONE:NONE:NONE]
      [CONTAINS:A]
      [PRESERVE_REAGENT]
[REAGENT:CONTAINER_B:1:NONE:NONE:NONE:NONE]
      [EMPTY]
      [FOOD_STORAGE_CONTAINER] barrel or any non-absorbing tool with FOOD_STORAGE
      [PRESERVE_REAGENT]
   [PRODUCT:100:2:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
      [PRODUCT_TO_CONTAINER:CONTAINER_B]
      [PRODUCT_DIMENSION:150]
   [SKILL:BREWING]
   [AUTOMATIC]

Ideally you would do 5 single units to 1 container of 5, then another reaction that does 2 5's to a 10, and lastly 2 10's to a 20 that only does rock pots so that you do not abuse the bug with containers taking too much booze.

edit: I took out does not determine product amount for my brewing reactions so that you can have better control over your food stocks, but that means you need to be able to consolidate containers otherwise crazy barrel spam..
« Last Edit: July 23, 2014, 04:03:36 pm by YAHG »
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: Can we call reagent materials from other reagents? (marrying booze)
« Reply #10 on: July 23, 2014, 04:10:53 pm »

the bug with containers taking too much booze.

I'm pretty sure that this bug died when the hardcoded Brew Drink reaction went out of the window.
Logged