Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Custom Buildings  (Read 1356 times)

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Custom Buildings
« on: April 03, 2010, 06:43:41 am »

I've tried messing around with custom workshop raws. I've got most of the tags figured out, but there are a few that have left me puzzled.

Code: [Select]
[OBJECT:BUILDING]

[BUILDING_WORKSHOP:SOAP_MAKER]
    [NAME:Soap Maker's Workshop]
    [NAME_COLOR:7:0:1]
    [DIM:3:3]  - Dimensions width:height
    [WORK_LOCATION:2:2]  - Where the dwarf sits
    [BUILD_LABOR:SOAP_MAKER]
    [BUILD_KEY:CUSTOM_SHIFT_S]
    [BLOCK:1:0:0:0]
    [BLOCK:2:0:0:0]
    [BLOCK:3:0:0:0]
    [TILE:0:1:' ':' ':150]  - The tiles of the workshop in the various building stages  [TILE:stage:row:tile0:tile1: ... :tile#]
    [TILE:0:2:' ':' ':'/']
    [TILE:0:3:'-':' ':' ']
    [COLOR:0:1:0:0:0:0:0:0:6:0:0]  - The color of each tile [COLOR:stage:row:color0:color1: ... :color#]
    [COLOR:0:2:0:0:0:0:0:0:6:0:0]
    [COLOR:0:3:6:0:0:0:0:0:0:0:0]
    [TILE:1:1:' ':' ':'=']
    [TILE:1:2:'-':' ':8]
    [TILE:1:3:' ':' ':150]
    [COLOR:1:1:0:0:0:0:0:0:6:0:0]
    [COLOR:1:2:6:0:0:0:0:0:6:0:0]
    [COLOR:1:3:0:0:0:0:0:0:6:0:0]
    [TILE:2:1:'-':' ':8]
    [TILE:2:2:' ':' ':8]
    [TILE:2:3:' ':150:' ']
    [COLOR:2:1:6:0:0:0:0:0:6:0:0]
    [COLOR:2:2:0:0:0:0:0:0:6:0:0]
    [COLOR:2:3:0:0:0:6:0:0:0:0:0]
    [TILE:3:1:150:' ':8]
    [TILE:3:2:' ':' ':8]
    [TILE:3:3:' ':240:' ']
    [COLOR:3:1:6:0:0:0:0:0:6:7:0]
    [COLOR:3:2:0:0:0:0:0:0:6:7:0]
    [COLOR:3:3:0:0:0:7:0:1:0:0:0]
    [BUILD_ITEM:1:BUCKET:NONE:NONE:NONE][EMPTY][CAN_USE_ARTIFACT]
    [BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

What I need help with are the [BLOCK] and [BUILD_ITEM] tags. I know the latter defines which items are used to build the shop, but what do all the NONEs and the BUILDMAT do?
Logged

profit

  • Bay Watcher
  • Finely Crafted Engravings... Or it didn't happen.
    • View Profile
Re: Custom Buildings
« Reply #1 on: April 03, 2010, 07:14:21 am »

I believe [BUILDMAT] Means any build Capable material, IE a block of iron, a block of stone, a block of wood or a log.

[WORTHLESS_STONE_ONLY] Means any stone you have set as green in your z menu stone list.

The NONE:NONE:NONE:NONE basicly means it does not require anything specific.

If it was [BUILD_ITEM:1:BOULDER:NONE:NONE:NONE] It would require a piece of unfinished stone.

If it was [BUILD_ITEM:1000:BAR:NO_SUBTYPE:METAL:BLACK_BRONZE] it would require 1000 bars of black bronze.
Logged
Mods and the best utilities for dwarf fortress
Community Mods and utilities thread.

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Custom Buildings
« Reply #2 on: April 03, 2010, 09:27:14 am »

Oh I get it, thanks. What about the [BLOCK] tag?
Logged

profit

  • Bay Watcher
  • Finely Crafted Engravings... Or it didn't happen.
    • View Profile
Re: Custom Buildings
« Reply #3 on: April 03, 2010, 12:21:07 pm »

I think it means if the dwarf can walk through the tile or not at the building.

So in your example, I think a dwarf can walk through any of the tiles of the building and none block them.
Logged
Mods and the best utilities for dwarf fortress
Community Mods and utilities thread.

Aklyon

  • Bay Watcher
  • Fate~
    • View Profile
Re: Custom Buildings
« Reply #4 on: April 03, 2010, 12:37:56 pm »

Is there anyway to specify what to build at a custom workshop?
Logged
Crystalline (SG)
Sigtext
Quote from: RedKing
It's known as the Oppai-Kaiju effect. The islands of Japan generate a sort anti-gravity field, which allows breasts to behave as if in microgravity. It's also what allows Godzilla and friends to become 50 stories tall, and lets ninjas run up the side of a skyscraper.

Upright Path

  • Bay Watcher
    • View Profile
Re: Custom Buildings
« Reply #5 on: April 03, 2010, 02:05:27 pm »

Yes, you define a set of custom reactions, done at that custom building.

One of the Reactions predefined by Toady uses the Soap Maker builder defined in the Custom Buildings raw.
« Last Edit: April 03, 2010, 02:09:03 pm by Upright Path »
Logged