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 Speech file
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: | ||
{{av}} | {{av}} | ||
{{Modding}} | {{Modding}} | ||
− | '''Speech files''' | + | '''Speech files''' are text files that define sentences which can be spoken by people in [[adventure mode]] and phrases used to name [[books]]. Most of them are found in the <code>data/vanilla/vanilla_text/objects</code> folder, though the creature specific files can be found in <code>data/vanilla/vanilla_creatures/objects</code>. Like other raw files, mods can replace or introduce new sentences. |
== List of files == | == List of files == | ||
Line 340: | Line 340: | ||
== Adding custom files == | == Adding custom files == | ||
− | New speech tokens can be added with mods. It is also possible to add new files and associate them with custom creatures. | + | New speech tokens can be added with mods {{verify}}. It is also possible to add new files and associate them with custom creatures. |
{| class="wikitable" | {| class="wikitable" | ||
Line 347: | Line 347: | ||
|- | |- | ||
− | | [[ | + | | [[Creature token#CASTE_SPEECH|CASTE_SPEECH]] |
− | + | | | |
|- | |- | ||
| [[Creature token#LAIR_HUNTER_SPEECH|LAIR_HUNTER_SPEECH]] | | [[Creature token#LAIR_HUNTER_SPEECH|LAIR_HUNTER_SPEECH]] | ||
− | | [[ | + | | [[minotaur]] ([[#lair_hunter_minotaur|lair_hunter_minotaur.txt]]) |
|- | |- | ||
| [[Creature token#SPEECH|SPEECH]] | | [[Creature token#SPEECH|SPEECH]] | ||
− | | [[ | + | | [[dwarf]] ([[#dwarf|dwarf.txt]]), [[elf]] ([[#elf|elf.txt]]) |
− | |||
− | + | |- | |
− | + | | [[Creature token#SPEECH_FEMALE|SPEECH_FEMALE]] | |
− | + | | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | | [[Creature token#SPEECH_MALE|SPEECH_MALE]] |
− | + | | | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | == | + | == Special tokens == |
− | + | Speech files can contain tokens in square brackets (<code>[]</code>), which are replaced with context-specific strings before the speech is displayed. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Context tokens === | === Context tokens === | ||
Line 512: | Line 376: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! Token !! | + | ! Token !! Type !! Meaning |
|- | |- | ||
Line 563: | Line 427: | ||
* [[#current_profession_no_year|current_profession_no_year]]: the name of the speaker's profession | * [[#current_profession_no_year|current_profession_no_year]]: the name of the speaker's profession | ||
|} | |} | ||
− | |||
== See also == | == See also == | ||
* [[Speech mods]] | * [[Speech mods]] | ||
− | [[Category:Files]] | + | [[Category:DF2014:Files]] |
− | [[Category:Modding]] | + | [[Category:DF2014:Modding]] |