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|Exceptional}}
+
{{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.
 
|-
 
| {{text anchor|STATUE_CREATURE_CASTE_GRAPHICS}}
 
|
 
* [[Creature token|creature id]]
 
* [[Caste|Caste ID]]
 
| Format for beginning a [[Graphics#Statue_Graphics|creature statue definition]] while specifying caste. Defines a 1x2 vertical rectangle to be displayed when a statue depicts one of these creatures.
 
  
 
|-
 
|-
Line 132: Line 128:
 
* condition
 
* condition
 
| Creature<br>Graphics
 
| Creature<br>Graphics
| Begins defining a layer set for a creature's graphics.  Valid values of ''condition'' are DEFAULT, PORTRAIT{{version|50.13}}, or CORPSE. Valid values for basic conditions may not work.{{verify}}
+
| Begins defining a layer set for a creature's graphics.  Valid values of ''condition'' are DEFAULT or any valid values  
  
 
|-
 
|-
| {{text_anchor|LS_PALETTE}}{{version|50.13}} ||
+
| {{text_anchor|LAYER_GROUP}} ||   || Layer<br>Group
*  name
+
| Begins defining a layer group. Only the first layer in a layer group with all its conditions satisfied will be rendered.
|| Layer<br>Set
 
|| Begins defining a palette for the layer set. Its name can be referenced by {{token|USE_PALETTE|g}}. Unlike the palettes used to render all [[descriptor color token]]s, it can be of arbitrary length.
 
 
 
|-
 
| {{text_anchor|LS_PALETTE_FILE}}{{version|50.13}} ||
 
* file name
 
| Palette
 
| The file name of the 8bit RGBA (sometimes called 32bit) in the <tt>/graphics/images</tt> folder of the mod, such as <tt>images/portraits/dwarf_portrait_body_palette.png</tt>.
 
 
 
|-
 
| {{text_anchor|LS_PALETTE_DEFAULT}}{{version|50.13}} ||
 
* integer
 
| Palette
 
| Defines the default row of a layer set palette, conventionally 0. The exact color values on this row will be replaced on layer images with the colors in the same column, based on what row is passed as an argument to {{token|USE_PALETTE|g}}.
 
 
 
|-
 
| {{text_anchor|LG_CONDITION_BP}}{{version|50.13}} ||
 
*  selection criteria BY_TYPE, BY_CATEGORY, BY_TOKEN
 
*  category, type, or token
 
|| Layer<br>Group
 
|| Allows the entire layer group (rather than an individual layer) to be switched on and off depending on the conditions of a body part. Should accept the same tokens {{token|CONDITION_BP|g}} does. {{verify}}
 
  
 
|-
 
|-
Line 249: Line 224:
  
 
|-
 
|-
| {{text_anchor|CONDITION_CHILD}} || || General
+
| {{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}} || || General
+
| {{text_anchor|CONDITION_NOT_CHILD}} || General ||
 
|| Checks if the creature is an adult.
 
|| Checks if the creature is an adult.
  
 
|-
 
|-
| {{text_anchor|CONDITION_GHOST}} || || General
+
| {{text_anchor|CONDITION_GHOST}} || General ||
 
|| Checks if the creature is a ghost.
 
|| Checks if the creature is a ghost.
  
Line 319: Line 294:
 
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}}.
 
|-
 
| {{text_anchor|ITEM_QUALITY}}{{version|50.13}} ||
 
* integer
 
| Armor<br>Wieldables{{verify}}
 
|| Checks the current {{token|CONDITION_ITEM_WORN|g}}'s [[quality]]. 0 is base quality, 5 is masterwork.  See [CONDITION_MATERIAL_FLAG:IS_CRAFTED_ARTIFACT] for [[artifact]]-quality items.
 
 
|-
 
| {{text_anchor|USE_PALETTE}}{{version|50.13}} ||
 
* layer set palette
 
* row
 
| General
 
|| Colors the layer using that row of the layer-set-specific {{token|LS_PALETTE|g}}.
 
 
|-
 
| {{text_anchor|USE_STANDARD_PALETTE_FROM_ITEM}}{{version|50.13}} || || Armor<br>Wieldables{{verify}}
 
|| Uses the default palette to render the layer based on the [[Material definition token#STATE_COLOR|color]] of the current {{token|CONDITION_ITEM_WORN|g}}.
 
 
|-
 
| {{text_anchor|CONDITION_BP}}{{version|50.13}} ||
 
*  selection criteria BY_TYPE, BY_CATEGORY, BY_TOKEN
 
*  category, type, or token
 
| Body
 
|| Defines a body part graphic using standard [[body token]] selection criteria.
 
 
|-
 
| {{text_anchor|BP_APPEARANCE_MODIFIER_RANGE}}{{version|50.13}} ||
 
*  QUALITY
 
*  minimum
 
*  maximum
 
| Body
 
|| Checks if current {{token|CONDITION_BP|g}}'s {{token|BP_APPEARANCE_MODIFIER|c}} falls within the chosen range.
 
 
|-
 
| {{text_anchor|BP_PRESENT}}{{version|50.13}} || || Body
 
|| Checks if the current {{token|CONDITION_BP|g}} is present and not destroyed, pulped, or severed. Can also be applied to {{token|LG_CONDITION_BP|g}}.
 
 
|-
 
| {{text_anchor|BP_SCARRED}}{{version|50.13}} || || Body
 
|| Checks if the current {{token|CONDITION_BP|g}} is scarred. Seems to also require {{token|BP_PRESENT|g}} to avoid illogical results. {{verify}}
 
  
 
|}
 
|}

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page:

This page is a member of 2 hidden categories: