Skip to content

How do developers write dialogue?

Hey, I was pondering about branching dialogues in video games. Most games nowadays offer somehow the option to select dialogue choices, regardless of the quality or relevance in subsequent events. But how do video game writers actually write them? Not in terms of coding or programming, but rather more like a script. I doubt it's anything like a movie script, but I'd assume there's something like some software or many different ones used in parallel that help keep track of branching narratives.

3 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
3 ยท 100% up
Kind
Text
ID
1comozx

Author

1
posts
0
comments
0
media
View profile

5 comments

A lot of the game engines have dialog add-on components or cheap 3rd party assets to help.

2 points

There are different approaches to this that largely depend on personal preference. My game has branching dialogue but usually the impact of your choices is localized to that one conversation. I write my dialogue in a movie script format with elements of "choose your own adventure", i.e. the dialogue options are included in the script with references to sections elsewhere in the script. I use my own graph based editor for integrating dialogue into the game, but prefer to write the first draft in Google Docs. I'm sure some writers are comfortable working directly on the graph, so that would be another approach. And of course people also plot branching dialogue on whiteboards with sticky notes. In the end, whatever gets the job done is the right way of doing it.

2 points

I use google docs ๐Ÿ˜‚

As long as it has a spellchecker I think you're probably good. Then ideally you'd want to save/copy the lines into some sort of common data driven filetype (json, csv). Unreal engine does this automatically if you create a DataTable object, I just copy my lines into there to make them useable in game.

There's obviously more that goes into that after that point, but you just asked for the script-writing, not programming part, so that's about where my process ends for that step.

1 points

My current project takes a page of of choose your own adventure books, when it comes to stuff with branching dialogue, or descriptions of actions, I've found the most useful is to first create a flowchart of the prompts/ideas as well as the options presented, this allows me to also look for connecting points, overlap, etc.

https://preview.redd.it/o6di280wsuzc1.png?width=1152&format=pjpg&auto=webp&s=9548b7d7811dbf1941c04a7184309f522ad7db12

When it comes to writing in full, I've found the easiest way is to write one full scenario out, from beginning to resolution. Then I backtrack and start the same path but finish the least-differing branch, so a different ending or a second to last choice. Helps keep focused.

If it's nonlinear, like a list of options you can revisit, then i just look at it like individual prompts for the speaker to answer.

1 points

Usually it's best when you can educate your writers how to write their dialogue in the format the game parses it in. That way you don't need convert the format and you enable writers to try out their dialogue trees directly in the game without requiring them to bother the more technical people on the team.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.