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 Graphics 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| | + | {{Quality|Unrated}} |
{{av}} | {{av}} | ||
{{Modding}} | {{Modding}} | ||
:{{for/see|an explanation of how to use the various graphics types|[[Graphics]]}} | :{{for/see|an explanation of how to use the various graphics types|[[Graphics]]}} | ||
+ | |||
The <code>[OBJECT:GRAPHICS]</code> [[token]] defines the use of various tile-based graphics in the game. As of version 50.01, graphics tokens have been greatly expanded to accommodate the release of the Steam & Itch premium version. These tokens, and explanations on how to use them, are listed below; the list will expand as the tokens are discovered and understood. | The <code>[OBJECT:GRAPHICS]</code> [[token]] defines the use of various tile-based graphics in the game. As of version 50.01, graphics tokens have been greatly expanded to accommodate the release of the Steam & Itch premium version. These tokens, and explanations on how to use them, are listed below; the list will expand as the tokens are discovered and understood. | ||
+ | |||
== Creature Graphics == | == Creature Graphics == | ||
Creature graphics are found within graphics_creature_x files (such as graphics_creature_domestic or graphics_creature_layered). All graphics files must begin with the file name, followed by the <code>[OBJECT:GRAPHICS]</code> type that tells the game that the file contains graphics definitions. A more detailed explanation on how to use these can be found in [[Graphics#Creature_Graphics|creature graphics]]. | Creature graphics are found within graphics_creature_x files (such as graphics_creature_domestic or graphics_creature_layered). All graphics files must begin with the file name, followed by the <code>[OBJECT:GRAPHICS]</code> type that tells the game that the file contains graphics definitions. A more detailed explanation on how to use these can be found in [[Graphics#Creature_Graphics|creature graphics]]. | ||
+ | |||
=== Types === | === Types === | ||
Line 41: | Line 44: | ||
* [[Creature token|creature id]] | * [[Creature token|creature id]] | ||
| Format for beginning a [[Graphics#Statue_Graphics|creature statue definition]]. Defines a 1x2 vertical rectangle to be displayed when a statue depicts one of these creatures. | | Format for beginning a [[Graphics#Statue_Graphics|creature statue definition]]. Defines a 1x2 vertical rectangle to be displayed when a statue depicts one of these creatures. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 53: | Line 49: | ||
| | | | ||
* [[Creature token|creature id]] | * [[Creature token|creature id]] | ||
− | | Graphics for a 3x2 rectangle | + | | Graphics for a 3x2 rectangle that is used exclusively for representing Forgotten Beasts based on their body parts. Uses [[Graphics#Forgotten_Beast_Graphics|forgotten beast graphics]]. |
|} | |} | ||
Line 74: | Line 70: | ||
|- | |- | ||
− | | {{text anchor|ANIMATED}} || Displayed if the creature is raised from the | + | | {{text anchor|ANIMATED}} || Displayed if the creature is raised from the using an I_EFFECT:ANIMATE interaction. |
|- | |- | ||
Line 86: | Line 82: | ||
|} | |} | ||
− | |||
=== Basic creature sprite types === | === Basic creature sprite types === | ||
Line 99: | Line 94: | ||
|- | |- | ||
− | | {{text_anchor|Unit type}} || Any [[Unit type token]] can be used. You may also append a | + | | {{text_anchor|Unit type}} || Any [[Unit type token]] can be used. You may also append a basic condition as above to further specify. |
|- | |- | ||
− | | {{text_anchor|Position}} || Any [[Position token]] can be used, such as MONARCH, BROKER etc. All position tokens are raw-defined; any modded positions can have their own graphics. You may also append a | + | | {{text_anchor|Position}} || Any [[Position token]] can be used, such as MONARCH, BROKER etc. All position tokens are raw-defined; any modded positions can have their own graphics. You may also append a basic condition as above to further specify. |
|- | |- | ||
Line 117: | Line 112: | ||
|} | |} | ||
− | |||
=== Layered Conditions === | === Layered Conditions === | ||
Layers aren't very useful on their own, so they come with a set of conditions to define how when they are displayed and how they interact. | Layers aren't very useful on their own, so they come with a set of conditions to define how when they are displayed and how they interact. | ||
Line 132: | Line 126: | ||
* condition | * condition | ||
| Creature<br>Graphics | | Creature<br>Graphics | ||
− | | Begins defining a layer set for a creature's graphics. Valid values of ''condition'' are DEFAULT | + | | Begins defining a layer set for a creature's graphics. Valid values of ''condition'' are DEFAULT or any valid values |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | {{text_anchor| | + | | {{text_anchor|LAYER_GROUP}} || || Layer<br>Group |
− | + | | Begins defining a layer group. Only the first layer in a layer group with all its conditions satisfied will be rendered. | |
− | |||
− | || Layer<br>Group | ||
− | | | ||
|- | |- | ||
Line 249: | Line 222: | ||
|- | |- | ||
− | | {{text_anchor|CONDITION_CHILD}} || || | + | | {{text_anchor|CONDITION_CHILD}} || General || |
|| Checks if the creature is a child or baby. | || Checks if the creature is a child or baby. | ||
|- | |- | ||
− | | {{text_anchor|CONDITION_NOT_CHILD}} || || | + | | {{text_anchor|CONDITION_NOT_CHILD}} || General || |
|| Checks if the creature is an adult. | || Checks if the creature is an adult. | ||
|- | |- | ||
− | | {{text_anchor|CONDITION_GHOST}} || || | + | | {{text_anchor|CONDITION_GHOST}} || General || |
|| Checks if the creature is a ghost. | || Checks if the creature is a ghost. | ||
Line 319: | Line 292: | ||
This condition should be within a [LAYER:... ] that has a similar graphic to the on in the TISSUE_SWAP. | This condition should be within a [LAYER:... ] that has a similar graphic to the on in the TISSUE_SWAP. | ||
The current {{token|CONDITION_TISSUE_LAYER|g}} group must also include a {{token|TISSUE_MIN_LENGTH|g}}. | The current {{token|CONDITION_TISSUE_LAYER|g}} group must also include a {{token|TISSUE_MIN_LENGTH|g}}. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |