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 "23a:Gem token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(if any color+rarity combination is nonexistent, the game will get thrown into an infinite loop trying to find one)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
|- style='background-color:#ddd'
 
|- style='background-color:#ddd'
 
! Token
 
! Token
 +
! Arguments
 
! Description
 
! Description
 
|-
 
|-
|[NAME:singular:plural]||The name of the gem.
+
| {{text anchor|NAME}}
 +
| singular:plural
 +
| The name of the gem.
 +
 
 
|-
 
|-
|[ORNAMENTAL]||Classifies the gem as an ornamental stone.
+
| {{text anchor|ORNAMENTAL}}
 +
|
 +
| Classifies the gem as an ornamental stone. Specifying multiple rarity levels ''is'' possible, but may result in unexpected behavior.
 +
 
 
|-
 
|-
|[SEMI]||Classifies the gem as a semi-precious gem.
+
| {{text anchor|SEMI}}
 +
|
 +
| Classifies the gem as a semi-precious gem.
 +
 
 
|-
 
|-
|[PRECIOUS]||Classifies the gem as a precious gem.
+
| {{text anchor|PRECIOUS}}
 +
|
 +
| Classifies the gem as a precious gem.
 +
 
 
|-
 
|-
|[RARE]||Classifies the gem as a rare gem.
+
| {{text anchor|RARE}}
 +
|
 +
| Classifies the gem as a rare gem.
 +
 
 
|-
 
|-
|[GLASS]||Allows rough gems of this type to be used in the production of crystal [[glass]]. Only one gem can have this token.
+
| {{text anchor|GLASS}}
 +
|
 +
| Allows rough gems of this type to be used in the production of crystal [[glass]]. If multiple types of gem have this token, one will be randomly selected.
 +
 
 
|-
 
|-
|[COLOR:x]||Specifies the [[color]] of the gem. Color is always bright. Only colors 1 (blue), 2 (green), 4 (red), and 7 (white) are allowed, and at least one gem of each color+rarity must be defined.
+
| {{text anchor|COLOR}}
 +
| fg
 +
| Specifies the [[color]] of the gem. Only colors 1 (blue), 2 (green), 4 (red), and 7 (white) are allowed, and at least one gem of each color+rarity combination '''must''' be defined or the game will hang during embark.
 +
 
 
|-
 
|-
|[VALUE:x]||Specifies the [[Item value#Material multipliers|material multiplier]] of the gem.
+
| {{text anchor|VALUE}}
 +
| num
 +
| Specifies the [[Item value#Material multipliers|material multiplier]] of the gem.
 +
 
 
|-
 
|-
|[SPEC_HEAT:]||The specific heat capacity of the stone. Not actually used - the game hardcodes this value to 1000 for all gems.
+
| {{text anchor|SPEC_HEAT}}
 +
| num
 +
| The specific heat capacity of the stone. Not actually used - the game hardcodes this value to 1000 for all gems.
 +
 
 
|-
 
|-
|[HEATDAM_POINT:]||The temperature at which heat will begin to damage the gem.
+
| {{text anchor|HEATDAM_POINT}}
 +
| num
 +
| The temperature at which heat will begin to damage the gem.
 +
 
 
|-
 
|-
|[COLDDAM_POINT:]||The temperature at which frost will begin to damage the gem.
+
| {{text anchor|COLDDAM_POINT}}
 +
| num
 +
| The temperature at which frost will begin to damage the gem.
 +
 
 
|-
 
|-
|[IGNITE_POINT:]||The temperature at which the gem will burst into flames.
+
| {{text anchor|IGNITE_POINT}}
 +
| num
 +
| The temperature at which the gem will burst into flames.
 +
 
 
|-
 
|-
|[MELTING_POINT:]||The temperature at which the gem will melt.
+
| {{text anchor|MELTING_POINT}}
 +
| num
 +
| The temperature at which the gem will melt.
 +
 
 
|-
 
|-
|[BOILING_POINT:]||The temperature at which the gem will boil into a cloud of vapor.
+
| {{text anchor|BOILING_POINT}}
 +
| num
 +
| The temperature at which the gem will boil into a cloud of vapor.
 +
 
 
|-
 
|-
|[FIXED_TEMP:]||The temperature this gem emits naturally.
+
| {{text anchor|FIXED_TEMP}}
 +
| num
 +
| The temperature this gem emits naturally.
 
|}
 
|}
  
 
{{Category|Modding}}
 
{{Category|Modding}}
 
{{Category|Tokens}}
 
{{Category|Tokens}}

Latest revision as of 14:25, 24 June 2025

This article is about an older version of DF.

Gems are stored in matgloss_gem.txt.

Token Arguments Description
 NAME singular:plural The name of the gem.
 ORNAMENTAL Classifies the gem as an ornamental stone. Specifying multiple rarity levels is possible, but may result in unexpected behavior.
 SEMI Classifies the gem as a semi-precious gem.
 PRECIOUS Classifies the gem as a precious gem.
 RARE Classifies the gem as a rare gem.
 GLASS Allows rough gems of this type to be used in the production of crystal glass. If multiple types of gem have this token, one will be randomly selected.
 COLOR fg Specifies the color of the gem. Only colors 1 (blue), 2 (green), 4 (red), and 7 (white) are allowed, and at least one gem of each color+rarity combination must be defined or the game will hang during embark.
 VALUE num Specifies the material multiplier of the gem.
 SPEC_HEAT num The specific heat capacity of the stone. Not actually used - the game hardcodes this value to 1000 for all gems.
 HEATDAM_POINT num The temperature at which heat will begin to damage the gem.
 COLDDAM_POINT num The temperature at which frost will begin to damage the gem.
 IGNITE_POINT num The temperature at which the gem will burst into flames.
 MELTING_POINT num The temperature at which the gem will melt.
 BOILING_POINT num The temperature at which the gem will boil into a cloud of vapor.
 FIXED_TEMP num The temperature this gem emits naturally.