I have a question if it is possible. I have created a multiple choice game where the last ; is the correct answer. It is based on reading data from text file into array
My question is: Is there a way that when someone chooses one of the answers, a different text appears based on what they chose, without creating a different array for the answers? I have made it choose your own adventure with different txt files as game paths so it would confuse me a lot.
Like for example: Choosing answer 3- Handshake;You give a firm handshake# ... So when the player chooses that, it will write as answer on the same text box: You give a firm handshake.
Is there a way to code it this way with symbols from within the text somehow? Like the ; which symbolizes the end of the sentence. So if you put for example a symbol like #, from ; to # it would be the "You give a firm handshake." answer.
Thank you for reading!