Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Food Reaction  (Read 686 times)

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Food Reaction
« on: April 07, 2010, 05:23:09 pm »

I am trying to make a reaction to make plump helmets and barrels come from the kitchen but, got confuesed with the raws. Can anyone help?
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

random51

  • Bay Watcher
    • View Profile
Re: Food Reaction
« Reply #1 on: April 07, 2010, 05:35:01 pm »

This will work, off the top of my head.  Haven't tested it.

Quote


[REACTION:MAKE_BARREL]
   [NAME:summon barrel]
   [BUILDING:KITCHEN:CUSTOM_SHIFT_B]
   [PRODUCT:100:1:BARREL:NONE:PLANT_MAT:MAPLE:WOOD]
   [SKILL:COOKING]

[REACTION:MAKE_HELMET_PLUMP]
   [NAME:summon plump helmets]
   [BUILDING:KITCHEN:CUSTOM_SHIFT_P]
   [PRODUCT:100:6:PLANT:NONE:PLANT_MAT:MUSHROOM_HELMET_PLUMP:STRUCTURAL]
   [SKILL:COOKING]


Add those to the end of $DF/raw/objects/reaction_other.txt

Then you'll need the following two lines added to $DF/raw/objects/entity_default.txt, anywhere after [ENTITY:MOUNTAIN] and before [POSITION:MONARCH]

Quote
[PERMITTED_REACTION:MAKE_BARREL]
[PERMITTED_REACTION:MAKE_HELMET_PLUMP]

Then you'll need to worldgen a new region.

Alternately, if this is an emergency, you can plug the PRODUCT lines in under any existing reaction in the reaction_other.txt file for the region you are playing and save and reload that particular region and the reaction you change will produce your products, but will have the original reaction's name.
« Last Edit: April 07, 2010, 05:42:34 pm by random51 »
Logged

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: Food Reaction
« Reply #2 on: April 07, 2010, 07:27:29 pm »

To all that want to use the above code: If you full your workshop to much it will explode scattering stuff in it's 6 spaces.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

FACM

  • Bay Watcher
    • View Profile
Re: Food Reaction
« Reply #3 on: April 07, 2010, 08:54:42 pm »

Workshops never exploded before, no matter how cluttered.

Perhaps a dwarf threw a tantrum and destroyed the workshop?
Logged