I read elsewhere on the forum that the stats screen has some odd behavior due to how it’s implemented. Essentially it’s a permanent “scene” in every game like a gosub with a permanent button link?
Firstly, I want several places in the game to hook to a generic “dressing room” where a player can access their clothing they have via a gosub_scene. If the player checks the stat screen before the return in the dressing room, will this mess with getting back to the right place in the original gosub?
Second, I also have a time-advancing mechanic at the top of many pages that is accessed by gosubbing to a scene that does a lot of silent stuff and returns. I’m thinking this gosub to the time-advance scene will recur if the player accesses the stats screen and returns to the original page? (Similarly, I don’t want to make changing clothes take half a day when the player returns to a page from the dressing room where the time-advance will run again.)
(I know this fix though is pretty easy–*create statschecked = false and set it to true on the stats screen… then have the time-advance machinery first check if the player came from the stats screen if statschecked is true, and if so set it back to false and return without altering anything.
I just want to confirm that’s how gosub and stats work before I try to correct a problem that might not exist!