Search the Community
Showing results for tags 'talking'.
Found 1 result
Hi all, I'm looking to implement dialogue options into my current game, but I'm wondering what the best way to do this would be? I'm not great with Lua as some of you older posters may remember, however I often manage to work my way though things using methods that make sense to me but are not necessarily viable or efficient. So far, I have been using a system with 'flags' whereby depending on the answer the player gives (in the way of pressing F1, F2, F3 etc), a flag is set as true or false which then branches the conversation depending on the answers given. Presently, however, I have hit a snag where my code does not allow me to branch past the second question I need to re-use keys in order to progress the discussion. For example: Question 1: How are you feeling today? (answer) F1: I'm great! (answer) F2: I'm okay (answer) F3: I feel sad Supposing the player presses F3... Question 2: Why do you feel sad? (answer) F1: The weather is bad (answer) F2: My cat ran away (answer) F3: I don't like my salary The problem here is that because the player pressed F3 in question 1, the next question given is question 2 (which is correct) but it immediately answers as F3 again. Can anyone shed some advice on this?