In The Last of Us, Naughty Dog wanted the enemy NPCs to sound like they’re having real conversations with one another. This meant that the characters would need to be capable of saying relatively long chains of lines, with backand-forth banter between two or more characters.
Conversations in The Last of Us are constructed from logical segments. Each segment corresponds to one logical line, spoken by one particular actor in the conversation. Each segment is given a unique id, and the segments are chained together into a conversation via these ids. As an example, let’s see how we would define the following conversation:
|A||“Hey, did you find anything?”|
|B||“No, I’ve been looking for an hour and I ain’t found nothin’.”|