Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hair thread to cloth?  (Read 2476 times)

Carpman

  • Bay Watcher
  • need not work.
    • View Profile
Hair thread to cloth?
« on: July 22, 2011, 10:38:38 am »

So is there a way I can turn, say, some mule hair thread into cloth? Because a mooded dwarf is asking for yarn cloth and this seems like my only option. And it wouldn't require a regen correct?
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Hair thread to cloth?
« Reply #1 on: July 22, 2011, 12:05:14 pm »

What classifies stuff as yarn is the [YARN] token in the *material* definition for that material.

If you go into the donkey raws, you might be able to do this -

[SELECT_MATERIAL:HAIR]
[YARN]

But I'm not 100% on that.

One thing you can do (that doesn't require a regen) is to hijack an existing reaction. For my example I'll use MAKE_WAX_CRAFTS in reaction_other.txt. Keep the name (MAKE_WAX_CRAFTS) the same, but you can alter the rest of the reaction. Something like this would give you "free" yarn.

[REACTION:MAKE_WAX_CRAFTS]
   [NAME:free yarn]
   [BUILDING:CRAFTSMAN:NONE]
   [PRODUCT:100:1:CLOTH:NONE:CREATURE_MAT:SHEEP:HAIR][PRODUCT_DIMENSION:10000]

If you don't want it to be quite as cheaty you can require some kind of reagent, perhaps your donkey hair thread. [REAGENT:A:15000:THREAD:NONE:CREATURE_MAT:DONKEY:HAIR]
Logged

Carpman

  • Bay Watcher
  • need not work.
    • View Profile
Re: Hair thread to cloth?
« Reply #2 on: July 22, 2011, 03:20:54 pm »

What classifies stuff as yarn is the [YARN] token in the *material* definition for that material.

If you go into the donkey raws, you might be able to do this -

[SELECT_MATERIAL:HAIR]
[YARN]

But I'm not 100% on that.

One thing you can do (that doesn't require a regen) is to hijack an existing reaction. For my example I'll use MAKE_WAX_CRAFTS in reaction_other.txt. Keep the name (MAKE_WAX_CRAFTS) the same, but you can alter the rest of the reaction. Something like this would give you "free" yarn.

[REACTION:MAKE_WAX_CRAFTS]
   [NAME:free yarn]
   [BUILDING:CRAFTSMAN:NONE]
   [PRODUCT:100:1:CLOTH:NONE:CREATURE_MAT:SHEEP:HAIR][PRODUCT_DIMENSION:10000]

If you don't want it to be quite as cheaty you can require some kind of reagent, perhaps your donkey hair thread. [REAGENT:A:15000:THREAD:NONE:CREATURE_MAT:DONKEY:HAIR]
Thank you :)
Logged