This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ded:text [2017-03-16 07:30] – skyjake | ded:text [2017-03-16 07:33] (current) – skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Text (DED) ====== | ||
| + | |||
| + | Defines a text string. | ||
| + | |||
| + | Do not change the order of existing Text definitions; | ||
| + | definitions to the end of the list. This is because Games access strings | ||
| + | using the index numbers of the strings, and the indices are assigned based | ||
| + | on the order of the Text definitions. | ||
| + | |||
| + | Text | ||
| + | { | ||
| + | ID = " | ||
| + | Text = " | ||
| + | } | ||
| + | |||
| + | |||
| + | ===== Syntax ===== | ||
| + | |||
| + | ==== ID ==== | ||
| + | Identifier of the text string. | ||
| + | |||
| + | ==== Text ==== | ||
| + | The string itself. Backslash (\) is used as an escape | ||
| + | character: \n = newline. Quotes (") must be escaped or the | ||
| + | parser will think the string ends ("Say \" | ||
| + | string can be divided onto multiple lines, in which case the | ||
| + | parser will skip to the first non-space character of the | ||
| + | next line when it encounters an end of line. For example | ||
| + | the following two strings are identical: | ||
| + | |||
| + | "This is a long | ||
| + | | ||
| + | | ||
| + | "This is a longstring?" | ||
| + | |||
| + | The escape sequence '' | ||
| + | character, so these two strings are also identical: | ||
| + | |||
| + | "This is another long | ||
| + | \_string." | ||
| + | | ||
| + | "This is another long string." | ||