v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing v0.31:Building token
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
These tokens control the functionality of custom buildings. | These tokens control the functionality of custom buildings. | ||
− | + | A good first try at modding buildings is building a bug burning workshop. http://www.bay12forums.com/smf/index.php?topic=54058.0 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | This works around the bug with critters not rotting by giving you a building to cremate them into ash. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The raw text for the building itself: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | start tag and lookup ID for adding the building to entities | |
− | + | [BUILDING_WORKSHOP:MAGMA_CREMATORIUM] | |
− | + | ||
− | + | name to display on menus | |
− | + | [NAME:Magma Crematorium] | |
− | + | ||
− | | | + | color to use for name |
+ | [NAME_COLOR:7:0:1] | ||
+ | |||
+ | dimensions of building | ||
+ | [DIM:3:3] | ||
+ | |||
+ | location where your dwarf will stand while working | ||
+ | [WORK_LOCATION:2:3] | ||
+ | |||
+ | labor used to construct building (can be hard to guess- try running the .exe through a hex editor) | ||
+ | [BUILD_LABOR:MASON] | ||
+ | |||
+ | shortcut in build menu | ||
+ | [BUILD_KEY:CUSTOM_SHIFT_C] | ||
+ | |||
+ | which tiles block movement- 1 blocks, 0 is passable; [BLOCK:line number:tile1:tile2...] | ||
+ | [BLOCK:1:0:0:0] | ||
+ | [BLOCK:2:0:0:0] | ||
+ | [BLOCK:3:0:0:0] | ||
+ | |||
+ | graphics for unbuilt workshop tiles [TILE:build_state:line:tile1:tile2...] | ||
+ | [TILE:0:1:' ':' ':236] | ||
+ | [TILE:0:2:' ':236:'/'] | ||
+ | [TILE:0:3:'|':' ':' '] | ||
+ | |||
+ | color for unbuilt workshop tiles [COLOR:build_state:line:tile1fg:tile1bg:tile1brightness:...] | ||
+ | [COLOR:0:1:0:0:0:0:0:0:0:0:1] | ||
+ | [COLOR:0:2:0:0:0:0:0:1:6:0:0] | ||
+ | [COLOR:0:3:6:0:0:0:0:0:0:0:0] | ||
+ | |||
+ | graphics for the rest of the build states | ||
+ | [TILE:1:1:236:' ':227] | ||
+ | [TILE:1:2:'|':' ':8] | ||
+ | [TILE:1:3:' ':' ':236] | ||
+ | |||
+ | [COLOR:1:1:0:0:1:0:0:0:0:0:1] | ||
+ | [COLOR:1:2:6:0:0:0:0:0:0:0:1] | ||
+ | [COLOR:1:3:0:0:0:0:0:0:0:0:1] | ||
+ | |||
+ | [TILE:2:1:201:227:187] | ||
+ | [TILE:2:2:200:8:188] | ||
+ | [TILE:2:3:' ':' ':' '] | ||
+ | |||
+ | [COLOR:2:1:0:0:1:0:0:1:0:0:1] | ||
+ | [COLOR:2:2:0:0:1:0:0:1:0:0:1] | ||
+ | [COLOR:2:3:0:0:0:0:0:0:0:0:0] | ||
+ | |||
+ | [TILE:3:1:201:227:187] | ||
+ | [TILE:3:2:200:8:188] | ||
+ | [TILE:3:3:150:210:253] | ||
+ | |||
+ | [COLOR:3:1:0:0:1:0:0:1:0:0:1] | ||
+ | [COLOR:3:2:0:0:1:0:4:1:0:0:1] | ||
+ | [COLOR:3:3:0:0:1:6:0:0:7:0:1] | ||
+ | |||
+ | materials used to construct the | ||
+ | workshop [BUILD_ITEM:quantity:item type:item subtype:mat type:mat subtype] tokens | ||
+ | [BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Tokens that are availabe (from hexdump of the exe) | |
− | + | BUILDING_FURNACE | |
− | + | REACTION_CLASS | |
− | + | HAS_MATERIAL_REACTION_PRODUCT | |
− | + | UNROTTEN | |
+ | CONTAINS_LYE | ||
+ | POTASHABLE | ||
+ | NOT_WEB | ||
+ | WEB_ONLY | ||
+ | EMPTY | ||
+ | NOT_CONTAIN_BARREL_ITEM | ||
+ | BAG | ||
+ | GLASS_MATERIAL | ||
+ | BUILDMAT | ||
+ | FIRE_BUILD_SAFE | ||
+ | MAGMA_BUILD_SAFE | ||
+ | CAN_USE_ARTIFACT | ||
+ | WORTHLESS_STONE_ONLY | ||
+ | ANY_PLANT_MATERIAL | ||
+ | ANY_SILK_MATERIAL | ||
+ | ANY_SOAP_MATERIAL | ||
+ | ANY_LEATHER_MATERIAL | ||
+ | ANY_BONE_MATERIAL | ||
+ | ANY_SHELL_MATERIAL | ||
+ | ANY_TOOTH_MATERIAL | ||
+ | ANY_HORN_MATERIAL. | ||
+ | ANY_PEARL_MATERIAL | ||
+ | USE_BODY_COMPONENT | ||
+ | METAL_ORE | ||
+ | MIN_DIMENSION | ||
+ | BUILD_ITEM | ||
+ | NAME | ||
+ | NAME_COLOR | ||
+ | BUILD_LABOR | ||
+ | DIM | ||
+ | WORK_LOCATION | ||
+ | BUILD_KEY | ||
+ | NEEDS_MAGMA | ||
+ | BLOCK | ||
+ | TILE | ||
− | |||
− | |||
− | + | I'll come back later to add definitions for these, but many can be found at [[Reactions]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Category|Modding}} | {{Category|Modding}} | ||
− |