Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creature remain dependant reaction. Need help  (Read 654 times)

NebulaWalker

  • Escaped Lunatic
    • View Profile
Creature remain dependant reaction. Need help
« on: May 20, 2012, 08:11:19 pm »

I'm trying to make a creature with steel bones, and I want to make it so you can use 3 of them in a smelter to make a steel bar. I'm really new to modding DF and could use help. I can't figure out how to do it and the wiki isn't helping anymore. Can someone please tell me how to do this?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Creature remain dependant reaction. Need help
« Reply #1 on: May 20, 2012, 08:14:31 pm »

Ah, it should be theoretically possible to use a specific creature's bones, but I think that there may have been problems with that. Bugs and such.

The reagent line would probably look like this:

Code: [Select]
[REAGENT:bone:1:NONE:NONE:CREATURE_MAT:(your creature here):(your steel bone name here)]
Not sure what to put in the item area.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Creature remain dependant reaction. Need help
« Reply #2 on: May 20, 2012, 08:17:20 pm »

well if you did the required

[REMOVE_MATERIAL:BONE]
[REMOVE_TISSUE:BONE]
and
[TISSUE:BONE]
   [TISSUE_NAME:bone:NP] Whether it has a plural depends on exact part
   [STRUCTURAL]
   [CONNECTIVE_TISSUE_ANCHOR]
   [TISSUE_MATERIAL:INORGANIC:STEEL] --- made of steel
   [RELATIVE_THICKNESS:2]
   [HEALING_RATE:1000]
   [VASCULAR:3]
   [PAIN_RECEPTORS:50]
   [CONNECTS]
   [TISSUE_SHAPE:LAYER]
   [SETTABLE]
   [SPLINTABLE]

then your reaction would look like this:

[REACTION:MELT_STEEL_BONES]
[NAME:melt steel monster bones]
[BUILDING:SMELTER:NONE]
[REAGENT:A:3:CORPSEPIECE:NONE:INORGANIC:STEEL] --- this will target all bodyparts that are steel, which bones fall into this category
[PRODUCT:100:1:BAR:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

now, a stack of bones must be at least 3+ or 3 single bones. if the stack of bones is greater then 3, all bones will be lost.

EDIT:
if you want to use a Ratio system, it is a bit more complicated. But a stack of six would give 2 bars, and a stack of 3 would give 1.

Also Putnam's method would work as well, if you dropped CORPSEPIECE at the item token
« Last Edit: May 20, 2012, 08:18:52 pm by Hugo_The_Dwarf »
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: Creature remain dependant reaction. Need help
« Reply #3 on: May 21, 2012, 02:45:03 am »

Ratio system? How do you do that Hugo?
Logged