Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [0.31.x] [REQUEST] Custom Process - Extract seeds from plant  (Read 407 times)

bendikv

  • Escaped Lunatic
    • View Profile
[0.31.x] [REQUEST] Custom Process - Extract seeds from plant
« on: December 06, 2010, 05:19:49 am »

What would it take to set up a custom process, probably on the Farmers Workshop, to extract seeds directly from plants?
I have absolutely zero experience in modding DF, so any hints on where to start looking (or if you're feeling generous, a complete solution) would be very appreciated.
Basically I would like to extract seeds directly from plants, destroying the plant in the process, without having to muck about with barrels and such (like brewing booze requires).

Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: [0.31.x] [REQUEST] Custom Process - Extract seeds from plant
« Reply #1 on: December 06, 2010, 11:42:35 am »

Edit every plant that has seeds and add the following to the STRUCTURAL material:
Code: [Select]
[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED]

Then add the following to reaction_other.txt:
Code: [Select]
[REACTION:EXTRACT_SEEDS]
[NAME:extract seeds]
[BUILDING:KITCHEN:CUSTOM_S]
[REAGENT:A:1:PLANT:NONE:NONE:NONE][UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:SEED_MAT]
[PRODUCT:100:3:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:A:SEED_MAT]
[SKILL:PROCESSPLANTS]

Finally, edit entity_default.txt and allow your civilization to perform the EXTRACT_SEEDS reaction, then generate a new world.

As a note, this one uses the kitchen because it's not possible to add custom reactions to the farmer's workshop.
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.