Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Changing Material Types and Reaction Outputs  (Read 663 times)

Shanks13

  • Bay Watcher
    • View Profile
Changing Material Types and Reaction Outputs
« on: March 11, 2012, 08:50:06 pm »

Quick question from an aspiring modder with a basic understanding of the raws:

Is it possible to change the "outputs" of various interactions? As in, how could I go about setting up a situation where butchering, for example, only outputs a skull, generic bones, and generic meat? How far can this be taken? Are there certain interactions and outputs that cannot be affected?

To go a bit further, how could a chance of something happening be introduced? For example, when smelting certain metals, you sometimes get a byproduct alongside the "regular" output. Could this be setup to happen with things like harvesting wood and berries?

Thanks!
Logged

Shanks13

  • Bay Watcher
    • View Profile
Re: Changing Material Types and Reaction Outputs
« Reply #1 on: March 12, 2012, 11:41:12 am »

Hoping a bump is permissible...
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Changing Material Types and Reaction Outputs
« Reply #2 on: March 12, 2012, 11:51:50 am »

Erm... There is not really much we can do with hardcoded reactions like slaughter/butcher. As for generic Materials you will have to create a generic creature which uses some custom templates (detail_plans) and then vanilla (default) body_detail_plans (or just tissue templates) target the generic creatures materials

TISSUE_MATERIAL:CREATURE_MAT:GENERIC_MATERIALS:(material such as FAT)

the rest will be editing "reaction_smelt.txt" and making some custom reactions.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Changing Material Types and Reaction Outputs
« Reply #3 on: March 12, 2012, 01:27:16 pm »

Erm... There is not really much we can do with hardcoded reactions like slaughter/butcher. As for generic Materials you will have to create a generic creature which uses some custom templates (detail_plans) and then vanilla (default) body_detail_plans (or just tissue templates) target the generic creatures materials

TISSUE_MATERIAL:CREATURE_MAT:GENERIC_MATERIALS:(material such as FAT)
There's no need to put them within a creature - just define them as INORGANIC materials.
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.