Bay 12 Games Forum

Please login or register.

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

Author Topic: Reaction Tutorial/Information  (Read 9125 times)

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #15 on: April 08, 2010, 04:38:45 am »

Bars DO have dimensions, but that leads to some iffy stuff in the coding. If you make an IRON bar with a Dimension of 1 (150 being the normal), a smith can use it to make things-- Unless for some reason the forge was messed up for me--, anything.

A bar can have any dimension. Meaning you can have a bar of dim 5, bar of dim 10, and so on. I still need to do more testing to make certain that my earlier experience with them wasn't a fluke.

You can, however, have reactions that require a 'minimum' dimension size, which causes bars of smaller sizes to be ignored. But this is only in custom reactions.

If a custom reaction requires a specific Metal/Stone, such as...

[REAGENT:A:1:STONE:NONE:INORGANIC:MICA], then it will appear in MICA's entry in the manager.

Where as...

[REAGENT:A:1:STONE:NONE:INORGANIC:NONE] will not appear in the manager.

Entries with a [REACTION_CLASS:X] show up with a listing for the reaction that uses that tag.
« Last Edit: April 08, 2010, 04:46:12 am by Upright Path »
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #16 on: April 08, 2010, 06:47:34 am »

CHANCE - The 'Chance' that an object will appear when the product is completed. Each building keeps an internal count for

There's no chance-keeping in DF.

Every time chance calculates again.
Reaction with a 50% chance can give product three times in a row, and can give nothing for three times.
But in the long perspective (100 and more times) result product quantity will be ok about that 50%.
Logged
Finis sanctificat media.

Phoebus

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #17 on: April 08, 2010, 07:07:05 am »

I've tried for several hours but still completely failed at making a reaction that would consume a plant (longwheat).
Either the reagent line fails and the reaction occurs without requiring any reagent, or the reaction does not pickup any longwheat.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #18 on: April 08, 2010, 08:00:57 am »

I've tried for several hours but still completely failed at making a reaction that would consume a plant (longwheat).
Either the reagent line fails and the reaction occurs without requiring any reagent, or the reaction does not pickup any longwheat.

Try using this:
[REAGENT:A:1:PLANT:NONE:PLANT_MAT:GRASS_WHEAT_CAVE:STRUCTURAL]
Logged
Finis sanctificat media.

Phoebus

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #19 on: April 08, 2010, 10:25:35 am »

I've tried for several hours but still completely failed at making a reaction that would consume a plant (longwheat).
Either the reagent line fails and the reaction occurs without requiring any reagent, or the reaction does not pickup any longwheat.

Try using this:
[REAGENT:A:1:PLANT:NONE:PLANT_MAT:GRASS_WHEAT_CAVE:STRUCTURAL]
Thanks, it worked! But the reactions ignore plants inside containers. :(
Logged

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #20 on: April 08, 2010, 10:39:15 am »

Any item that in the normal course of use must be placed in a bucket, barrel, bag or other, is typically ignored. See problems with using sand and the like.

Items inside of bins seem to be available though.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #21 on: April 08, 2010, 12:10:18 pm »

Thanks, it worked! But the reactions ignore plants inside containers. :(

1. Make a small stockpile near the smelter
2. assign it to store only needed plant
3. Set barrels=0
4. Set it "t"ake those plants from your food stockpile where those plants are in barrels.
Logged
Finis sanctificat media.

Erk

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #22 on: April 08, 2010, 12:34:25 pm »

Anyone know the material tag for mechanisms?
[BUILD_ITEM:1:MECHANISMS:NONE:NONE:NONE]
doesn't work, nor does MECHANISM... starting to suspect they are a subtype of another reagent.
Logged
'River' cancels eat: Food is problematic.

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #23 on: April 08, 2010, 02:03:54 pm »

Anyone know the material tag for mechanisms?
[BUILD_ITEM:1:MECHANISMS:NONE:NONE:NONE]
doesn't work, nor does MECHANISM... starting to suspect they are a subtype of another reagent.
They are TRAPPARTS.
Logged
Finis sanctificat media.

Erk

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #24 on: April 08, 2010, 02:09:48 pm »

Anyone know the material tag for mechanisms?
[BUILD_ITEM:1:MECHANISMS:NONE:NONE:NONE]
doesn't work, nor does MECHANISM... starting to suspect they are a subtype of another reagent.
They are TRAPPARTS.
Thanks a much.
Logged
'River' cancels eat: Food is problematic.

Zurin

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #25 on: April 08, 2010, 03:43:39 pm »

I'm trying to get the option of taking seed out of plant.
But I think I have a problem

[REACTION:EXTRACT_SEED]
   [NAME:extract seed]
   [BUILDING:KITCHEN:NONE]
   [REAGENT:A:1:PLANT:NONE:PLANT_MAT:STRUCTURAL][UNROTTEN]
   [PRODUCT:100:3:PLANT:SEED:GET_MATERIAL_FROM_REAGENT:A:SEED]
   [SKILL:COOK]

I get no error log (I did get some before while I was having fun trying).
Now this seems to make sense for me, but seems not for the game...

NB : Kitchen and Cook are only for test to have as many things known to work well
Logged

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #26 on: April 08, 2010, 05:15:09 pm »

What are the results when you try that?

Also, I think it should be...

[PRODUCT:100:3:SEED:NONE:GET_MATERIAL_FROM_REAGENT:A:SEED]
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Reaction Tutorial/Information
« Reply #27 on: April 08, 2010, 06:02:09 pm »

Have we figured out product bones, shells, and skulls?
Those are the big three things I need.
Every way of going at it I can think of hasn't worked, so I'm guessing the tissues system makes it more difficult.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #28 on: April 08, 2010, 06:16:04 pm »

[PRODUCT:100:1CORPSEPIECE:BONE:CREATURE_MAT:<CREAURE>:BONE]

I think should work, but I'm not sure.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Reaction Tutorial/Information
« Reply #29 on: April 08, 2010, 06:20:19 pm »

[PRODUCT:100:1CORPSEPIECE:BONE:CREATURE_MAT:<CREAURE>:BONE]
Well, you're missing a colon, for one thing...
I'll give it a shot and see what happens, will post results here.

EDIT: No dice.
The reactions appear but nothing is produced.
« Last Edit: April 08, 2010, 06:42:43 pm by jaybud4 »
Logged
Mishimanriz: Histories of Pegasi and Dictionaries
Pages: 1 [2] 3 4 ... 7