Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction Product question  (Read 1307 times)

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Reaction Product question
« on: December 10, 2014, 12:28:52 am »

I am trying to create a reaction to crush stone into sand, it seems to be coming along nicely but I want there to be a small chance to get a random ore from the reaction.
My question is, how do add in random ores, I cant seem to find the correct line to create a random ore
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction Product question
« Reply #1 on: December 10, 2014, 01:03:49 am »

You can't.  You can have a less than 100 percent chance to produce a *specific* ore, and you can have multiple products like that to give a total effect which is something like randomness.

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #2 on: December 10, 2014, 01:24:33 am »

You can't.  You can have a less than 100 percent chance to produce a *specific* ore, and you can have multiple products like that to give a total effect which is something like randomness.
could i use reaction class? or is that not how it works?
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction Product question
« Reply #3 on: December 10, 2014, 01:45:38 am »

No, not that i know of. 

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #4 on: December 10, 2014, 01:49:46 am »

Flux stones have [REACTION_CLASS:FLUX] on them and it is used as a limiter in reactions, all flux stones have the tag [REACTION_CLASS:FLUX] on them and the wiki does not specify that reaction class has a hardcoded list of reaction class stuff it just says [REACTION_CLASS:whatever] which is a little confusng, maybe I'm just missing something.
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction Product question
« Reply #5 on: December 10, 2014, 01:51:33 am »

Flux stones have [REACTION_CLASS:FLUX] on them and it is used as a limiter in reactions

Exactly.  It is used for reagents, not products.

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #6 on: December 10, 2014, 01:59:18 am »

ahh oh well guess I'll work through the modding process tomorrow, thanks man, I guess that is the best way to go. can there be values smaller than 1%?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Reaction Product question
« Reply #7 on: December 10, 2014, 03:13:51 am »

No.

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #8 on: December 10, 2014, 03:32:54 am »

I'm thinking of adding a 33% chance to receive rock crystal SiliconDioxide seems like it would be very prevalent in obsidian what are your guy's thoughts?
EDIT:would this
Code: [Select]
[PRODUCT:33:1:ROUGH:INORGANIC:CRYSTAL_ROCK] be right?
« Last Edit: December 10, 2014, 03:41:46 am by Manzeenan »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Reaction Product question
« Reply #9 on: December 10, 2014, 03:43:23 am »

ROUGH:NONE

There will never be less than 6 colons in a PRODUCT line.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction Product question
« Reply #10 on: December 10, 2014, 03:54:38 am »

I'm thinking of adding a 33% chance to receive rock crystal SiliconDioxide seems like it would be very prevalent in obsidian what are your guy's thoughts?

IMO it doesn't make a ton of sense.  Obsidian is largely (~70%) glassy SiO2, indeed, but crushing it won't purify it and turn it into a gemstone-quality crystal any more than grinding up a pencil will make diamonds.  But, dwarven rock magic, so whatever makes you happy :D

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #11 on: December 10, 2014, 12:57:02 pm »

I'm thinking of adding a 33% chance to receive rock crystal SiliconDioxide seems like it would be very prevalent in obsidian what are your guy's thoughts?
IMO it doesn't make a ton of sense.  Obsidian is largely (~70%) glassy SiO2, indeed, but crushing it won't purify it and turn it into a gemstone-quality crystal any more than grinding up a pencil will make diamonds.  But, dwarven rock magic, so whatever makes you happy :D
Yes this point is valid. My train of thought was finding gems early in the crushing process embedded in the obsidian. In case you were curious.
« Last Edit: December 10, 2014, 01:01:15 pm by Manzeenan »
Logged

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #12 on: December 10, 2014, 12:57:28 pm »

ROUGH:NONE

There will never be less than 6 colons in a PRODUCT line.
Okay thanks.
Logged

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Reaction Product question
« Reply #13 on: December 10, 2014, 01:04:46 pm »

The process might be more work than just embarking with sand but this is really convenient, I find  tha I never use crystal glass because none of my embarks have it. I could have used a millstone but the idea of dwarves using merely their biceps at a press seemed cooler.
Logged