Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: any stone except flux as reagent  (Read 1278 times)

Goblin Dragoon 085

  • Bay Watcher
    • View Profile
any stone except flux as reagent
« on: May 19, 2008, 03:58:00 am »

Ok, assuming the following reaction:

   [REACTION:FLUX_CHEAT]
   [NAME:Magical Flux]
   [SMELTER]
   [REAGENT:1:STONE:NO_SUBTYPE:STONE:NO_MATGLOSS]
   [PRODUCT:10:1:STONE:NO_SUBYTPE:STONE:MARBLE]

This reaction creates marble. Unfortunately the reaction also allows marble as reagent, resulting in an endless cycle of pain, where the created marble will be used to create yet another marble.

Is there a way to tell the reaction to use any stone, except flux as reagents?
I am thinking along the lines of: [REAGENT:1:STONE:NO_FLUX:STONE:NO_MATGLOSS]
Does anyone know the working code?
thanks in advance

Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: any stone except flux as reagent
« Reply #1 on: May 19, 2008, 12:30:00 pm »

What exactly stops you from forbidding marble for that particular reaction?
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Goblin Dragoon 085

  • Bay Watcher
    • View Profile
Re: any stone except flux as reagent
« Reply #2 on: May 19, 2008, 01:20:00 pm »

Íts an reaction.
So forbidding marble as an economic stone does nothing.

Or are you speaking of forbidding it somehow in the reactions_standard.txt?

Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: any stone except flux as reagent
« Reply #3 on: May 19, 2008, 01:28:00 pm »

Ah, damn, I forgot you can't individually disable reactions.

Well, there's only one option then - add a [REACTION_CLASS:NOT_FLUX] to all stones in existence...

Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Thassa

  • Bay Watcher
    • View Profile
Re: any stone except flux as reagent
« Reply #4 on: May 22, 2008, 06:41:00 pm »

Another option, pick some worthless stone that is all over your map, and only make flux out of that.
Logged
Dwarf Fortress players: Coming up with solutions for problems that haven't been implemented yet. 

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: any stone except flux as reagent
« Reply #5 on: May 23, 2008, 04:44:00 pm »

quote:
Originally posted by Thassa:
<STRONG>Another option, pick some worthless stone that is all over your map, and only make flux out of that.</STRONG>
Umm, no, he's saying that the marble he's making WITH this reaction is being used to make marble.
You can always forbid the marble as soon as it gets created...
Or make your stone stockpile nearest the smelter accept any stone EXCEPT marble and make another one far off that only accepts marble.  They'll go for the closest stone, so make sure they haul the old marble before you make the new one.  Then you should be good to go.
quote:
Originally posted by Sean Mirrsen
<STRONG>Well, there's only one option then - add a [REACTION_CLASS:NOT_FLUX] to all stones in existence...</STRONG>
And then
code:
 [REACTION:FLUX_CHEAT]
[NAME:Magical Flux]
[SMELTER]
[REAGENT:1:STONE:NOT_FLUX:STONE:NO_MATGLOSS]
[PRODUCT:10:1:STONE:NO_SUBYTPE:STONE:MARBLE]


Right?
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

umiman

  • Bay Watcher
  • Voice Fetishist
    • View Profile
Re: any stone except flux as reagent
« Reply #6 on: May 23, 2008, 04:54:00 pm »

[REACTION:FLUX_CHEAT]
[NAME:Magical Flux]
[SMELTER]
[PRODUCT:200:1:STONE:NO_SUBYTPE:STONE:MARBLE]

Since you're cheating already, shouldn't you just go all the way and do that? It'll solve your problem and give you marble even on stoneless maps.

Either way, the reason why your dwarves are using marble to create marble is because it's the closest thing. Besides, they are using 1 marble to create 10 in your formula, so it's still a plus relationship.

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: any stone except flux as reagent
« Reply #7 on: May 23, 2008, 04:58:00 pm »

Actually, he's creating 1 marble with a 10% chance.

And to include a REACTION_CLASS stone in a reaction, you need [REAGENT:1:REACTION_CLASS:NOT_FLUX].

Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

umiman

  • Bay Watcher
  • Voice Fetishist
    • View Profile
Re: any stone except flux as reagent
« Reply #8 on: May 23, 2008, 05:01:00 pm »

Ahhh... Right, so that's why the number was on the other side. It's odd but hey, whatever floats your boat.