Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to make custom creatures milkable for custom processable extracts?  (Read 2245 times)

Kaiser Reinhard

  • Bay Watcher
    • View Profile

Are these raws alright?

For the creature itself, under the correct caste:

Code: [Select]
[USE_MATERIAL_TEMPLATE:PASTE:CREATURE_EXTRACT_TEMPLATE]
      [STATE_NAME_ADJ:ALL_SOLID:frozen beast sweat]
      [STATE_NAME_ADJ:LIQUID:beast sweat]
      [STATE_NAME_ADJ:GAS:boiling beast sweat]
      [STATE_COLOR:ALL:WHITE]
      [DISPLAY_COLOR:6:0:0]
      [PREFIX:NONE]
      [EDIBLE_VERMIN]
      [REACTION_CLASS:SWEAT_PASTE]
      [MATERIAL_REACTION_PRODUCT:DRINK_MAT:LOCAL_CREATURE_MAT:SWEAT]
   [USE_MATERIAL_TEMPLATE:SAILENT:CREATURE_ALCOHOL_TEMPLATE]
      [STATE_NAME_ADJ:ALL_SOLID:frozen beast ambrosia]
      [STATE_NAME_ADJ:LIQUID:beast ambrosia]
      [STATE_NAME_ADJ:GAS:boiling beast ambrosia]
      [PREFIX:NONE]
      [REACTION_CLASS:SWEAT]
   [MILKABLE:LOCAL_CREATURE_MAT:PASTE:20000]

And the material itself

Code: [Select]
[OBJECT:MATERIAL_TEMPLATE]

[MATERIAL_TEMPLATE:SWEAT_TEMPLATE]
[STATE_COLOR:ALL_SOLID:WHITE]
[STATE_NAME:ALL_SOLID:frozen sweat]
[STATE_ADJ:ALL_SOLID:frozen milky]
[STATE_COLOR:LIQUID:WHITE]
[STATE_NAME:LIQUID:sweat]
[STATE_ADJ:LIQUID:milky]
[STATE_COLOR:GAS:WHITE]
[STATE_NAME:GAS:n/a]
[STATE_ADJ:GAS:n/a]
[DISPLAY_COLOR:7:0:1]
[MATERIAL_VALUE:1]
[SPEC_HEAT:4181]
[IGNITE_POINT:10338]
[MELTING_POINT:10000]
[BOILING_POINT:10180]
[HEATDAM_POINT:NONE]
[COLDDAM_POINT:NONE]
[MAT_FIXED_TEMP:NONE]
[SOLID_DENSITY:500]
[LIQUID_DENSITY:1000]
[MOLAR_MASS:NONE]
[IMPACT_YIELD:10000]
[IMPACT_FRACTURE:10000]
[IMPACT_STRAIN_AT_YIELD:100]
[COMPRESSIVE_YIELD:10000]
[COMPRESSIVE_FRACTURE:10000]
[COMPRESSIVE_STRAIN_AT_YIELD:100]
[TENSILE_YIELD:10000]
[TENSILE_FRACTURE:10000]
[TENSILE_STRAIN_AT_YIELD:100]
[TORSION_YIELD:10000]
[TORSION_FRACTURE:10000]
[TORSION_STRAIN_AT_YIELD:100]
[SHEAR_YIELD:6600] used high salinity ice
[SHEAR_FRACTURE:6600]
[SHEAR_STRAIN_AT_YIELD:100]
[BENDING_YIELD:10000]
[BENDING_FRACTURE:10000]
[BENDING_STRAIN_AT_YIELD:100]
[MAX_EDGE:500]
[ABSORPTION:100]

[REACTION_CLASS:MILK]
[MATERIAL_REACTION_PRODUCT:CHEESE_MAT:LOCAL_CREATURE_MAT:CHEESE]

[EDIBLE_VERMIN]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[ROTS]
[GENERATES_MIASMA]
[LIQUID_MISC_CREATURE]

With the still reaction to produce alcohol from the sweat being

Code: [Select]
[OBJECT:REACTION]

