Show Dialogue
- Group
- Dialogue
- In the node menu
- Dialogue › Show Dialogue
- Where it can be used
- Scheme graphs
What it does
Section titled “What it does”Show Dialogue puts a window in front of one actor, with a title, a text and one or more choices. The flow usually waits until a choice is made, then goes on through the output of that choice.
When a player plays the actor in Show To, the window opens and the player clicks. For any other actor, nobody sees a window and the game picks a choice by the rule in NPC Answer.
Example
Section titled “Example”No card is drawn for this node. In the demo scheme Quiet Ending (Drafts/schemes/08-quiet-ending.json) the node alone
is shown to the Conspirator, with the title “A thought best kept close”. One of its choices reads “Look for willing
hands.” Each choice has its own output.
When to use it
Section titled “When to use it”Use it when the story needs a decision, from the player or from a character the player does not control.
Use Show Announcement instead when you only want to tell someone something and the flow should not wait. Read Dialogues and announcements for styles, flags and voices, and Texts, tokens and pacing for what you can write in the text.
Good to know
Section titled “Good to know”- A dialogue with two or more choices always waits. With one choice, Wait Until Clicked decides: off, and the window stays open while the flow goes on at once.
- Timeout only counts while the dialogue waits. With a timeout and a single choice that does not wait, the card warns about it.
- When Timeout runs out, the window closes and the Timeout output runs. With Timeout at 0 and that output linked, the card warns that it never runs.
- Each choice has its own output. Link every choice of a dialogue that waits: an unlinked choice ends that flow silently.
- A choice with no text gets a warning on the card. With no choice at all, it shows an error, and the flow stops when the node runs (“The dialogue has no choices.”).
- If the actor in Show To is not available, the flow stops there.
- A dialogue shown to an actor nobody plays stops the flow when none of its choices is available.
- A dialogue that was open when the game was saved opens again after the load, with the time that was left.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Show To | ShowTo | ActorRef | "Conspirator" | The actor the dialogue is for. The window opens only when a player plays this actor; otherwise the actor picks a choice automatically. |
| Speaker | Speaker |
| "None" | Nobody (narrator): no name plate, as for a letter or a report. An actor: the window shows the actor's name and portrait, as the style says.
|
| Who | SpeakerActor | ActorRef | "Target" | Shown if Speaker = Actor The actor who speaks. When the actor is not available the window shows no name plate; the dialogue opens anyway. |
| Title | Title | text {tokens} | "" | Title of the dialogue window. Tokens such as {target.Name} or {text.key} are allowed.
|
| Text | Content | text {tokens} | "" | Text of the dialogue window. You can use tokens such as {target.Name}, parts that depend on a condition ({if scheme.Gold >= 100}…{else}…{end}) and pacing marks such as {pause}, {wait} or {slow}.
|
| Style | Style | asset path (DialogueStyle) | null (none) | The look, pace, sounds and motion of the window. Empty: the Dialogue Manager's default style.
|
| Wait Until Clicked | WaitForChoice | bool | true | With one choice: the flow waits until the player clicks it. Off: the window stays open and the flow continues at once. Dialogues with two or more choices always wait. |
| Time limit | Timeout | number | 0 | Seconds until the dialogue closes by itself and the Timeout output runs. None (0): no time limit. The count starts when the choices can be clicked (as the style says: once the text is written, or at once). It only runs while the dialogue waits for a choice.
|
| NPC Answer | NpcAnswer |
| "AtRandom" | What happens when nobody plays the actor in Show To. At random: one of the available choices; a choice with a higher weight is taken more often. The first available choice: the top one whose Available When is met. By what they want: each choice's chance is how much they want it. The one they want most: the choice they want most, the first one when tied. When they want none of the choices, the flow stops. Choices marked Preferred by AI come first in all of them. |
| draft only | NpcWeights | list of ChoiceWeight | [] |
|
| draft only | NpcWants | list of ChoiceWants | [] |
|
| Write The Text | Typewriter | bool | true | On: the text is written at the pace of the style, with its pauses. Off: the text appears at once. |
| Picture | Background | asset path (Sprite) | null (none) | The picture of this dialogue. Empty: a picture from the tags below, else the style's picture. |
| Picture From Tags | PictureTags | text {tokens} | "" | Optional, used when Picture is empty: words a sprite of the Sprite Database must have, separated by commas, for example Throne, {target.Culture}. Nothing found: the style's picture.
|
| Choices | Choices | list of DialogueChoice | [{"Text":"Ok"}] | |
| Music | Music | DialogueTrack | not in the data | The music while the dialogue is open. The same music goes on without starting again from one dialogue to the next. |
| Ambience | Ambience | DialogueTrack | not in the data | The ambience (wind, a crowd, a fire) while the dialogue is open. |
| Sounds | Sounds | list of DialogueSound | [] | Sounds that start when the dialogue opens. A looping sound plays while it is open and fades out with it. |
| Use Voice | UseVoice | bool | false | Play a voice-over with the dialogue. |
| Voice | Voice | DialogueVoice | not in the data | Shown if UseVoice is true |
| How it arrives | Delivery |
| "FromStyleOrProject" | How the dialogue arrives for a player. From the style or project: as the style says, else as the Dialogue Manager says (by default on screen now). On screen now: the window opens at once. As a flag: a flag waits in the player's flag tray; clicking it opens this window, and the time limit starts then. Silently: no window; a dialogue that waits for a choice answers itself at once, as an NPC would. An actor no player plays always answers by itself. |
| Flag title | FlagTitle | text {tokens} | "" | The title of the flag in the player's flag tray. Tokens such as {target.Name} are allowed. Empty: the dialogue's title. |
| Flag icon | FlagIcon | asset path (Sprite) | null (none) | The icon of the flag in the player's flag tray. Empty: the style's flag icon, else the tray's own. |
| Importance | FlagImportance |
| "Medium" | How much the flag matters. A flag tray may sort or colour flags by it; with Flags Pause Days on the Dialogue Manager, a High flag pauses the days. |
Draft only: a draft sets it; the Studio has no row of its own for it.
NpcWeights (draft only): the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Key | Key | text | "" | |
| Weight | Weight | number | 1 |
|
NpcWants (draft only): the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Key | Key | text | "" | |
| Wants | Wants | wants | 1 |
Choices: the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| draft only | Key | text | "" | |
| Text | Text | text {tokens} | "" |
|
| Icon | Icon | asset path (Sprite) | null (none) |
|
| Tooltip | Tooltip | text {tokens} | "" |
|
| Condition | Condition | condition | not in the data | |
| Preferred by AI | PreferredByAI | bool | false | |
| Hide When Unavailable | HideWhenUnavailable | bool | false | |
| Unavailable Tooltip | UnavailableTooltip | text {tokens} | "" | |
| Odds Node ID | OddsNodeID | node alias (ChanceNode) | not in the data |
|
| Tags | Tags | list of text | [] |
Music: the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Mode | Mode |
| "FromStyle" | As the style says: the style's music or ambience. Silence: nothing plays while the dialogue is open. Keep what is playing: the music or ambience that plays already goes on. This clip: the clip below.
|
| Clip | Clip | asset path (AudioClip) | null (none) | Shown if Mode = Clip Plays in a loop while the dialogue is open. When it plays already it goes on without starting again. |
| Volume | Volume | number | 1 | Shown if Mode = Clip
|
Sounds: the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Clip | Clip | asset path (AudioClip) | null (none) | The clip to play. Without a clip the node only continues.
|
| Volume | Volume | number | 1 |
|
| Pitch | Pitch | number | 1 |
|
| Priority | Priority | integer | 128 | Audio source priority: 0 is the highest, 256 the lowest.
|
| Mixer | Mixer | asset path (AudioMixerGroup) | null (none) | Mixer group the sound plays through. Empty plays directly.
|
| Fade Out (sec) | FadeOut | number | 1 |
|
| Loop | Loop | bool | false | |
| Stop When Closed | StopWhenClosed | bool | false |
Voice: the settings of each one
| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Clip | Clip | asset path (AudioClip) | null (none) | The clip to play. Without a clip the node only continues.
|
| Volume | Volume | number | 1 |
|
| Pitch | Pitch | number | 1 |
|
| Priority | Priority | integer | 128 | Audio source priority: 0 is the highest, 256 the lowest.
|
| Mixer | Mixer | asset path (AudioMixerGroup) | null (none) | Mixer group the sound plays through. Empty plays directly.
|
| Text Follows The Voice | SyncTypewriter | bool | false | The text is written out in time with the voice, and its last letter appears when the clip ends. An {at 2.5} mark in the text pins that place to second 2.5 of the clip. |
| Other languages | Languages | list of VoiceLanguage | [] | One clip per language. The clip of the active language plays; a language without its own clip plays the main clip.
|
Outputs
Section titled “Outputs”In a draft
Section titled “In a draft”"type""Show Dialogue""set"keysShowTo,Speaker,SpeakerActor,Title,Content,Style,WaitForChoice,Timeout,NpcAnswer,NpcWeights,NpcWants,Typewriter,Background,PictureTags,Choices,Music,Ambience,Sounds,UseVoice,Voice,Delivery,FlagTitle,FlagIcon,FlagImportance
"<alias>": { "type": "Show Dialogue"}