Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Encrusting simplification  (Read 601 times)

sculleywr

  • Bay Watcher
    • View Profile
Encrusting simplification
« on: July 31, 2014, 12:30:46 am »

Perhaps there is a mod for this, but how hard would it be to insert a repeatable command to encrust items with any of your gems or at least make the encrusting commands repeatable? I'm getting tired of finger smashing for thirty minutes and building five thousand jeweler shops is a waste of space.

Not that I really have a premium for space, with this fortress having no enemies to speak of...
Logged
I had one get happy again... After producing a bed made from their own husband's body.
I once  had a fort called paddledbottom in the plains of spanking founded by the painful punishment
And so, in a thread about cointainers with usele

GavJ

  • Bay Watcher
    • View Profile
Re: Encrusting simplification
« Reply #1 on: July 31, 2014, 01:26:19 am »

(sorry about weird previous post version, edited correctly now)

You cannot add custom reactions to the jeweler, but you could add one to the craftsdwarf shop or something.

Roughly like this, added to reactions_other.txt:

[REACTION:GENERIC_ENCRUST]
    [NAME:encrust with any gem]
    [REAGENT:A:1:ROUGH:NONE:NONE:NONE]
    [REAGENT:B:1:NONE:NONE:NONE:NONE][NOT_IMPROVED][PRESERVE_REAGENT]
    [IMPROVEMENT:100:B:COVERED:GET_MATERIAL_FROM_REAGENT:A:NONE]
    [SKILL:ENCRUSTGEM]

then also add GENERIC_ENCRUST to the list of jobs your civ members are allowed to do in entity.txt




disclaimer: The [NOT_IMPROVED] might correctly restrict it to items that should be improved, or just the existence of an improvement tag might, but I haven't tested this or anything. It might need something else like [HARD_ITEM_MATERIAL] or whatever.
« Last Edit: July 31, 2014, 01:32:38 am by GavJ »
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.