Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What's wrong with this reaction?  (Read 897 times)

dbay

  • Bay Watcher
    • View Profile
What's wrong with this reaction?
« on: November 11, 2010, 02:26:42 am »

Hey all. For a little mod I've been working on, I'm trying to add a couple of magical-esque reactions. Each one uses a "mana well," which are made out of gems. The reactions all work, except the dwarves don't actually use the mana wells - they use the other inputs and just ignore those. Here's my relevent RAWs:

the well (its a toy)
[ITEM_TOY:ITEM_MANA]
[NAME:mana well:mana wells]
[HARD_MAT]

The reaction to create them: (works fine)
[REACTION:REFINE_MANA_GEM]
   [NAME:refine mana from gems]
   [BUILDING:MANA_REFINERY:CUSTOM_G]
     [REAGENT:A:1:SMALLGEM:NONE:NONE:NONE]
   [PRODUCT:100:1:TOY:ITEM_MANA:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [SKILL:ALCHEMY]

An example of using them:
[REACTION:COLD_IRON_MAKING]
[NAME:make cold iron bars]
[BUILDING:MAGIC_SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:IRON]
[REAGANT:B:1:TOY:ITEM_MANA:NONE:NONE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:COLD_IRON][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

-The dwarves grab a bar of iron (reagant A) and ignore my huge stockpile of glittering wells. They take the bar to the workshop, and out comes cold iron. What am I doing wrong?

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: What's wrong with this reaction?
« Reply #1 on: November 11, 2010, 10:09:01 am »

Replace REAGANT with REAGENT.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: What's wrong with this reaction?
« Reply #2 on: November 11, 2010, 02:10:27 pm »

errorlog.txt is great for this kind of stuff.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!