Skip to content

Show Dialogue

Group
Dialogue
In the node menu
Dialogue › Show Dialogue
Where it can be used
Scheme graphs

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.

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.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
Show ToShowToActorRef"Conspirator"The actor the dialogue is for. The window opens only when a player plays this actor; otherwise the actor picks a choice automatically.
SpeakerSpeaker
  • None (Nobody (narrator))
  • Actor (An actor)
"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.
  • Actor shows the name plate of Who; None is a narrator or a letter.
WhoSpeakerActorActorRef"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.
TitleTitletext {tokens}""Title of the dialogue window. Tokens such as {target.Name} or {text.key} are allowed.
  • Pacing marks print nothing here; TextMesh Pro colour tags (<color=#RRGGBB>…</color>) are allowed.
TextContenttext {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}.
  • The only text with pacing marks ({pause}, {wait}, {slow}, {fast}, {cue Name}, {at 2.5}, {em}…{/em}); colour tags are allowed.
StyleStyleasset path (DialogueStyle)null (none)The look, pace, sounds and motion of the window. Empty: the Dialogue Manager's default style.
  • A style's name ("Letter") or asset path; empty = the default style; drafts never create styles.
Wait Until ClickedWaitForChoicebooltrueWith 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 limitTimeoutnumber0Seconds 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.
  • min 0
  • 0: "None"
NPC AnswerNpcAnswer
  • AtRandom (At random)
  • FirstAvailable (The first available choice)
  • ByWants (By what they want)
  • MostWanted (The one they want most)
"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 onlyNpcWeightslist of ChoiceWeight[]
  • The Studio shows an "NPC weight" on each choice instead; a choice without an entry weighs 1.
draft onlyNpcWantslist of ChoiceWants[]
  • The Studio shows "They want it" lines on each choice instead; a choice without an entry wants as much as its weight.
Write The TextTypewriterbooltrueOn: the text is written at the pace of the style, with its pauses. Off: the text appears at once.
PictureBackgroundasset path (Sprite)null (none)The picture of this dialogue. Empty: a picture from the tags below, else the style's picture.
Picture From TagsPictureTagstext {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.
  • Sprite Database words, comma-separated ("Throne, {target.Culture}"), used when Picture is empty.
ChoicesChoiceslist of DialogueChoice[{"Text":"Ok"}]
MusicMusicDialogueTracknot in the dataThe music while the dialogue is open. The same music goes on without starting again from one dialogue to the next.
AmbienceAmbienceDialogueTracknot in the dataThe ambience (wind, a crowd, a fire) while the dialogue is open.
SoundsSoundslist of DialogueSound[]Sounds that start when the dialogue opens. A looping sound plays while it is open and fades out with it.
Use VoiceUseVoiceboolfalsePlay a voice-over with the dialogue.
VoiceVoiceDialogueVoicenot in the data

Shown if UseVoice is true

How it arrivesDelivery
  • FromStyleOrProject (From the style or project)
  • Interrupt (On screen now)
  • Flag (As a flag)
  • Silent (Silently)
"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 titleFlagTitletext {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 iconFlagIconasset 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.
ImportanceFlagImportance
  • Low
  • Medium
  • High
"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
LabelDraft keyTypeDefaultShown if, tooltip and notes
KeyKeytext""
WeightWeightnumber1
  • min 0
NpcWants (draft only): the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
KeyKeytext""
WantsWantswants1
Choices: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
draft onlyKeytext""
TextTexttext {tokens}""
  • As in AnnouncementButton.
  • TextMesh Pro colour tags (<color=#RRGGBB>…</color>) are allowed; always close them.
IconIconasset path (Sprite)null (none)
  • As in AnnouncementButton.
TooltipTooltiptext {tokens}""
  • As in AnnouncementButton.
ConditionConditionconditionnot in the data
Preferred by AIPreferredByAIboolfalse
Hide When UnavailableHideWhenUnavailableboolfalse
Unavailable TooltipUnavailableTooltiptext {tokens}""
Odds Node IDOddsNodeIDnode alias (ChanceNode)not in the data
  • none: "Automatic"
TagsTagslist of text[]
Music: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
ModeMode
  • FromStyle (As the style says)
  • None (Silence)
  • Keep (Keep what is playing)
  • Clip (This clip)
"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.
  • FromStyle = as the style says, None = silence, Keep = keep what is playing, Clip = this clip.
ClipClipasset 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.
VolumeVolumenumber1

Shown if Mode = Clip

  • from 0 to 1
Sounds: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
ClipClipasset path (AudioClip)null (none)The clip to play. Without a clip the node only continues.
  • As in Play Sound.
VolumeVolumenumber1
  • As in Play Sound.
  • from 0 to 1
PitchPitchnumber1
  • As in Play Sound.
  • from -3 to 3
PriorityPriorityinteger128Audio source priority: 0 is the highest, 256 the lowest.
  • As in Play Sound.
  • from 0 to 256
MixerMixerasset path (AudioMixerGroup)null (none)Mixer group the sound plays through. Empty plays directly.
  • As in Play Sound.
Fade Out (sec)FadeOutnumber1
  • min 0
LoopLoopboolfalse
Stop When ClosedStopWhenClosedboolfalse
Voice: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
ClipClipasset path (AudioClip)null (none)The clip to play. Without a clip the node only continues.
  • As in Play Sound.
VolumeVolumenumber1
  • As in Play Sound.
  • from 0 to 1
PitchPitchnumber1
  • As in Play Sound.
  • from -3 to 3
PriorityPriorityinteger128Audio source priority: 0 is the highest, 256 the lowest.
  • As in Play Sound.
  • from 0 to 256
MixerMixerasset path (AudioMixerGroup)null (none)Mixer group the sound plays through. Empty plays directly.
  • As in Play Sound.
Text Follows The VoiceSyncTypewriterboolfalseThe 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 languagesLanguageslist of VoiceLanguage[]One clip per language. The clip of the active language plays; a language without its own clip plays the main clip.
  • One clip per language code ("tr"); other languages play the main Clip.
"type"
"Show Dialogue"
"set" keys
ShowTo, 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"
}