Hello dear dwarf modders
Are you tired of chopping wood on the groud and make the elves angry?
Are your dwarfs tired and you have no bed?
I pressent to you: the BED!
First, I introduce a new workshop called bed builder's workshop. For this a new raw file is created with the name
building_bedworkshop.tex. The contend of this file is:
building_bedworkshop
[OBJECT:BUILDING]
[BUILDING_WORKSHOP:BED_BUILDER]
[NAME:Bed builder's workshop]
[NAME_COLOR:3:0:1]
[DIM:3:2]
[WORK_LOCATION:2:1]
[BUILD_LABOR:BUILD_CONSTRUCTION]
[BLOCK:1:0:0:0]
[BLOCK:2:1:1:0]
[TILE:0:1:' ':' ':150]
[TILE:0:2:' ':'/':' ']
[COLOR:0:1:0:0:0:0:0:0:6:0:0]
[COLOR:0:2:0:0:0:0:0:0:6:0:0]
[TILE:1:1:'=':' ':'+']
[TILE:1:2:'-':' ':8]
[COLOR:1:1:0:0:0:0:0:0:6:0:0]
[COLOR:1:2:6:0:0:0:0:0:6:0:0]
[TILE:2:1:'-':' ':8]
[TILE:2:2:' ':' ':8]
[COLOR:2:1:6:0:0:0:0:0:6:0:0]
[COLOR:2:2:0:0:0:0:0:0:6:0:0]
[TILE:3:1:150:' ':8]
[TILE:3:2:' ':' ':8]
[COLOR:3:1:6:0:0:0:0:0:6:7:0]
[COLOR:3:2:0:0:0:0:0:0:6:7:0]
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]
Then I introdueced the new TOOLs;
bed frame (made out of metal) and
matress (made out of cloth). For this the raw file
item_bedframe.tex with the information was created:
item_bedframe
[OBJECT:ITEM]
[ITEM_TOOL:ITEM_BED_FRAME]
[NAME:bed frame:bed frames]
[DESCRIPTION:The frame used to put a mattress on.]
[METAL_MAT]
[VALUE:15]
[TILE:127]
[ADJECTIVE:improvised]
[SIZE:600]
[MATERIAL_SIZE:600]
[INCOMPLETE_ITEM]
[ITEM_TOOL:ITEM_MATTRESS]
[NAME:mattress:mattresses]
[DESCRIPTION:The mattress to sleep on it, but no body wants to sleep on the floor.]
[SOFT_MAT]
[VALUE:15]
[TILE:254]
[ADJECTIVE:improvised]
[SIZE:600]
[UNIMPROVABLE]
[INCOMPLETE_ITEM]
In oder to build the bad in the bed builder's workshop the reactions were created in the
reaction_bedworkshop.tex file:
reaction_bedworkshop
[OBJECT:REACTION]
[REACTION:MAKE_BED_FRAME]
[NAME:Construct bed frame]
[BUILDING:BED_BUILDER:NONE]
[REAGENT:metal:600:BAR:NONE:NONE:NONE]
[METAL_ITEM_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_BED_FRAME:GET_MATERIAL_FROM_REAGENT:metal:NONE]
[SKILL:METALCRAFT]
[REACTION:MAKE_MATTRESS_FROM_CLOTH]
[NAME:Construct bed mattress from cloth]
[BUILDING:BED_BUILDER:NONE]
[REAGENT:stoff:40000:CLOTH:NONE:NONE:NONE]
[ANY_PLANT_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_MATTRESS:GET_MATERIAL_FROM_REAGENT:stoff:NONE]
[PRODUCT_TOKEN:mattress]
[SKILL:CLOTHESMAKING]
[REACTION:MAKE_MATTRESS_FROM_YARN]
[NAME:Construct bed mattress from yarn]
[BUILDING:BED_BUILDER:NONE]
[REAGENT:stoff:40000:CLOTH:NONE:NONE:NONE]
[ANY_YARN_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_MATTRESS:GET_MATERIAL_FROM_REAGENT:stoff:NONE]
[PRODUCT_TOKEN:mattress]
[SKILL:CLOTHESMAKING]
[REACTION:ASSEMBLE_BED]
[NAME:Assemble improvised bed]
[BUILDING:BED_BUILDER:NONE]
[REAGENT:frame:1:TOOL:ITEM_BED_FRAME:NONE:NONE]
[REAGENT:mattress:1:TOOL:ITEM_MATTRESS:NONE:NONE]
[PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:mattress:NONE]
[PRODUCT_TOKEN:bed]
The
entity_default.txt raw file needs to be updated so that the dwards know the reactions defined above. Add the following lines to your dwarfs:
[PERMITTED_BUILDING:BED_BUILDER]
[PERMITTED_REACTION:MAKE_BED_FRAME]
[PERMITTED_REACTION:MAKE_MATTRESS_FROM_CLOTH]
[PERMITTED_REACTION:MAKE_MATTRESS_FROM_YARN]
[PERMITTED_REACTION:ASSEMBLE_BED]
I tested it and I was able to produce a
pig tail bed.
The bed
- needs a metal frame and cloth mattress
- has has only the cloth material properties, because the mattress makes the bed comfortable:D
- can be placed as normal bed
- is know for every dwarf in the game
Is there a possibility to make the bed, so that one can see it is produces from two parts? (I did not check the description of the bed yet
)
I wanted all this things only to be known from a book for my fortress to have a challange, when i embark on a
no tree place. Is there a possibility that in world generation a dwarf nation discovers how to make this metal frame/mattress bed and my dwarfs need to learn this from a book or discover themself?