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 359: | Line 359: | ||
|} | |} | ||
− | == | + | == Special tokens == |
Speech files can contain tokens in square brackets (<code>[]</code>), which are replaced with context-specific strings before the speech is displayed. | Speech files can contain tokens in square brackets (<code>[]</code>), which are replaced with context-specific strings before the speech is displayed. | ||
Line 372: | Line 372: | ||
|- | |- | ||
| {{text anchor|NAME}} | | {{text anchor|NAME}} | ||
− | | Inserts a name relevant to the book's [[topic]] | + | | Inserts a name relevant to the book's [[topic]]. Notably, these may or may not be plural and/or have an article. |
− | | The | + | | The Tower, The Tree, Bronzemurdered, Likot Ubendeb, Animal Behaviours |
|- | |- | ||
| {{text anchor|NO_ART_NAME}} | | {{text anchor|NO_ART_NAME}} | ||
− | | "No article name." As [[Speech_file# | + | | "No article name." As [[Speech_file#NAME]], but never has an article. |
− | | Tower, Tree, | + | | Tower, Tree, Bronzemurdered, Likot Ubendeb, Animal Behaviours |
|- | |- | ||
− | | {{text anchor|NOUN}} | + | | [{{text anchor|NOUN}} |
| A random noun pulled from [[language_words.txt]] or a hardcoded list. May or may not be plural. | | A random noun pulled from [[language_words.txt]] or a hardcoded list. May or may not be plural. | ||
− | | | + | | |
|- | |- | ||
| {{text anchor|ADJ}} | | {{text anchor|ADJ}} | ||
| A random adjective from [[language_words.txt]]. | | A random adjective from [[language_words.txt]]. | ||
− | | | + | | |
|- | |- | ||
| {{text anchor|ANY_AGE}} | | {{text anchor|ANY_AGE}} | ||
| References an [[Calendar#Ages|age]] that has occurred in the world's [[Legends|history]]. | | References an [[Calendar#Ages|age]] that has occurred in the world's [[Legends|history]]. | ||
− | | The Age Of Legends, The Age Of Hill Titan and Dragon | + | | The Age Of Legends, The Age Of Hill Titan and Dragon |
|- | |- | ||
| {{text anchor|ANY_PRONOUN}} | | {{text anchor|ANY_PRONOUN}} | ||
− | | | + | | Generates singular and plural subject pronouns (not "Us" or "Them"). |
| He, She, We, They | | He, She, We, They | ||
|- | |- | ||
Line 398: | Line 398: | ||
| A random phrase of a noun/pronoun, a verb, and some other words. | | A random phrase of a noun/pronoun, a verb, and some other words. | ||
| The Fool Laughs, The Day Can Say It In The End, It Foretells Afterwards, The Day Mourns | | The Fool Laughs, The Day Can Say It In The End, It Foretells Afterwards, The Day Mourns | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 512: | Line 405: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! Token !! | + | ! Token !! Type !! Meaning |
|- | |- |