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 Instrument 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: | ||
− | + | Since v0.42.01, [[instruments]] are being procedurally generated for each world, but if so desired, it is still possible to define custom instruments in the raws, using an [ITEM_INSTRUMENT] token. Most [[tool token]]s can be used as before, but there are a few instrument-specific tokens, as described 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. | ||
− | |||
− | |||
{| {{prettytable}} | {| {{prettytable}} | ||
|- bgcolor="#999999" | |- bgcolor="#999999" | ||
Line 43: | Line 37: | ||
* min | * min | ||
* max | * max | ||
− | | The instrument's volume range, in | + | | The instrument's volume range, in Millibell (100 mB = 1 dB). |
|- | |- | ||
| {{text anchor|SOUND_PRODUCTION}} | | {{text anchor|SOUND_PRODUCTION}} | ||
− | | | + | | * various tokens |
− | * various tokens | ||
| Defines how a musician can produce sound when using this instrument. Can be used multiple times. Valid tokens and their required additional arguments are: | | Defines how a musician can produce sound when using this instrument. Can be used multiple times. Valid tokens and their required additional arguments are: | ||
* PLUCKED_BY_BP, PLUCKED (requires two tokens, actor then target) | * PLUCKED_BY_BP, PLUCKED (requires two tokens, actor then target) | ||
Line 92: | Line 85: | ||
You can also use INDEFINITE_PITCH. | You can also use INDEFINITE_PITCH. | ||
</blockquote> | </blockquote> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 116: | Line 104: | ||
| | | | ||
* skill token | * skill token | ||
− | | | + | | The skill should be one of the music-related [[skill token]]s. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− |