To write great dialogue, apply the “Dialogue Test” championed by Blake Snyder in Save the Cat! to make sure that each line reveals a distinct character.