Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modding in furniture  (Read 673 times)

Tizer

  • Bay Watcher
  • [PREFSTRING:awesome top hat]
    • View Profile
Modding in furniture
« on: May 29, 2009, 06:25:51 am »

Is there a way to made custom furniture into DF? Because I want to make a temple of sorts and without an alter it would just be a fancy room. All it has to is a piece of furniture with no special properties except maybe so you can't walk onto it like a statue.
Logged

Katsuun

  • Bay Watcher
  • [Loli_Weaboo]
    • View Profile
Re: Modding in furniture
« Reply #1 on: May 29, 2009, 08:04:45 am »

No, furniture is hard-coded, I belive.
Logged
Quote
how would a Fortress based curse work?

Quote
Rocks fall, everyone dies.

Sans context.

Kumagoro

  • Bay Watcher
    • View Profile
Re: Modding in furniture
« Reply #2 on: May 29, 2009, 11:03:42 am »

Yes furniture is hard coded


You could just use tables or something
Logged

Bloogonis

  • Bay Watcher
  • Steamyworks
    • View Profile
Re: Modding in furniture
« Reply #3 on: May 29, 2009, 11:54:01 am »

cant you make furniture using reactions? they would have to be copies for the most part of an existing furniture item, but you can change its name, I think.

you could make a reaction that creates a statue called an altar, i think... i only just started moding recently so I'm not certain if a reaction called [REACTION:Create_Altar] would result in an item called an altar though :-\
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Modding in furniture
« Reply #4 on: May 29, 2009, 11:56:58 am »

It doesn't matter what the reaction is called. Why should it?
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Neoadept

  • Bay Watcher
  • Would you look at that hat?
    • View Profile
Re: Modding in furniture
« Reply #5 on: May 29, 2009, 01:02:24 pm »

It doesn't, but it does matter what you use as a material.

Here's what you do:

Make a custom stone called "altar" that doesn't occur naturally, like this:
Code: [Select]
[MATGLOSS_STONE:ALTAR]
[NAME:altar][COLOR:5:0:0][TILE:156]
[ITEM_SYMBOL:'*']
[VALUE:20]
If you want, you can add a dozen or so spaces after "altar", which will push the table part off screen, making the in game item look like it's just called "Altar".

Then you make a reaction at the smelter to produce it, like so:
Code: [Select]
[REACTION:MAKE_ALTAR]
[NAME:make altar]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:NO_MATGLOSS]
[PRODUCT:100:1:TABLE:NO_SUBTYPE:STONE:ALTAR]

Congratulations, you can now produce altars at the smelter!  They are buildable as tables and can be used to designate rooms (only dining rooms, sadly, but you want people hanging around church as a meeting hall, right?)  You can even change the value of the stone if you want them to be expensive, which would also increase the room value.

There may be a few hiccups, but it should be almost exactly what you're looking for.

This method is adaptable to most kinds of furniture, so if anyone wants to use this in their own mods, go right ahead.
Logged

Blakmane

  • Bay Watcher
    • View Profile
Re: Modding in furniture
« Reply #6 on: May 29, 2009, 08:12:12 pm »

you'll probably want to bump up the value quite a bit, as the base altar table will have no quality modifiers.
Logged