Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problems with reactions and custom leather  (Read 379 times)

McFeel

  • Bay Watcher
    • View Profile
Problems with reactions and custom leather
« on: December 04, 2012, 01:31:13 pm »

Hi all,

  I want to make a better leather armor using fur. I'm new to edit the raws, but I have read the wiki, and I have made a material template for the fur (for now a copy of the leather changing the name), and a reaction. You can see them here:

Spoiler (click to show/hide)

Spoiler (click to show/hide)

When I try to create the fur from a skin, the game crashes.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Problems with reactions and custom leather
« Reply #1 on: December 04, 2012, 02:08:38 pm »

First question is do you want to be able to make fur from every single creature with skin/leather? Or do you only want it from certain creatures?

1)

2)Change your reaction to look like this:
Code: [Select]
[REACTION:AUC_TAN_FUR]
[NAME:Create Fur]
[ADVENTURE_MODE_ENABLED]
[REAGENT:A:1:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT]
[HAS_MATERIAL_REACTION_PRODUCT:FUR_MAT]
[REAGENT:A:1:TOOL:ITEM_TOOL_AUC_KNIFE:NONE:NONE:NONE][PRESERVE_REAGENT]
[PRODUCT:100:1:SKIN_TANNED:NONE:GET_MATERIAL_FROM_REAGENT:A:FUR_MAT]
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

McFeel

  • Bay Watcher
    • View Profile
Re: Problems with reactions and custom leather
« Reply #2 on: December 04, 2012, 03:09:52 pm »

Thank you so much for your fast answer, now I can continue to work in my first mod :).
Another little question, now, I can change "MATERIAL_TEMPLATE:FUR_TEMPLATE", for made the fur stronger than the leather?
« Last Edit: December 04, 2012, 07:29:55 pm by McFeel »
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Problems with reactions and custom leather
« Reply #3 on: December 04, 2012, 03:53:08 pm »

Yeah. The values that determine how powerful a material is in combat are:
IMPACT_XXXX - determines blunt force resistance
SHEAR_XXXX - determines cutting force resistance
TENSILE_XXXX - determines resistance to being shook around after being latched onto (by bites, for example)

Of the three the shear values are the most important since they determines "glances off", followed closely by the impact values and then finally the tensile values.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

McFeel

  • Bay Watcher
    • View Profile
Re: Problems with reactions and custom leather
« Reply #4 on: December 04, 2012, 06:58:43 pm »

Thanks, no more questions for now :).
« Last Edit: December 04, 2012, 07:29:29 pm by McFeel »
Logged