Vǫrðr Forge Steam page

Art, Audio and Interface

The Dialog Box

The dialog box is the window a conversation shows in: the speaker's name, the page of speech, the replies. It wears the project's style pack, and you can change where it sits, how it looks, and how its words arrive.

A dialog box in play: the speaker, the line and the replies. The second reply carries a Charisma check.
A dialog box in play: the speaker, the line and the replies. The second reply carries a Charisma check.

Where the look is set

Three places hold a look. The most specific one that sets a field wins:

  1. The conversation itself: the Look chip at the top of the Dialog page (Edit > Project Settings, under NPCS).
  2. The character: the Dialog look rows under the Types: list on the NPC Portfolio page. Pick a type, and its rows are its own.
  3. The project: Edit > Project Settings > LOOK > Dialog Box.

Anything none of them sets comes from the style pack. Each list's first entry leaves the field to the next place down and shows, in brackets, what that gives.

The options

Placement
Bottom, Top, Middle, or Beside the speaker: over their head, or under their feet when there is no room above, kept inside the view.
Over the HUD
Keep clear steps the box off the skill bar so the bar stays readable. Draw over lets the box cover it. Keep clear is the default.
Opacity
How solid the box's window is, its name plate included. The words stay solid.
Font, Font size
The face and size of the words. The list holds the faces the style packs bring, and an exported game carries the pack each chosen face comes from. Letters a face lacks come from the fallback fonts.
Text colour, Name colour
The colour of the words and of the speaker's name. Pick... opens the colour picker.
Typing
The words appear a letter at a time, at the speed picked. Off shows the page at once. A click, E, Space or a reply's number key while the words are arriving brings them all in; the next press goes on.
Fade in, Fade out
The box fades in when a talk starts, and out when it ends.
Portrait
A picture beside the words, from assets/portraits/. The Portrait Studio makes one from a 3D character. A sheet of frames is cut by its own Animation Sequencer settings, a _FramesN name, or into square frames.
Portrait side
Left or right of the words.
Portrait frame
The frame shown when a line names none.
Style pack
A character's own pack. A conversation's is its Style chip. An exported game carries every pack its characters and conversations wear.

On the Dialog page, each line under Says has a frame chip when the speaker wears a portrait. Default shows the portrait frame; a frame picked there is written at the start of the line as {face=2}.

Marks inside a line

Write these straight into a line of speech:

{shake}...{/shake}
The letters tremble.
{wave}...{/wave}
The letters ride a wave.
{color=#ffcc00}...{/color}
A colour span. {colour=...} works too.
{pause=0.5}
The words stop for that many seconds, then go on.
{speed=2}...{/speed}
The typing runs that many times as fast (0.5 is half).
{face=2} or {face=smile}
The portrait shows that frame from here on. Frames count from 1; a name is one of the character's frame names.
{{
A plain {.
field line {face=smile}Well met! {pause=0.4}{face=frown}But the {shake}wolves{/shake} are {color=#ff8a3d}close{/color}.

A mark the box does not know is shown as written, so a typo is never silently lost. With Typing off, a pause still holds back the words after it.

In the files

The project's look and each character's are rows of assets/data/dialoglooks.vfa:

VordrAsset { AssetType = DialogLookTable }
comp project look -1 -
field place bottom
field overhud off
comp character Elder -1 -
field portrait assets/portraits/elder.png
field frames calm smile frown
field typing 40

A conversation's look is the header row of its own document, beside its uistyle:

comp dialog dialog -1 -
field place speaker
field opacity 80
place
bottom, top, middle or speaker
overhud
on (drawn over the HUD) or off (kept clear of the skill bar)
opacity
0 to 100
font, fontfile, fontsize
a face, the file it is loaded from, and its size in pixels
ink, nameink
a colour as RRGGBB
typing
letters a second; 0 shows the page at once
fadein, fadeout
seconds
portrait
an image, or none
cell
a frame's width and height in the portrait sheet
frames
names for the frames, first frame first
face
the frame shown when a line names none
side
left or right
uistyle
a character's style pack

A row of a placed villager's tag lays its fields over its kind's row.