Hi. In my story's sidebar caption I have a "Locations: " section intended to show the player their current location in the setting. I'm trying to figure out the best to set up the story so that the Location automatically updates when moving to a new passage.
Right now, I have a setup to alter the $location variable if a passage has a particular tag, then display the $location variable in the sidebar.
Right now, this is the code I have in the StoryCaption passage:
<<set $location to "Living Room">>
<<set $location to "Store">>
<<set $location to "School">>
My problem with this method is that the more locations I add, the more if-statements I have to add to the story. In the example, I only have three, but in practice, my story is going to have at least a couple dozen locations, so I'm wondering if there's a better / easier / more elegant method for what I'm trying to accomplish.