The storytelling effectiveness of TLoU -- I was all misty-eyed at the end, and I realized I cared about the character I was protecting, not just playing a stealth shooter game -- is a credit to the entire holistic project. IIUC, they used an in-house narrative/scripting DSL that's written in Racket.