Game dev
Saved & recent

Contextual dialogue

Related terms: barks, response rules, rule matching, narrative state

Speech selected to fit the current situation and remembered history. A companion who sees ammunition can call attention to it; a character who has already delivered a warning can avoid repeating it immediately. Short spontaneous lines are often called barks, though contextual systems can also start longer conversations.

Authored rules describe when each line is suitable. The system checks facts, selects an eligible response and tracks any history needed for later choices. Valve’s rule database supports reactive dialogue in games including Left 4 Dead 2. This selects relevant speech; branching dialogue describes how a conversation proceeds through choices.

Source
Valve: rule databases for contextual dialogue
Further reading
Campo Santo: Do You Copy? Dialog System and Tools in Firewatch
current facts pier clear true warning recent true check rules Pier is clear. selected Mind the boards. warning still recent
The clear pier makes one line eligible. A recent warning excludes the repeated line.

View in the full Game dev collection