Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Using barrels of blood as a reaction reagent  (Read 1032 times)

Jokaste

  • Bay Watcher
  • hOI!!!!!
    • View Profile
Using barrels of blood as a reaction reagent
« on: April 14, 2016, 06:33:18 pm »

Is there anyway to do this? I've tried using custom reaction classes (as I've seen it done in other mods) but this doesn't seem to work. I attached [REACTION_CLASS:SANGUINE] to both the blood material and the reagent needed in my custom reaction but dwarves are just using any barrel, regardless of contents.
Logged

Toxicshadow

  • Bay Watcher
    • View Profile
    • github
Re: Using barrels of blood as a reaction reagent
« Reply #1 on: April 14, 2016, 06:44:43 pm »

Wait are you using something like this for the reagent:
Code: [Select]
[REAGENT:liquid container:1:TOOL:NONE:NONE:NONE]
[EMPTY]
[DOES_NOT_ABSORB]
[PRESERVE_REAGENT]
[HAS_TOOL_USE:LIQUID_CONTAINER]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]

Obviously the [EMPTY] tag would mess that up. You'll want a [CONTAINS:x] tag, see here. Thats the only thing I can think of off the top of my head without seeing the full reaction.
Logged
Quote
'ere the Chias get hungry...

Jokaste

  • Bay Watcher
  • hOI!!!!!
    • View Profile
Re: Using barrels of blood as a reaction reagent
« Reply #2 on: April 14, 2016, 07:10:49 pm »

Code: [Select]
reaction_demon

[OBJECT:REACTION]

[REACTION:BLOOD_IRON_TEST]
[NAME:test using blood as a reagent]
[BUILDING:SOAP_MAKER:CUSTOM_B]
[REAGENT:blood:1:LIQUID_MISC:NONE:NONE]
[REACTION_CLASS:SANGUINE]
[REAGENT:blood container:1:NONE:NONE:NONE:NONE]
[CONTAINS:blood]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:STEEL][PRODUCT_DIMENSION:150]
[SKILL:ALCHEMY]

Right now, my dwarves are just grabbing barrels of dwarven wine and going through with the reaction. (And the wine isn't even being used in the reaction so I assume that the game is just ignoring the first reagent since it doesn't know what it is.)
« Last Edit: April 14, 2016, 07:12:30 pm by Jokaste »
Logged

Bogus

  • Bay Watcher
    • View Profile
Re: Using barrels of blood as a reaction reagent
« Reply #3 on: April 15, 2016, 05:04:30 am »

the first reagent token is broken, it is missing a :NONE at the end (its 2 item and 2 material tokens). also a quantity of 1 seems to be wrong for liquid_misc, liquids among other things are measured in "dimension", which is 150  units for 1 actual "liquid" item in the game. meaning, you need to write 150 to get them to use 1 full unit of liquid in the process.

http://dwarffortresswiki.org/index.php/DF2014:Reaction
Logged

Jokaste

  • Bay Watcher
  • hOI!!!!!
    • View Profile
Re: Using barrels of blood as a reaction reagent
« Reply #4 on: April 15, 2016, 11:59:53 am »

Ah! Thank you very much, changing the amount and adding the necessary NONE tag at the end appeared to work. Again, thank you very much!
Logged