Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I make a reaction spit out seeds?  (Read 1602 times)

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
How do I make a reaction spit out seeds?
« on: September 07, 2014, 04:21:14 pm »

I'm kind of confused. What needs to change?



[REACTION:SING_SEED_SUN]
[NAME:sing sun berry seed]
[BUILDING:SEEDER:NONE]
[PRODUCT:1:SEED:NO_SUBTYPE:PLANT_MAT:BERRY_SUN]
[SKILL:PLANT]


The reaction seems to occur and take some time, but nothing comes out of it.
Logged
GM of Trespassers V2.
I'm writing a science fantasy story. Mostly hiatused due to life stuff.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: How do I make a reaction spit out seeds?
« Reply #1 on: September 07, 2014, 04:31:16 pm »

pretty sure this works

Code: [Select]
[REACTION:BUY_SURFSEED_PACKET]
[NAME:Buy common seed packet for 1000s]
[BUILDING:CARAVAN_FARM_ORC:CUSTOM_SHIFT_S]
[REAGENT:coins:1000:COIN:NONE:INORGANIC:SILVER]
[PRODUCT:100:5:SEEDS:NONE:PLANT_MAT:BERRIES_FISHER:SEED]
[PRODUCT:50:5:SEEDS:NONE:PLANT_MAT:BERRIES_PRICKLE:SEED]
[PRODUCT:50:5:SEEDS:NONE:PLANT_MAT:BERRIES_STRAW_WILD:SEED]
[PRODUCT:50:5:SEEDS:NONE:PLANT_MAT:REED_ROPE:SEED]
[SKILL:POTTERY]

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: How do I make a reaction spit out seeds?
« Reply #2 on: September 07, 2014, 05:27:19 pm »

Nope. It's picking up BERRY_SUN as the material token for some reason, even after making your changes.
EDIT: I didn't punch in a probability. Seeing if that solves it.
EDIT2: Turns out that liberal usage of the find-and-replace function can break your entire file.
« Last Edit: September 07, 2014, 05:34:16 pm by KingMurdoc »
Logged
GM of Trespassers V2.
I'm writing a science fantasy story. Mostly hiatused due to life stuff.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

scamtank

  • Bay Watcher
    • View Profile
Re: How do I make a reaction spit out seeds?
« Reply #3 on: September 07, 2014, 05:31:12 pm »

Did you miss the last SEED from the end?

[PRODUCT:100:1:SEEDS:NONE:PLANT_MAT:BERRY_SUN:SEED]
Logged

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: How do I make a reaction spit out seeds?
« Reply #4 on: September 07, 2014, 05:46:57 pm »

I put down SEED_MAT instead of seed. I got the reaction to spit out "sun berry seeds" that allow me to designate them for planting, but i get cancellation spam saying seeds are needed when I test it.


EDIT: Changing it to SEED fixed it. Thanks for the help!
« Last Edit: September 07, 2014, 05:51:42 pm by KingMurdoc »
Logged
GM of Trespassers V2.
I'm writing a science fantasy story. Mostly hiatused due to life stuff.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: How do I make a reaction spit out seeds?
« Reply #5 on: September 07, 2014, 08:43:57 pm »

The reason you want SEEDS:NONE:PLANT_MAT:BERRY_SUN:SEED is because of the following:

1. SEEDS - the item token for seeds is named "SEEDS"
2. NONE - the "seeds" item does not have a subtype
3. PLANT_MAT - plant seeds are made of plant materials (in theory, it could be inorganic or a creature material, but that'll break other things)
4. BERRY_SUN - the name of the plant in question ([PLANT:BERRY_SUN])
5. SEED - the internal name of the seed material ([USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE])
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.

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: How do I make a reaction spit out seeds?
« Reply #6 on: September 07, 2014, 08:50:15 pm »

Thank you. That should help with any future issues I may have.
Logged
GM of Trespassers V2.
I'm writing a science fantasy story. Mostly hiatused due to life stuff.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

GavJ

  • Bay Watcher
    • View Profile
Re: How do I make a reaction spit out seeds?
« Reply #7 on: September 09, 2014, 08:43:24 pm »

Quote
EDIT2: Turns out that liberal usage of the find-and-replace function can break your entire file.
I call this "copy pasta" as in when using copy/paste has the effect of turning your code into spaghetti code  ;D
Logged
Cauliflower Labs Geologically realistic world generator devblog

Dwarf fortress in 50 words: You start with seven alcoholic, manic-depressive dwarves. You build a fortress in the wilderness where EVERYTHING tries to kill you, including your own dwarves. Usually, your chief imports are immigrants, beer, and optimism. Your chief exports are misery, limestone violins, forest fires, elf tallow soap, and carved kitten bone.

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: How do I make a reaction spit out seeds?
« Reply #8 on: September 09, 2014, 09:00:27 pm »

I think I did something like replacing PRODUCT:1 with PRODUCT:100:1 and all of my previously-functioning reactions ended up as PRODUCT:100:100:1.
Logged
GM of Trespassers V2.
I'm writing a science fantasy story. Mostly hiatused due to life stuff.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

Dirst

  • Bay Watcher
  • On hiatus
    • View Profile
Re: How do I make a reaction spit out seeds?
« Reply #9 on: September 12, 2014, 02:51:38 pm »

I think I did something like replacing PRODUCT:1 with PRODUCT:100:1 and all of my previously-functioning reactions ended up as PRODUCT:100:100:1.
Notepadd++ has a convenient "within selection" checkbox on the Replace dialog, and that has saved me a tremendous amount of rework.  However, when in a belt-and-suspenders mood, you can always specify a character or two after the match to make sure.  Using PRODUCT:1: as a target would have limited the damage.
Logged
On hiatus. Feel free to adopt or update:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map