Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Some reaction questions  (Read 1389 times)

Fallen Flame

  • Bay Watcher
    • View Profile
Some reaction questions
« on: August 30, 2011, 01:24:27 am »

I'm attempting to mod in some reactions and I'm running into some problems getting these reactions working
Code: [Select]
[REACTION:MAKE_CLAY]
[NAME:produce clay]
[BUILDING:KILN:C]
[PRODUCT:40:1:BOULDER:NONE:INORGANIC:CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:SILTY_CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:SANDY_CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:CLAY_LOAM]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:FIRE_CLAY]
[SKILL:POTTERY]

[REACTION:MAKE_CLAY_ARMOR]
[NAME:make clay armor]
[REAGENT:clay:3:BOULDER:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:1:ARMOR:ITEM_ARMOR:ITEM_SHAPER_ARMOR:GET_MATERIAL_FROM:REAGENT:clay:FIRED_MAT]
[SKILL:POTTERY]

The first reaction doesn't seem to be working, my dorf just seems to sit in the kiln doing nothing, I waited a while and nothing seemed to be happening, not sure if I created the reaction wrong, or if the dorf was just taking a very long time.

For the second reaction basically I'm not sure what order all the different product modifiers go in and I know that I did it wrong.

So can anyone tell me what I did wrong?
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Some reaction questions
« Reply #1 on: August 30, 2011, 01:57:35 am »

I'm attempting to mod in some reactions and I'm running into some problems getting these reactions working
Code: [Select]
[REACTION:MAKE_CLAY]
[NAME:produce clay]
[BUILDING:KILN:C]
[PRODUCT:40:1:BOULDER:NONE:INORGANIC:CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:SILTY_CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:SANDY_CLAY]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:CLAY_LOAM]
[PRODUCT:15:1:BOULDER:NONE:INORGANIC:FIRE_CLAY]
[SKILL:POTTERY]

[REACTION:MAKE_CLAY_ARMOR]
[NAME:make clay armor]
[REAGENT:clay:3:BOULDER:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:1:ARMOR:ITEM_ARMOR:ITEM_SHAPER_ARMOR:GET_MATERIAL_FROM:REAGENT:clay:FIRED_MAT]
[SKILL:POTTERY]

The first reaction doesn't seem to be working, my dorf just seems to sit in the kiln doing nothing, I waited a while and nothing seemed to be happening, not sure if I created the reaction wrong, or if the dorf was just taking a very long time.

For the second reaction basically I'm not sure what order all the different product modifiers go in and I know that I did it wrong.

So can anyone tell me what I did wrong?

Your first reaction is right, it has a 15% chance to produce clay(s) with ever run

your second one is... messed it should be

   [PRODUCT:100:1:ARMOR:ITEM_SHAPER_ARMOR:GET_MATERIAL_FROM:REAGENT:clay:FIRED_MAT]

But I don't know if the 'Size-less' reaction armor bug is still in effect
« Last Edit: August 30, 2011, 02:39:42 am by Hugo_The_Dwarf »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Some reaction questions
« Reply #2 on: August 30, 2011, 02:32:12 am »

The armor is not sizeless, it's of the 80k size or of the main creature size (I don't remember, my races in Genesis have the same size and armor reactions work for them).
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

kwd1968

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #3 on: August 30, 2011, 06:40:37 am »

that product line has one typo in it

[PRODUCT:100:1:ARMOR:ITEM_SHAPER_ARMOR:GET_MATERIAL_FROM:REAGENT:clay:FIRED_MAT]

should be

[PRODUCT:100:1:ARMOR:ITEM_SHAPER_ARMOR:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Some reaction questions
« Reply #4 on: August 30, 2011, 07:03:40 am »

To make sure that your reaction works, make all chances 100 first and test the result. After that if that works you can set the chances to whatever you want.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Fallen Flame

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #5 on: August 30, 2011, 12:08:16 pm »

I got the reactions to work right now, however the armor that I make shows up as earthware armor. Is this because it the reaction uses three types of clay, which can be different types of clay?
I'm trying to get it to say "Fire clay armor" or whatever its made of.

Also is there any easier way to test the reactions other than having to generate a new world everytime?
Logged

UristMcHuman

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #6 on: August 30, 2011, 12:33:42 pm »

I got the reactions to work right now, however the armor that I make shows up as earthware armor. Is this because it the reaction uses three types of clay, which can be different types of clay?
I'm trying to get it to say "Fire clay armor" or whatever its made of.
First of all, stoneware armor sounds _very_ painful to have to lug around and sounds extremely heavy. Second of all, you'll probably have to make the reagent to make such armor being a lump (boulder) of Fire Clay. I don't know, these are just wild guesses. I've never done this myself. The only modding I've ever done by myself without other installed mods to fiddle around with is add my own real-world weapons.
Logged

Fallen Flame

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #7 on: August 30, 2011, 12:43:08 pm »

Well it actually doesn't seem that heavy a breastplate made of it weighs about 3 urists and an iron breastplate weighs 17.
So i guess I would have to make each reaction limit itself to a particular material, and then have a reaction for each type, no easy way to do it.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Some reaction questions
« Reply #8 on: August 30, 2011, 12:47:52 pm »

If you want a 'Fire clay (armor type here)' the remove the FIRED_MAT and use a NONE, that way instead of making it earthen-ware it will make it '(clay)(armor type)'
Logged

Fallen Flame

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #9 on: August 30, 2011, 12:59:25 pm »

Okay thanks I will try that out.  :)
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Some reaction questions
« Reply #10 on: August 30, 2011, 01:08:33 pm »

I got the reactions to work right now, however the armor that I make shows up as earthware armor. Is this because it the reaction uses three types of clay, which can be different types of clay?
I'm trying to get it to say "Fire clay armor" or whatever its made of.
If you use fire clay, it should be "stoneware" armor, and if you use kaolinite it should be "porcelain" armor - it's only giving you "earthenware" because it's using the non-special types of clay.

It's also likely that it's only using the material of the first unit of "clay" the dwarf chooses.
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.

Fallen Flame

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #11 on: August 30, 2011, 02:12:24 pm »

One more question, is there anyway using custom reactions to produce left and right boots in a single reaction? does it even matter? will dorfs equip 2 boots regardless of if they arent left/right?
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Some reaction questions
« Reply #12 on: August 30, 2011, 02:24:30 pm »

if you say make 2 boots I believe is shoulf make two then the dwarf decides which one is left or right, only gauntlets have that oddity where they are strictly left or right (once they are made) need more comfermation on this
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Some reaction questions
« Reply #13 on: August 30, 2011, 02:34:07 pm »

There are no left/right boots. However you cannot make gauntlets for the same reason.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Fallen Flame

  • Bay Watcher
    • View Profile
Re: Some reaction questions
« Reply #14 on: August 30, 2011, 04:45:57 pm »

So they wont use any boots or gloves produced this way?
Logged
Pages: [1] 2