What's the best method to make a dialogue system for an RPG game?

Should I read the data as a text file or some other way? I’m fairly new at this so I’d like to keep it as simple as possible. I’d like to be able to extend the system to trigger npc movements and other events, kind of like RPG maker does it but through a script.