QUOTE (KD648 @ Jul 25 2012, 09:57 AM)

Does anyone here know how to reset map data? What I mean by that, specifically, is reverting all data like self-switches, opened treasure chests and the like so each map is as it was when the game began, while still leaving variables and switches untouched.. My game features a time travel component (a lot like Radient Historia from what I've heard) and includes the ability to go through some dungeons more than once. When travelling back in time the characters retain their classes, levels and items and all that, but the story goes back to an earlier point in time. I'm simply going to reset the world each time as you can only "time travel" once you've reached one of the multiple endings, so resetting the entire world seems quicker and easier than trying to determine which chests were opened when. However, many important quest items and situations are controlled by switches and variables, so I need to leave those untouched. I imagine this is a scripting solution, but if anyone knows ANY kind of answer I'd love you forever!
Thanks so much in advance!
What I would suggest if I were you, is to make a copy for each map in the game that you will reset through while you're in the game, then when you have to travel to like a past version of a dungeon for example, you make a copy named 'dungeon (past)' and then have your character will teleport to the "past" version of the same dungeon. Afterwards, you need to change the kinds of variables and switches that the new copy will affect, assuming you want to keep the old variables from the original copy. You might have to create copies for each variable and switch again if necessary. If you want to create less work for yourself, I recommend using a lot of self-switches because even when the player shifts from map (present) to map (past), the self-switches in the original map will stay the same, and the self-switches in the map copy will act as untouched the first time the player enters that map. I hope I helped you somewhat and if there's any other questions you would like to ask, feel free to do so.