Best way to store character text?

Let’s say I’m making an RPG or something similar. When you talk to a character, they’re supposed to say something different based on where in the story you are and maybe some other additional modifiers you might have. So: is it better to store those lines in the character’s script, in the stage’s script, or elsewhere?