I’m using the storyboard API to manage an interactive comic I’m developing (many lua files as individual scenes).
I have an options screen/scene that will be available from any of the scenes of the comic where the player can look at certain over arching story info. I update a global variable in each of my comic scenes so that the game knows what scene to return to from the options scene (for example, in the scene001.lua file- \_G["current\_scene"] = "scene001"
)
Rather than having to manually update this variable in each scene that I build from my master template (“scene001”, “scene002”, etc.), is there some way to write a function that can return the name of the scene (lua) file without the “.lua” attached to it? That way I can set the global variable on each new comic scene entered and the options scene will always go back to the most recent scene.
Thanks in advance for any advice you can offer [import]uid: 105707 topic_id: 21556 reply_id: 321556[/import]