[REACTION:MAKE_SWEAT_ALCOHOL]
   [NAME:process beast sweat]
   [BUILDING:STILL:CUSTOM_S]
   [REAGENT:paste:150:LIQUID_MISC:NONE:CREATURE_MAT:NONE:NONE]
      [UNROTTEN]
      [REACTION_CLASS:SAILENT_PASTE]
   [REAGENT:container:1:NONE:NONE:NONE:NONE]
      [CONTAINS:paste]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [REAGENT:barrel/pot:1:NONE:NONE:NONE:NONE]
      [EMPTY]
      [FOOD_STORAGE_CONTAINER]
      [PRESERVE_REAGENT]
      [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
   [PRODUCT:100:5:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:paste:DRINK_MAT]
      [PRODUCT_TO_CONTAINER:barrel/pot]
      [PRODUCT_DIMENSION:150]
   [SKILL:BREWING]

Is this fine? I'm trying to fix up some raws I scavenged off another mod.
Logged

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #1 on: January 06, 2013, 12:43:07 pm »

Seems allright, though I fail to see what the material template is for.

I doubt I would drink it though :P
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Kaiser Reinhard

  • Bay Watcher
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #2 on: January 06, 2013, 07:31:47 pm »

So I don't need a material template? I want it to be an animal extract that can be used to make alcohol, I can just make it the same as milk, then?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #3 on: January 06, 2013, 10:00:10 pm »

You could look up "boozebelly goats" in creature_pet_masterwork.txt, which do give milk. This milk can be used to make edible cheese, and I did add a custom reaction to the kitchen to ferment it to booze.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Kaiser Reinhard

  • Bay Watcher
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #4 on: January 07, 2013, 03:10:37 am »

Could someone post that creature_pet_masterwork.txt file for me here? Can't download the whole thing right now but would like to get to work while I'm here.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #5 on: January 07, 2013, 03:13:20 am »

Spoiler: creature (click to show/hide)

Spoiler: material (click to show/hide)

Spoiler: reaction (click to show/hide)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

peregarrett

  • Bay Watcher
  • Гномовержец Enjoyed throwing someone recently
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #6 on: January 07, 2013, 04:29:15 am »

Uh... so your booze goat milk isn't an alcohol? I have's found any ALCOHOL tags there
Logged
Did you know that the Russian word for "sock" is "no sock"?
I just saw a guy with two broken legs push a minecart with a corpse in it. Yeah.

Kaiser Reinhard

  • Bay Watcher
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #7 on: January 07, 2013, 10:34:11 am »

Okay, having some trouble here trying to create a new set of raws.

How would I make a custom extract from a creature different from milk, and how would I make this extract processable into an alcoholic drink?
Logged

Xantalos

  • Bay Watcher
  • Your Friendly Salvation
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #8 on: January 07, 2013, 10:45:40 am »

This reminds me of the cow that when milked produced adamantine bees.
Logged
Sig! Onol
Quote from: BFEL
XANTALOS, THE KARATEBOMINATION
Quote from: Toaster
((The Xantalos Die: [1, 1, 1, 6, 6, 6]))

peregarrett

  • Bay Watcher
  • Гномовержец Enjoyed throwing someone recently
    • View Profile
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #9 on: January 07, 2013, 12:48:16 pm »

Okay, having some trouble here trying to create a new set of raws.

How would I make a custom extract from a creature different from milk, and how would I make this extract processable into an alcoholic drink?
Add two materials to your creature - extract material and alcohol material:
Code: [Select]
[USE_MATERIAL_TEMPLATE:YOUR_EXTRACT_MATERIAL_NAME:CREATURE_EXTRACT_TEMPLATE]
    name, color, etc of your extract
 [USE_MATERIAL_TEMPLATE:YOUR_ALCOHOL_MATERIAL_NAME:CREATURE_ALCOHOL_TEMPLATE]
    name, color, etc of alcohol
Introduce the way your extract is extracted from creature:
Code: [Select]
[EXTRACT:LOCAL_CREATURE_MAT:YOUR_EXTRACT_MATERIAL_NAME] to get it through small animal dissection or fish dissection
or
[MILKABLE:LOCAL_CREATURE_MAT:YOUR_EXTRACT_MATERIAL_NAME:20000] to get it through milking

Then add reaction that takes empty barrel, barrel of [CREATURE_MAT:YOUR_CREATURE:YOUR_EXTRACT_MATERIAL_NAME] and produces barrel of [CREATURE_MAT:YOUR_CREATURE:YOUR_ALCOHOL_MATERIAL_NAME] into that empty barrel. Not sure if it's possible to make it in-place in a single barrel, but worth trying.

Disclaimer - everything here were not tested in any way. Expect a lot of misprints and bugs.
Logged
Did you know that the Russian word for "sock" is "no sock"?
I just saw a guy with two broken legs push a minecart with a corpse in it. Yeah.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: How to make custom creatures milkable for custom processable extracts?
« Reply #10 on: January 07, 2013, 07:27:21 pm »

There is a reason I used it the way I did. Milking is hardcoded and uses buckets. Dwarves dont drink alcohol from buckets. You need to milk the creature, using buckets, use the buckets to either make cheese or alcohol. Since I thought it makes no sense to brew milk into alcohol, I made cheese first, then fermented cheese.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::