My game has an Inventory screen, which the player can access from the sidebar at any time. So far, so good.
If they access it from a page that sets variables, then return, the game (of course) sets all the variables again. What's the best way to prevent this?
My first impulse was to create an IF statement along the following lines:
<<if not lastVisited("Bar") is 1>>
Set the variables
However, that doesn't solve the problem for _temporary variables.
I experimented with a <<return>> link, but that set the variables again.
I'm now thinking about opening the Inventory in a new tab with no back button. But is there a better way?