Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Where did I go wrong? I just want dragon soap!  (Read 2817 times)

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Where did I go wrong? I just want dragon soap!
« on: May 24, 2011, 04:45:18 pm »

I tried to mod in a reaction to make dragon soap. Here's the product line:

Code: [Select]
[PRODUCT:100:1:BAR:NONE:DRAGON:SOAP_MAT]
[PRODUCT_DIMENSION:150]
This produces "bar"s. Maybe " bar"s.

1.) What do I change to fix it?
2) How did I mess up?
« Last Edit: May 24, 2011, 04:47:51 pm by GreatWyrmGold »
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong? I just want dragon soap!
« Reply #1 on: May 24, 2011, 04:59:03 pm »

I believe the material is just "SOAP" not "SOAP_MAT"
Logged

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Where did I go wrong? I just want dragon soap!
« Reply #2 on: May 24, 2011, 05:07:30 pm »

I believe the material is just "SOAP" not "SOAP_MAT"
If it is then the reactions in the vanilla raws are wrong. I just copy-pasted the reaction and tinkered with the reaction a bit.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong? I just want dragon soap!
« Reply #3 on: May 24, 2011, 05:16:08 pm »

I believe the material is just "SOAP" not "SOAP_MAT"
If it is then the reactions in the vanilla raws are wrong. I just copy-pasted the reaction and tinkered with the reaction a bit.
The vanilla reaction is:
Code: [Select]
[REACTION:MAKE_SOAP]
[NAME:make soap]
[BUILDING:SOAP_MAKER:CUSTOM_T]
[REAGENT:lye:150:LIQUID_MISC:NONE:LYE]
[REAGENT:lye container:1:NONE:NONE:NONE:NONE]
[CONTAINS:lye]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:tallow:1:GLOB:NONE:NONE:NONE][REACTION_CLASS:TALLOW][UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:SOAP_MAT]
[PRODUCT:100:1:BAR:NONE:GET_MATERIAL_FROM_REAGENT:tallow:SOAP_MAT]
[PRODUCT_DIMENSION:150]
[SKILL:SOAP_MAKING]

It uses GET_MATERIAL_FROM_REAGENT. The second part ("SOAP_MAT") of that tag points to a MATERIAL_REACTION_PRODUCT in the designated reagent ("tallow" in this case). It's saying "Go to the tallow material, look for a MATERIAL_REACTION_PRODUCT tag called SOAP_MAT and use the material it says to use"

In your case, you are not pulling the material from one of your reagents (you don't have any!) so you need to point to the material that you want directly. If you used dragon tallow in the vanilla reaction, its product line would look at the tallow material and follow its SOAP_MAT tag back to dragon soap.

Changing the product to CREATURE_MAT:DRAGON:SOAP should work.

EDIT: Like so -    [PRODUCT:100:1:BAR:NONE:CREATURE_MAT:DRAGON:SOAP][PRODUCT_DIMENSION:150]
Logged

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Where did I go wrong? I just want dragon soap!
« Reply #4 on: May 24, 2011, 05:52:43 pm »

I believe the material is just "SOAP" not "SOAP_MAT"
If it is then the reactions in the vanilla raws are wrong. I just copy-pasted the reaction and tinkered with the reaction a bit.
The vanilla reaction is:
Code: [Select]
[REACTION:MAKE_SOAP]
[NAME:make soap]
[BUILDING:SOAP_MAKER:CUSTOM_T]
[REAGENT:lye:150:LIQUID_MISC:NONE:LYE]
[REAGENT:lye container:1:NONE:NONE:NONE:NONE]
[CONTAINS:lye]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:tallow:1:GLOB:NONE:NONE:NONE][REACTION_CLASS:TALLOW][UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:SOAP_MAT]
[PRODUCT:100:1:BAR:NONE:GET_MATERIAL_FROM_REAGENT:tallow:SOAP_MAT]
[PRODUCT_DIMENSION:150]
[SKILL:SOAP_MAKING]

It uses GET_MATERIAL_FROM_REAGENT. The second part ("SOAP_MAT") of that tag points to a MATERIAL_REACTION_PRODUCT in the designated reagent ("tallow" in this case). It's saying "Go to the tallow material, look for a MATERIAL_REACTION_PRODUCT tag called SOAP_MAT and use the material it says to use"

In your case, you are not pulling the material from one of your reagents (you don't have any!) so you need to point to the material that you want directly. If you used dragon tallow in the vanilla reaction, its product line would look at the tallow material and follow its SOAP_MAT tag back to dragon soap.

Changing the product to CREATURE_MAT:DRAGON:SOAP should work.

EDIT: Like so -    [PRODUCT:100:1:BAR:NONE:CREATURE_MAT:DRAGON:SOAP][PRODUCT_DIMENSION:150]
Thanks!
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.