Story Game code?

I asked a similar question about a week ago and I don’t think I worded my question right so I’m going to try this again; I need help with coding for my story game. I want it so you can interact with a certain character and depending on what you say, they can reply with pre-made messages. For example; Player interacts with Chr. 1. The player chooses option 1, so Chr. 1 will reply with message 1. However, if the Player chose option 2, Chr. 1 would have replied with message 2. It goes on and branches depending on the choice. I have the idea, I made a flow chart on what to say but I really need help with the coding! I figured maybe the if, do, else things could start it off but anything from there, I’m clueless! Please help!

I think that game development is better to use http://www.stencyl.com/