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.

Difference between revisions of "Graphics token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (added {{old}} template)
(Added some tokens using the info gathered on [https://gitlab.com/df-modding-tools/df-raw-language-server/ the DF language server])
Line 11: Line 11:
 
{{alphabetical TOC|style=margin: 1em auto;}}
 
{{alphabetical TOC|style=margin: 1em auto;}}
  
==C==
+
==Creature Graphics Tokens==
 +
The below tokens are for CREATURE_GRAPHICS objects
 +
 
 +
{| {{prettytable}}
 +
|- bgcolor="#ddd"
 +
! width="20%" | Token
 +
! width="20%" | Arguments
 +
! width="50%" | Description
 +
 
 +
|-
 +
| {{text anchor|ANIMATED}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
|-
 +
| {{text anchor|CORPSE}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
|-
 +
| {{text anchor|DEFAULT}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
|-
 +
| {{text anchor|LIST_ICON}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position,
 +
*ColorTypeEnum (according to the [https://gitlab.com/df-modding-tools/df-raw-language-server/-/blob/dev/df_ls_structure/src/objects/graphics.rs DF language server], unclear what it means)
 +
|
 +
 
 +
|-
 +
| {{text anchor|SKELETON}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
 
 +
|-
 +
| {{text anchor|SKELETON_WITH_SKULL}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
|}
 +
 
 +
=== Vermin ===
 +
Tokens for vermin graphics
 +
 
 
{| {{prettytable}}
 
{| {{prettytable}}
 
|- bgcolor="#ddd"
 
|- bgcolor="#ddd"
 
! width="20%" | Token
 
! width="20%" | Token
! width="10%" | Type
 
 
! width="20%" | Arguments
 
! width="20%" | Arguments
 
! width="50%" | Description
 
! width="50%" | Description
  
 
|-
 
|-
| {{text anchor|CREATURE_GRAPHICS}}
+
| {{text anchor|VERMIN}}
| Creature Reference
+
|  
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
|
 +
 
 +
|-
 +
| {{text anchor|VERMIN_ALT}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| Image cycles every 1 second.
 +
 
 +
|-
 +
| {{text anchor|SWARM_SMALL}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| For swarming vermin like [[fly|flies]] and [[fairy|fairies]].
 +
 
 +
|-
 +
| {{text anchor|SWARM_MEDIUM}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| For swarming vermin like [[fly|flies]] and [[fairy|fairies]].
 +
 
 +
|-
 +
| {{text anchor|SWARM_LARGE}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| For swarming vermin like [[fly|flies]] and [[fairy|fairies]].
 +
 
 +
|-
 +
| {{text anchor|LIGHT_VERMIN}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| For [[firefly|fireflies]] etc.
 +
 
 +
|-
 +
| {{text anchor|LIGHT_VERMIN_ALT}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| Like {{token|VERMIN_ALT|g}} for [[firefly|fireflies]] etc.
 +
 
 +
|-
 +
| {{text anchor|LIGHT_SWARM_SMALL}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| Like {{token|SWARM_SMALL|g}} for [[firefly|fireflies]] etc.
 +
 
 +
|-
 +
| {{text anchor|LIGHT_SWARM_MEDIUM}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| Like {{token|SWARM_MEDIUM|g}} for [[firefly|fireflies]] etc.
 +
 
 +
|-
 +
| {{text anchor|LIGHT_SWARM_LARGE}}
 +
|
 +
*tile page ID,
 +
*grid x position,
 +
*grid y position
 +
| Like {{token|SWARM_LARGE|g}} for [[firefly|fireflies]] etc.
 +
 
 +
|-
 +
| {{text anchor|REMAINS}}
 
|  
 
|  
*creature <code>[[Creature token#NAME|NAME]]</code> token
+
*tile page ID,
| References the creature that will utilize the following graphics raws according to the <code>NAME</code> token defined in it's associated [[Raw file|object file]].
+
*grid x position,
 +
*grid y position
 +
|
  
 
|-
 
|-
| {{text anchor|CREATURE_CASTE_GRAPHICS}}
+
| {{text anchor|HIVE}}
| Caste Reference
 
 
|  
 
|  
*creature <code>[[Creature token#NAME|NAME]]</code> token
+
*tile page ID,
*creature <code>[[Creature token#CASTE|CASTE]]</code> token
+
*grid x position,
| References the caste of a creature to be defined according to its referenced <code>[CASTE]</code> token assigned in it's associated [[Raw file|object file]], i.e. <code> [CREATURE_CASTE_GRAPHICS:BIRD_PEAFOWL_BLUE:MALE]</code> will start the definition for the <code>[MALE]</code> caste of the creature with the <code>[[Blue peafowl|BIRD_PEAFOWL_BLUE]]</code> <code>[NAME]</code>token.
+
*grid y position
 +
|
  
 
|}
 
|}
  
 
==See Also==
 
==See Also==
 +
*[[Palette token]]
 +
*[[Tile page token]]
 
*[[Body detail plan token]]
 
*[[Body detail plan token]]
 
*[[Body token]]
 
*[[Body token]]

Revision as of 13:26, 28 December 2022

This article is about the current version of DF.
Note that some content may still need to be updated.



The [OBJECT:GRAPHICS] 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 are listed below; the list will expand as the tokens are discovered and understood:


Contents A B C D E F G H I J K L M N O P Q R S T U V W X Y Z top

Creature Graphics Tokens

The below tokens are for CREATURE_GRAPHICS objects

Token Arguments Description
ANIMATED
  • tile page ID,
  • grid x position,
  • grid y position
CORPSE
  • tile page ID,
  • grid x position,
  • grid y position
DEFAULT
  • tile page ID,
  • grid x position,
  • grid y position
LIST_ICON
  • tile page ID,
  • grid x position,
  • grid y position,
  • ColorTypeEnum (according to the DF language server, unclear what it means)
SKELETON
  • tile page ID,
  • grid x position,
  • grid y position


SKELETON_WITH_SKULL
  • tile page ID,
  • grid x position,
  • grid y position

Vermin

Tokens for vermin graphics

Token Arguments Description
VERMIN
  • tile page ID,
  • grid x position,
  • grid y position
VERMIN_ALT
  • tile page ID,
  • grid x position,
  • grid y position
Image cycles every 1 second.
SWARM_SMALL
  • tile page ID,
  • grid x position,
  • grid y position
For swarming vermin like flies and fairies.
SWARM_MEDIUM
  • tile page ID,
  • grid x position,
  • grid y position
For swarming vermin like flies and fairies.
SWARM_LARGE
  • tile page ID,
  • grid x position,
  • grid y position
For swarming vermin like flies and fairies.
LIGHT_VERMIN
  • tile page ID,
  • grid x position,
  • grid y position
For fireflies etc.
LIGHT_VERMIN_ALT
  • tile page ID,
  • grid x position,
  • grid y position
Like [VERMIN_ALT] for fireflies etc.
LIGHT_SWARM_SMALL
  • tile page ID,
  • grid x position,
  • grid y position
Like [SWARM_SMALL] for fireflies etc.
LIGHT_SWARM_MEDIUM
  • tile page ID,
  • grid x position,
  • grid y position
Like [SWARM_MEDIUM] for fireflies etc.
LIGHT_SWARM_LARGE
  • tile page ID,
  • grid x position,
  • grid y position
Like [SWARM_LARGE] for fireflies etc.
REMAINS
  • tile page ID,
  • grid x position,
  • grid y position
HIVE
  • tile page ID,
  • grid x position,
  • grid y position

See Also