Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Bed made of metal frame and cloth mattress  (Read 660 times)

Frectorius

  • Bay Watcher
    • View Profile
Bed made of metal frame and cloth mattress
« on: August 14, 2018, 02:27:48 am »

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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
[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 :P)
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?
Logged

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: Bed made of metal frame and cloth mattress
« Reply #1 on: August 14, 2018, 06:10:16 am »

Nice work!
OldGenesis has beds just brute forced, single stage reaction, no separate frame stage.

Code: [Select]
[REACTION:FORGE_ADAMANTINE_BED]
   [NAME:forge adamantine bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_ALUMINUM_BED]
   [NAME:forge aluminum bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:ALUMINUM]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_BILLON_BED]
   [NAME:forge billon bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:BILLON]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
 
[REACTION:FORGE_BLACK_BRONZE_BED]
   [NAME:forge black bronze bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:BLACK_BRONZE]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_BLACK_STEEL_BED]
   [NAME:forge black steel bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:BLACK_STEEL]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_BRASS_BED]
   [NAME:forge brass bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:BRASS]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_BRONZE_BED]
   [NAME:forge bronze bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:BRONZE]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_COARSE_IRON_BED]
   [NAME:forge coarse iron bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PURE_IRON]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_COBALT_BED]
   [NAME:forge cobalt bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:COBALT]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
 
[REACTION:FORGE_COPPER_BED]
   [NAME:forge copper bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:COPPER]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_ELECTRUM_BED]
   [NAME:forge electrum bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:ELECTRUM]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_GOLD_BED]
   [NAME:forge gold bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:GOLD]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]     
   
[REACTION:FORGE_IRON_BED]
   [NAME:forge iron bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:IRON]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]   
   
[REACTION:FORGE_LEAD_BED]
   [NAME:forge lead bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:LEAD]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_MITHRIL_BED]
   [NAME:forge mithril bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:MITHRIL]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_MOON_SILVER_BED]
   [NAME:forge moon silver bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:MOON_SILVER]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_NICKEL_BED]
   [NAME:forge nickel bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:NICKEL]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
   
[REACTION:FORGE_NICKEL_SILVER_BED]
   [NAME:forge nickel silver bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:NICKEL_SILVER]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_PEWTER_FINE_BED]
   [NAME:forge pewter (fine) bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PEWTER_FINE]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_PEWTER_LAY_BED]
   [NAME:forge pewter (lay) bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PEWTER_LAY]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_PEWTER_TRIFLE_BED]
   [NAME:forge pewter (trifle) bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PEWTER_TRIFLE]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_PIG_IRON_BED]
   [NAME:forge pig iron bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PIG_IRON]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_PLATINUM_BED]
   [NAME:forge platinum bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:PLATINUM]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_RED_STEEL_BED]
   [NAME:forge red steel bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:RED_STEEL]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_ROSE_GOLD_BED]
   [NAME:forge rose gold bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:ROSE_GOLD]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_SILVER_BED]
   [NAME:forge silver bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:SILVER]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_SPELLWOOD_BED]
   [NAME:forge spellwood bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:SPELLWOOD]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_STEEL_BED]
   [NAME:forge steel bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:STEEL]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]

[REACTION:FORGE_STERLING_SILVER_BED]
   [NAME:forge sterling silver bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:STERLING_SILVER]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_SUN_GOLD_BED]
   [NAME:forge sun gold bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:SUN_GOLD]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_TIN_BED]
   [NAME:forge tin bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:TIN]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
   
[REACTION:FORGE_ZINC_BED]
   [NAME:Forge zinc bed]
   [BUILDING:FURNITURE_WORKSHOP:NONE]
   [REAGENT:A:300:BAR:NO_SUBTYPE:METAL:ZINC]
   [REAGENT:B:1:CLOTH:NONE:NONE:NONE]
   [PRODUCT:100:1:BED:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [FUEL]
   [SKILL:FORGE_FURNITURE]
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Bed made of metal frame and cloth mattress
« Reply #2 on: August 14, 2018, 08:56:50 am »

Twbt also allows your cloth beds to look differently, if thats of interest to you. I was thinking of making hammocks that way :-D
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Bed made of metal frame and cloth mattress
« Reply #3 on: August 15, 2018, 08:53:25 am »

This belongs to the Mod subforum. Nevertheless, I like your idea very much and I'm tempted to try it out someday. Right now I have a world generated without these comfy beds and already a fortress running. But I will consider trying it for the next worldgen.

Does this mod also specify a keyboard shortcut for the commands in the bed builder's workshop?

Do beds, bed frames and mattresses have quality levels and can they be decorated?

And, most importantly, will dwarves get happy thoughts when sleeping in these comfy beds?

I know I chose the wrong sub-forum and i am terribly sorry about that.
I did not chose any shortcuts so far, because in the beginning I used one, that was already occupied... I think I can add them, if you have any good suggestion for a short key.

I am not sure about the quality level, but as far as I understood the mod I made, they get a quality level and they can be decorated. But because the Bed in the end only gets its material from the mattress, you will lose the value of the bed frame. I think beds are hard-coded and cant be modified into multiple part... If normal wood beds can be decorated so can this soft bed.

Because in the end, we only end up with a "pig tail bed" I think the dwarf will get the same happy thoughts as a normal wooden bed. (Can this be modified?)

If I am correct and beds are hard-coded, then bed mods will always be beds but with different material 
For hotkey, could use HOTKEY_BUILD_BED, since that is what you will be doing. Ah, though I don't know if this is doable.

Even if you could modify bed into multiple parts, items like instruments and traction benches suffer from practically the same problem; quality, etc. aren't kept, so you can lose value by assembling an instrument. I'm not a modder, but perhaps you could give the bed decoration based on the metal frame you used?

Though for sleeping on things that aren't hardcoded beds, the job structure does list a building, so it might be possible to reroute them onto your modded bed and use that.

I'm not sure what you'd modify the happy thought into. You can use other thought types and feelings as well as modifying the strength, or you could modify the text displayed whenever a player looks at it - the thought doesn't record which bed it concerns, though, so you'd have to keep track of or mark those thoughts somehow yourself.

For the case of modded bed, though, you'd probably edit the upset at sleeping on the ground into happy thought at sleeping in a bed.
« Last Edit: August 15, 2018, 08:58:44 am by Fleeting Frames »
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Bed made of metal frame and cloth mattress
« Reply #4 on: August 15, 2018, 07:05:43 pm »

you should add this to the ASSEMBLE_BED reaction

Code: [Select]
[IMPROVEMENT:100:bed:BANDS:GET_MATERIAL_FROM_REAGENT:frame:NONE] or COVERED

so you'd get:

"This is a wool bed, it is encircled with bands of <frame material>"
Logged