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 Plant 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.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
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: | ||
− | {{Quality|Fine}} | + | {{Quality|Fine|11:40, 18 May 2015 (UTC)}} |
− | {{av | + | {{av}} |
− | + | The default plants are stored in the plant_standard.txt file, while grasses are stored in plant_grasses.txt. | |
− | The | ||
− | + | ==Basic Tokens== | |
− | |||
− | |||
− | |||
− | ==Basic | ||
These tokens are specified for all plants and define their most basic characteristics. | These tokens are specified for all plants and define their most basic characteristics. | ||
Line 51: | Line 46: | ||
| | | | ||
*material_name | *material_name | ||
− | | Starts defining a new local plant material with the given name | + | | Starts defining a new local plant material with the given name and '''no''' properties. |
|- | |- | ||
Line 57: | Line 52: | ||
| | | | ||
*material_name | *material_name | ||
− | * | + | *old_material |
− | | Starts defining a new local plant material with the given name and using the properties of another | + | | Starts defining a new local plant material with the given name and using the properties of another local plant material. |
|- | |- | ||
Line 65: | Line 60: | ||
*material_name | *material_name | ||
*template_name | *template_name | ||
− | | Starts defining a new local plant material with the name | + | | Starts defining a new local plant material with the given name and using the properties of the specified material template. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 78: | Line 66: | ||
| | | | ||
* [[Material token|material]] | * [[Material token|material]] | ||
− | | Sets the basic material of the plant | + | | Sets the basic material of the plant. According to Toady, you can use other materials (for instance, iron) but the game may hiccup on plants that aren't structurally plants. For crops, said material should have [STRUCTURAL_PLANT_MAT] to permit proper stockpiling. Generally, this should be "LOCAL_PLANT_MAT:material_name", using a material defined using MATERIAL, USE_MATERIAL, or USE_MATERIAL_TEMPLATE. |
|} | |} | ||
− | ==Environment | + | ==Environment Tokens== |
These tokens, also applicable to all plants, specify where the plants grow. | These tokens, also applicable to all plants, specify where the plants grow. | ||
Line 121: | Line 109: | ||
| {{text anchor|WET}} | | {{text anchor|WET}} | ||
| | | | ||
− | | | + | | Allows the plant to grow near water features. |
|- | |- | ||
| {{text anchor|DRY}} | | {{text anchor|DRY}} | ||
− | | | + | | |
− | | | + | | Allows the plant to grow away from water features. |
|- | |- | ||
Line 136: | Line 124: | ||
|} | |} | ||
− | ==Growth | + | ==Growth Tokens== |
These tokens are used for all plants and specify growths growing on a plant. | These tokens are used for all plants and specify growths growing on a plant. | ||
Line 152: | Line 140: | ||
*name | *name | ||
| Defines a plant growth. Takes the below tokens as arguments. | | Defines a plant growth. Takes the below tokens as arguments. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 192: | Line 174: | ||
| {{text anchor|GROWTH_TRUNK_HEIGHT_PERC}} | | {{text anchor|GROWTH_TRUNK_HEIGHT_PERC}} | ||
| | | | ||
− | * | + | *integer:integer |
− | + | | | |
− | | | ||
− | |||
− | |||
|- | |- | ||
Line 207: | Line 186: | ||
| {{text anchor|GROWTH_TIMING}} | | {{text anchor|GROWTH_TIMING}} | ||
| | | | ||
− | *[[time]] | + | *[[time]] ticks (0-403200) |
| Specifies at which part of the year the growth appears. Default is all year round. | | Specifies at which part of the year the growth appears. Default is all year round. | ||
Line 222: | Line 201: | ||
*item tile | *item tile | ||
*color | *color | ||
− | * | + | *timing (0-403200), ALL or NONE |
*priority | *priority | ||
− | | Specifies the appearance of the growth. Can be specified more than once, for example for autumn leaves. Transitions between different timing periods will happen gradually over the course of 2000 ticks. | + | | Specifies the appearance of the growth. Can be specified more than once, for example for autumn leaves. Transitions between different timing periods will happen gradually over the course of 2000 ticks. |
The GROWTH_PRINT tile will only be displayed when the growth in question is actually present, even if its timing parameter is ALL. | The GROWTH_PRINT tile will only be displayed when the growth in question is actually present, even if its timing parameter is ALL. | ||
Line 244: | Line 223: | ||
|} | |} | ||
− | ==Tree | + | ==Tree Tokens== |
These tokens are used only for trees. | These tokens are used only for trees. | ||
Line 317: | Line 296: | ||
| | | | ||
*integer | *integer | ||
− | | Similar to [[Plant_token#BRANCH_DENSITY|BRANCH_DENSITY]] for thick branches. | + | | Similar to [[Plant_token#BRANCH_DENSITY|BRANCH_DENSITY]] for thick branches. Values outside 0-3 can cause crashes. {{bug|10419}} |
|- | |- | ||
Line 323: | Line 302: | ||
| | | | ||
*integer | *integer | ||
− | | Similar as [[Plant_token#BRANCH_RADIUS|BRANCH_DENSITY]] for thick branches. | + | | Similar as [[Plant_token#BRANCH_RADIUS|BRANCH_DENSITY]] for thick branches. |
|- | |- | ||
Line 412: | Line 391: | ||
| {{text anchor|TREE_HAS_MUSHROOM_CAP}} | | {{text anchor|TREE_HAS_MUSHROOM_CAP}} | ||
| | | | ||
− | | The tree has a rounded cap-hood like a giant mushroom. This severely stunts a tree's maximum height - see the [ | + | | The tree has a rounded cap-hood like a giant mushroom. This severely stunts a tree's maximum height - see the [http://www.bay12games.com/dwarves/mantisbt/view.php?id=7313#c26413 bug report.] |
|- | |- | ||
Line 512: | Line 491: | ||
|} | |} | ||
− | ==Shrub | + | ==Shrub Tokens== |
These tokens are used for non-grass, non-tree plants. | These tokens are used for non-grass, non-tree plants. | ||
Line 568: | Line 547: | ||
| | | | ||
*size | *size | ||
− | | The maximum stack size collected when gathered via herbalism (possibly also from farm plots?). Defaults to 5 | + | | The maximum stack size collected when gathered via herbalism (possibly also from farm plots?). Defaults to 5. |
|- | |- | ||
Line 618: | Line 597: | ||
| | | | ||
* [[Material token|material]] | * [[Material token|material]] | ||
− | | Permits milling the plant at a [[quern]] or [[millstone]] into a powder made of this material and allows its use in entity resources. Said material should have [POWDER_MISC_PLANT] to permit proper stockpiling | + | | Permits milling the plant at a [[quern]] or [[millstone]] into a powder made of this material and allows its use in entity resources. Said material should have [POWDER_MISC_PLANT] to permit proper stockpiling. |
|- | |- | ||
Line 657: | Line 636: | ||
|} | |} | ||
− | ==Grass | + | ==Grass Tokens== |
These tokens are used only for [[grass]]es. | These tokens are used only for [[grass]]es. | ||
Line 708: | Line 687: | ||
{{Category|Modding}} | {{Category|Modding}} | ||
{{Category|Tokens}} | {{Category|Tokens}} | ||
− |