Hello! I have the idea of a text-graphic quest, imitation of a chat, or something like that, haha. It will be only one screen (first, the main menu with several buttons is visible, and then it will be hidden when the user starts or continues the game).
In this connection, I have 2 questions.
How to change bot messages that go one after another? Suppose I have 50 questions that mimic a conversation. How to implement this? The screenshot shows what I mean. That is, the user clicks on the “New chat” button. So the greeting appears. The user answers and clicks on the “Send” button. So they see a new question. But how to make the second, third, and so on questions appear the next time they click on the “Send” button? I can’t just copy this block and paste another text (I know that the “Send” button is busy, I only duplicated these blocks in the screenshot to explain my idea of sequential questions).
How to save the current position of the screen? Suppose the user reaches 35 questions. He/she wants to close the application and continue the game next time from this place. I want to do two ways:
The user clicks on the “Save” button.
The user clicks on the “Back” button, it automatically saves in case they did it by accident.
Many thanks. I just added this code and tested it. It turns out that everything works. There are a few things I want to add here. But I will ask these questions if I can’t do it myself.
Right now I have only two questions about lists.
Can I upload all questions in one CSV file (each question in a separate cell)? And if so, how?
How can I display a message or create an event after the last question? Well, something like, “Game over” and then show the main screen.
I think I have made the Send button correctly. At least now that the list ends, there is no error. Moreover, a message appears about the end of the game, the purchase of the full version or anything (this is just a blank).
No, your blocks are wrong. First, you can’t put the csv Text block in the csv row text, You’ll have to type the items using “,” as a seperator all in the text field. Then, you are doing some other things wrong in the place where aou are getting the item. Somewhere, you try to get item number 0… check your blocks again…
I don’t know yet how to correct my blocks. As for the contents of the CSV file, it looks as follows. All questions are in quotation marks and separated by commas.
Yes, I just checked. Now everything is working correctly. But only now I understand that such a method of inserting text is not suitable for me, since in the future it is planned to use long texts, inside which there will be its “own” commas. Does it mean that the best option is to use text blocks?