Saving and Loading while Retaining Tags #784
-
I just finished an initial version of my game called My Isekai Dream. I added a 'Show and Tell' discussion: #783 I use tags to update backgrounds and displayed characters. Most of the tags are set once and persist until changed. e.g. the background only needs to be set once and then will remain until it is changed. However when I save and then load I lose the history of the tags, as they where set on previous text. Has any one used tags like this? Any suggestions overcoming the issue? For example in the extracted sample if I save on the last line of text and then load, the tag 'background', which is on the first line is not available.
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind. I've found out that I have misunderstood tags; they are transient and only affect the current line. What Ill do to allow saving of persistent updates is to make use of global variables. e.g. VAR background = ... Global variables are saved as part of the current state and will fix my issue. |
Beta Was this translation helpful? Give feedback.
Never mind. I've found out that I have misunderstood tags; they are transient and only affect the current line.
What Ill do to allow saving of persistent updates is to make use of global variables. e.g. VAR background = ...
Global variables are saved as part of the current state and will fix my issue.