- 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.
Difference between revisions of "Instrument token"
(Not sure exactly what it does, but it is a valid token (doesn't set off errorlog messages) and is mentioned in an example file as well) |
Doorkeeper (talk | contribs) (mov navbox) |
||
Line 1: | Line 1: | ||
{{Quality|Exceptional|14:41, 22 July 2018 (UTC)}} | {{Quality|Exceptional|14:41, 22 July 2018 (UTC)}} | ||
{{av}} | {{av}} | ||
+ | {{Modding}} | ||
Since v0.42.01, [[instruments]] are procedurally generated for each world, but if so desired, it is still possible to define custom instruments in the raws by using an [ITEM_INSTRUMENT] token. Most [[tool token]]s can be used as before, but there are a few instrument-specific tokens, as listed in the table below. | Since v0.42.01, [[instruments]] are procedurally generated for each world, but if so desired, it is still possible to define custom instruments in the raws by using an [ITEM_INSTRUMENT] token. Most [[tool token]]s can be used as before, but there are a few instrument-specific tokens, as listed in the table below. | ||
The information on this page is sourced from the file <code>raw/objects/examples and notes/item_instrument_example.txt</code>, which also includes useful example instrument definitions. | The information on this page is sourced from the file <code>raw/objects/examples and notes/item_instrument_example.txt</code>, which also includes useful example instrument definitions. | ||
+ | {{clear}} | ||
+ | == Tokens == | ||
{| {{prettytable}} | {| {{prettytable}} | ||
|- bgcolor="#999999" | |- bgcolor="#999999" | ||
Line 117: | Line 120: | ||
|} | |} | ||
− | |||
{{category|Tokens}} | {{category|Tokens}} | ||
[[ru:Instrument token]] | [[ru:Instrument token]] |
Revision as of 18:52, 10 February 2022
v50.14 · v0.47.05 This article is about the current version of DF.Note that some content may still need to be updated. |
Modding |
---|
Tokens |
Audio · Biome · Graphics · Interaction · Mod info · Plant · Speech · Sphere · Syndrome · World |
Body tokens |
Body · Body detail plan · Bodygloss · Tissue |
Creature tokens |
Creature · Creature mannerism · Personality · Creature variation · Procedural graphics layer |
Descriptor tokens |
Descriptor color · Color · Descriptor pattern · Descriptor shape |
Entity tokens |
Entity · Ethic · Language · Value · Position |
Job tokens |
Building · Labor · Reaction · Skill · Unit type |
Item tokens |
Item type · Item definition · Ammo · Armor · Instrument · Tool · Trap component · Weapon |
Material tokens |
Material type · Material definition · Inorganic material definition |
Since v0.42.01, instruments are procedurally generated for each world, but if so desired, it is still possible to define custom instruments in the raws by using an [ITEM_INSTRUMENT] token. Most tool tokens can be used as before, but there are a few instrument-specific tokens, as listed in the table below.
The information on this page is sourced from the file raw/objects/examples and notes/item_instrument_example.txt
, which also includes useful example instrument definitions.
Tokens
Token | Arguments | Description |
---|---|---|
PLACED_AS_BUILDING | Makes the instrument stationary. | |
DOMINANT_MATERIAL_PIECE |
|
Sets a piece as the central part of the instrument. |
INSTRUMENT_PIECE |
|
Defines an instrument piece. token is the identifier that can be used in other raw tags to refer to this instrument piece. tool token is the tool which is required (and consumed) during the construction process to create this instrument piece.
If an instrument does not have any pieces, SELF can be used for any argument which needs to be an instrument piece. |
VOLUME_mB |
|
The instrument's volume range, in millibels (100 mB = 1 dB). |
SOUND_PRODUCTION |
|
Defines how a musician can produce sound when using this instrument. Can be used multiple times. Valid tokens and their required additional arguments are:
|
PITCH_CHOICE |
|
Defines how the pitch can be varied by the musician. Can be used multiple times. Valid methods are:
|
TUNING |
|
Can be used multiple times. Valid methods are: PEGS, ADJUSTABLE_BRIDGES, CROOKS, TIGHTENING, LEVERS. |
PITCH_RANGE |
|
From the example file:
|
INDEFINITE_PITCH | May replace [PITCH_RANGE] .
| |
TIMBRE |
|
Valid timbre words are: CLEAR, NOISY, FULL, THIN, ROUND, SHARP, SMOOTH, CHOPPY, STEADY, EVOLVING, STRONG, DELICATE, BRIGHT, GRACEFUL, SPARSE, BREATHY, STRAINED, BROAD, LIGHT, MELLOW, WOBBLING, FOCUSED, EVEN, FLUID, VIBRATING, QUAVERING, EERIE, FRAGILE, BRITTLE, PURE, PIERCING, STRIDENT, WAVERING, HARSH, REEDY, NASAL, BUZZY, ROUGH, WARM, RUGGED, HEAVY, FLAT, DARK, CRISP, SONOROUS, WATERY, GENTLE, SLICING, LIQUID, RAUCOUS, BREEZY, RASPY, WISPY, SHRILL, MUDDY, RICH, DULL, FLOATING, RINGING, RESONANT, SWEET, RIPPLING, SPARKLING. |
REGISTER |
|
See PITCH_RANGE and TIMBRE for possible values. The pitch range overrides the global pitch for a register, but the register timbres are added to the global ones. |
MUSIC_SKILL |
|
The skill should be one of the music-related skill tokens. |