Line 3: |
Line 3: |
| This page explains how the game stores dialogue text, its format, and how the game parses it. This is an advanced guide for mod developers. | | This page explains how the game stores dialogue text, its format, and how the game parses it. This is an advanced guide for mod developers. |
| | | |
− | ==Data== | + | ==Overview== |
− | The dialogue text is stored in four sets of files. | + | Character dialogue is stored in many different files: The <samp>Characters\Dialogue</samp> directory is where the majority of NPC-specific dialogue is stored. <samp>Data\ExtraDialogue.xnb</samp>, <samp>Strings\Characters.xnb</samp>, <samp>Strings\Events.xnb</samp>, <samp>Strings\SpeechBubbles.xnb</samp>, and <samp>Strings\StringsFromCSFiles.xnb</samp> contain various other pieces of dialogue, some generic, and some NPC-specific. |
| | | |
− | ===Character-specific dialogue=== | + | ==Characters\Dialogue directory== |
− | <samp>Characters\Dialogue\*.xnb</samp> contains most of the dialogue for each character (one file per character). The game will choose dialogue from one of the sections below, in the order shown here. | + | ===Characters\Dialogue\{{t|NPC}}.xnb=== |
| + | An NPC's named file in <samp>Character\Dialogue</samp> contains most of their dialogue. The game will choose dialogue from one of the sections below, in the order shown here. |
| | | |
| ====Special dialogue==== | | ====Special dialogue==== |
Line 73: |
Line 74: |
| |} | | |} |
| | | |
− | ====Rain dialogue====
| + | ==Rain dialogue== |
| <samp>Characters\Dialogue\rainy.xnb</samp> contains one dialogue entry per NPC. There's a roughly 50% chance they'll use this dialogue if one of the above didn't match, it's raining, and you're not married to or divorced from them. | | <samp>Characters\Dialogue\rainy.xnb</samp> contains one dialogue entry per NPC. There's a roughly 50% chance they'll use this dialogue if one of the above didn't match, it's raining, and you're not married to or divorced from them. |
| | | |
− | ====Engagement dialogue====
| + | ==Engagement dialogue== |
| Similar to the rain dialogue, <samp>Data/EngagementDialogue.xnb</samp> contains entries in the form of <samp>{{t|NPC}}0</samp> and <samp>{{t|NPC}}1</samp>, which are used when you are engaged but not yet married to an NPC, or, in the case of a roommate, when they have been invited but have not yet moved in. | | Similar to the rain dialogue, <samp>Data/EngagementDialogue.xnb</samp> contains entries in the form of <samp>{{t|NPC}}0</samp> and <samp>{{t|NPC}}1</samp>, which are used when you are engaged but not yet married to an NPC, or, in the case of a roommate, when they have been invited but have not yet moved in. |
| | | |