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.