The essence is that there is a variable that gives text. With each press “Button” it changes. You need to write all these messages and output in the form of history. The story itself will be needed only for the current session, so after using it needs to be reset.
Tell me how it is better to implement?