I know this is probably a super niche request so it wouldn't surprise me if it hasn't been done, but I figured I'd shoot my shot regardless.
I've been looking for a script to reset my game mid-playthrough, ideally only resetting all of the self switches. What I'm looking to have happen is, for example, if the player gets a game over while playing on the game's hardest difficulty, the game resets to a specific moment near the start, basically a sort of 'time loop' system. I've managed to reset everything like the switches and variables, but self switches remain flipped, so any items the player had picked up won't reappear when they should. I know I could just forgo self switches entirely and make a normal switch for every instance instead, but I figured I'd ask on the off-chance something like a self switch resetter had already been made or was otherwise feasible to write up.
I've been looking for a script to reset my game mid-playthrough, ideally only resetting all of the self switches. What I'm looking to have happen is, for example, if the player gets a game over while playing on the game's hardest difficulty, the game resets to a specific moment near the start, basically a sort of 'time loop' system. I've managed to reset everything like the switches and variables, but self switches remain flipped, so any items the player had picked up won't reappear when they should. I know I could just forgo self switches entirely and make a normal switch for every instance instead, but I figured I'd ask on the off-chance something like a self switch resetter had already been made or was otherwise feasible to write up.