Bay 12 Games Forum

Please login or register.

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

Author Topic: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)  (Read 2997 times)

silverskull39

  • Bay Watcher
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #30 on: February 19, 2011, 04:42:10 pm »

I was hoping that wouldn't be the case with Ichor... oh well, such is life.

yes, I put the reaction class in the blood template, and no, [IMPROVEMENT:100:weapon:COVERED:GET_MATERIAL_FROM_REAGENT:blood] doesn't work. I wonder if the COVERED token is functional even, or if it's like the unusual eggs one. maybe I'll try and "glaze" it with blood and find out if that's where the issue lies.

Also, black pudding... why didn't I think of that?
« Last Edit: February 19, 2011, 04:56:38 pm by silverskull39 »
Logged
Quote
Quote
Quote
Dwarf fortress threads can sound so.... unethical
it would be unethical if this wasn't the bay12 forums
Bay12: A short, sturdy forum fond of !!science!! and derailment.
Quote
Now back to your regularly scheduled thread derailment.

D_E

  • Bay Watcher
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #31 on: February 19, 2011, 05:12:27 pm »

It works, I tested the COVERED improvement while trying to coat weapons for syndrome purposes.  Unfortunatly, I deleted the rxns when it didn't work :-[.  I'll see if I can figure it out again.
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #32 on: February 19, 2011, 05:17:03 pm »

I think your problem is that you try to use the blood by itself, while it's in a container.

Try adding something like
Code: [Select]
[REAGENT:blood container:1:NONE:NONE:NONE:NONE]
[CONTAINS:blood]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #33 on: February 19, 2011, 05:18:19 pm »

Also, you request just 1 blood... While in the "oil soap" reaction it requests 150 units of oil (which is liquid too). Did you test if it actually requires 150 oil units to do so?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

silverskull39

  • Bay Watcher
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #34 on: February 19, 2011, 05:34:23 pm »

I already figured that much out, but that alone didn't solve all my problems. It still won't work properly.
Currently, the reaction appears to work, except that after the dwarf does the job there is no difference in the weapon he chose to cover.
Here's my current code.
Spoiler (click to show/hide)

And right now I'm testing to see if the 1 vs 150 thing works.

EDIT: It doesn't.

SUPER EDIT FOR GREAT JUSTICE!: Okay, I got it to work. Unfortunately it D_E was correct and it doesn't display how I wanted it to. Not even Covered in frozen blood. Decorated in frozen blood.... I think that might actually be more dorfy, if I change the raws for frozen blood to just read as blood.
« Last Edit: February 19, 2011, 05:43:29 pm by silverskull39 »
Logged
Quote
Quote
Quote
Dwarf fortress threads can sound so.... unethical
it would be unethical if this wasn't the bay12 forums
Bay12: A short, sturdy forum fond of !!science!! and derailment.
Quote
Now back to your regularly scheduled thread derailment.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #35 on: February 19, 2011, 05:47:21 pm »

Shouldn't it be
 [IMPROVEMENT:100:weapon:COVERED:GET_MATERIAL_FROM_REAGENT:blood]

Without the end ":BLOOD]" part?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

silverskull39

  • Bay Watcher
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #36 on: February 19, 2011, 05:48:30 pm »

Shouldn't it be
 [IMPROVEMENT:100:weapon:COVERED:GET_MATERIAL_FROM_REAGENT:blood]

Without the end ":BLOOD]" part?

kind of . instead of BLOOD it was supposed to be NONE, so
 [IMPROVEMENT:100:weapon:COVERED:GET_MATERIAL_FROM_REAGENT:blood:NONE]
it's working now, more or less.
Logged
Quote
Quote
Quote
Dwarf fortress threads can sound so.... unethical
it would be unethical if this wasn't the bay12 forums
Bay12: A short, sturdy forum fond of !!science!! and derailment.
Quote
Now back to your regularly scheduled thread derailment.

Panthera Leo

  • Bay Watcher
    • View Profile
Re: Variable poisons simplifed. (Practile example of MATERIAL_FROM_REAGENT)
« Reply #37 on: February 19, 2011, 07:53:27 pm »

...

Also, why PRODUCT_DIMENSION:150?

Random number to control the amount of blood that will fill a given container. (What I didn't copy&paste was a custom tool that only held 450, and was specifically called here.) Sorry, I should have culled that.

As for why blood? It was something else randomly chosen for it's convenience. I originally followed a suggest on the wiki to make blood a contact poison. Then to play with injections I used a material that just happened to be handy, and made use of it to make an inject-able poison. When I needed some to play with the production tag? I reached for the blood again.

Quote
What are you drawing the blood from? It looks like you just spawn it in a jug, and then use it to make steel.

Sorry, need to proof read more, I did not outright spell that out because the only creature that could use the reaction was the 'Lionman' creature at the head of the post; Therefore, the only thing that could the reaction was the 'Lionman'. Therefor, there was no need to do more then pull down a container that could just by chance hold a liquid, and then spawn the liquid from the only creature that could use the reaction.

Meat or a corpse peace or another reagent that I could definitively define (because I don't know how to reference any sort of live creature.) would have been better, maybe. I don't like using blood because of the 'dark' theme that has. I was going to the Lionman's for simplicity (from my point of view.), it just struck me as sick to use a corpse peace or meat (that had to have come from a dead Lionman) to get at the blood material.

Quote
It's the same as "take a jug and a steel bar, make a steel bar".

Only one step more complicated then that. "Take jug, stuff item that has a specific [MATERIAL_FROM_REAGENT] stored, and then make steel bar from that [MATERIAL_FROM_REAGENT] item stored in a jug."

It doesn't have to be steel or even blood. It was just handy for me to make that example. The tanning reaction in 'reaction_other.txt' is a far more simple example I should have used, maybe. However, not as creativity as I would have liked. More then that, not really what I was after. I wanted to bust the mold, and make something think 'what if'. (Even if I do ramble like a idiot at times. :P )
« Last Edit: February 19, 2011, 08:01:02 pm by Panthera Leo »
Logged
Pages: 1 2 [3]