Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question regarding reaction  (Read 1777 times)

RCIX

  • Bay Watcher
    • View Profile
Question regarding reaction
« on: July 10, 2010, 01:47:04 am »

I wrote up my first reaction, which looks like this:

Code: [Select]
[REACTION:EXTRUDE_WIRE_NORMAL]
[NAME:Extrude Wire]
[BUILDING:WIREWORKS:CUSTOM_SHIFT]
[REAGENT:A:150:BAR:NONE:METAL:NONE]
[PRODUCT:100:5:TOY:STANDARD_WIRE:GET_MATERIAL_FROM_REAGENT:A]
[FUEL]
[SKILL:METALCRAFT]

My aim is to take a unit of metal bars and output a unit of metal wires, the unit of wire being of the type of metal I extruded. Will this work? because i'm not quite sure of the arguments setups.
« Last Edit: July 10, 2010, 02:34:53 am by RCIX »
Logged
Quote from: Naz
Quote from: dwarfhoplite
I suggest you don't think too much what you build and where. When ever you need something, build it as close as possible to where you need it. that way your fortress will eventually become epic
Because god knows your duke will demand a kitten silo in his office.
Quote from: Necro910
Dwarf Fortress: Where you aren't hallucinating.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #1 on: July 10, 2010, 04:13:23 pm »

First question... Which version of DF are you using? 40D reactions differ quite a bit from 08 reactions.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

RCIX

  • Bay Watcher
    • View Profile
Re: Question regarding reaction
« Reply #2 on: July 10, 2010, 04:26:59 pm »

31.08 :)
Logged
Quote from: Naz
Quote from: dwarfhoplite
I suggest you don't think too much what you build and where. When ever you need something, build it as close as possible to where you need it. that way your fortress will eventually become epic
Because god knows your duke will demand a kitten silo in his office.
Quote from: Necro910
Dwarf Fortress: Where you aren't hallucinating.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #3 on: July 10, 2010, 04:36:16 pm »

[REACTION:EXTRUDE_WIRE_NORMAL]
   [NAME:Extrude Wire]
   [BUILDING:WIREWORKS:CUSTOM_SHIFT_A]
   [REAGENT:A:150:BAR:NONE:INORGANIC:NONE]
   [PRODUCT:100:5:TOY:STANDARD_WIRE:GET_MATERIAL_FROM_REAGENT:A]
   [FUEL]
   [SKILL:METALCRAFT]

--------Above may work--------

[REACTION:EXTRUDE_WIRE_NORMAL] <--- this was fine

   [NAME:Extrude Wire] <--- this was fine

   [BUILDING:WIREWORKS:CUSTOM_SHIFT_A] <--- you just had CUSTOM_SHIFT, so that wouldn't of worked.

   [REAGENT:A:150:BAR:NONE:INORGANIC:NONE] <--- You had BAR:NONE:METAL:NONE, it's INORGANIC in 08.

   [PRODUCT:100:5:TOY:STANDARD_WIRE:GET_MATERIAL_FROM_REAGENT:A] <--- This was fine, as long as the item is actually STANDARD_WIRE and not ITEM_STANDARD_WIRE which is how toys are.

   [FUEL] <--- Remember you'll need fuel for it to show up as well.

   [SKILL:METALCRAFT] <--- I'm pretty sure this is fine.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

RCIX

  • Bay Watcher
    • View Profile
Re: Question regarding reaction
« Reply #4 on: July 10, 2010, 06:48:35 pm »

Cool, thanks! I actually wanted a non-shift key for making it, so would that be CUSTOM_A (for the A key, for instance)? Also, i was under the impression that INORGANIC allowed things like rocks, which i don't want wires to be made out of (lol).
Logged
Quote from: Naz
Quote from: dwarfhoplite
I suggest you don't think too much what you build and where. When ever you need something, build it as close as possible to where you need it. that way your fortress will eventually become epic
Because god knows your duke will demand a kitten silo in his office.
Quote from: Necro910
Dwarf Fortress: Where you aren't hallucinating.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #5 on: July 10, 2010, 06:56:07 pm »

INORGANIC is for anything well... inorganic. Metal and rocks and sand and etc.

CUSTOM_A I believe is what you want for the "a" key to be hot key.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

RCIX

  • Bay Watcher
    • View Profile
Re: Question regarding reaction
« Reply #6 on: July 11, 2010, 05:05:24 am »

Then how do i require a bar of metal?
Logged
Quote from: Naz
Quote from: dwarfhoplite
I suggest you don't think too much what you build and where. When ever you need something, build it as close as possible to where you need it. that way your fortress will eventually become epic
Because god knows your duke will demand a kitten silo in his office.
Quote from: Necro910
Dwarf Fortress: Where you aren't hallucinating.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #7 on: July 11, 2010, 02:27:50 pm »

   [REAGENT:A:150:BAR:NONE:INORGANIC:NONE]

like I showed you. The reaction I posted was new.

Did it work?

Copy and paste the one from my previous comment with the whole reaction.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

RCIX

  • Bay Watcher
    • View Profile
Re: Question regarding reaction
« Reply #8 on: July 12, 2010, 05:23:51 am »

Ok, that actually worked i think. I have another question: how do i have a reaction that decorates an object? or is that even possible?
Logged
Quote from: Naz
Quote from: dwarfhoplite
I suggest you don't think too much what you build and where. When ever you need something, build it as close as possible to where you need it. that way your fortress will eventually become epic
Because god knows your duke will demand a kitten silo in his office.
Quote from: Necro910
Dwarf Fortress: Where you aren't hallucinating.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #9 on: July 12, 2010, 02:20:25 pm »

As far as I know... it's impossible. You have to use the vanilla stuff like encrusting or w/e.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Question regarding reaction
« Reply #10 on: July 13, 2010, 04:12:18 am »

   [REAGENT:A:150:BAR:NONE:INORGANIC:NONE] <--- You had BAR:NONE:METAL:NONE, it's INORGANIC in 08.
Huh. METAL rather than INORGANIC should work. See several smelter reactions for instance. Let me test that...

Edit - this one worked for me.
[REACTION:EXTRUDE_WIRE_NORMAL]
   [NAME:Extrude Wire]
   [BUILDING:WIREWORKS:CUSTOM_SHIFT_A]
   [REAGENT:A:150:BAR:NO_SUBTYPE:METAL:NONE]
   [PRODUCT:100:5:TOY:STANDARD_WIRE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:METALCRAFT]
« Last Edit: July 13, 2010, 05:12:38 am by Knight Otu »
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Question regarding reaction
« Reply #11 on: July 13, 2010, 04:41:25 pm »

That's what I was using for the longest time...

Everyone kept complaining that it was 'incorrect' and the proper way to do it was INORGANIC. So >.> Yeah.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!