When actors get their lines that they have to say for a movie or a play, they get a script which has all of their lines on it and the other peoples lines that they are filming or performing with.
I have no idea what language you mean in anyway. But Ill answer it in TorqueScript. Since it's just my favorite First you need to make something that will read the premade script function...