So, I'm making a game that's divided into 7 chapters. There are some decisions to make here and there in every chapter and depending on what you choose, you either advance to the next chapter or you go back to the previous chapter and start all over again. I know how to branch out the game with switches and the like. I'm having trouble figuring out how to make the game go back to the beginning of the chapter, though. Can somebody help me with an idea?
Chapter-based game Question
RPG Maker MZ SupportI don't think restarting a chapter all over because of wrong choice is a good idea.
At least that's what my initial opinion (it depends on what kind of game you're making).
I think you can restart a chapter by teleporting the player
to the map where the chapter begins.
Then you can turn off all the switches that have been activated in that chapter.
Example:
If a gate is open later in the chapter via switch,
you can turn it off to make it close again.
At least that's what my initial opinion (it depends on what kind of game you're making).
I think you can restart a chapter by teleporting the player
to the map where the chapter begins.
Then you can turn off all the switches that have been activated in that chapter.
Example:
If a gate is open later in the chapter via switch,
you can turn it off to make it close again.
It's going to be a pain in the butt.
You'll basically need to keep track of EVERY change that happens in the chapter.
So, one idea is that on every single event in the chapter, you'd have an event page
that is triggered on a switch "ChapterReset" or some such. And that page would reset every
thing that event did. So if that's a door that was opened, it will need to close it self.
If you're using on map enemies - they'll need to respawn.
Odds are you would need at least one per map which could manage ALL events on the map. Or you could make it part of each event.
The whole idea makes my head hurt. I'm going to bed now 🙂
You'll basically need to keep track of EVERY change that happens in the chapter.
So, one idea is that on every single event in the chapter, you'd have an event page
that is triggered on a switch "ChapterReset" or some such. And that page would reset every
thing that event did. So if that's a door that was opened, it will need to close it self.
If you're using on map enemies - they'll need to respawn.
Odds are you would need at least one per map which could manage ALL events on the map. Or you could make it part of each event.
The whole idea makes my head hurt. I'm going to bed now 🙂
I agree with EpicFILE and poorrabbit above... you need to REDO what you already done in a chapter...
some alternative if you know some JS code...
deep copy the $gameSwitches and $gameVariables to new variable(it's better if placed in $gameSystem because that got saved in savefile) at the start of the chapter...
then if you decide to return to start of chapter... copy that new variable value BACK to the $gameSwitches and $gameVariables to restore it like what happen at the start of the chapter...
some alternative if you know some JS code...
deep copy the $gameSwitches and $gameVariables to new variable(it's better if placed in $gameSystem because that got saved in savefile) at the start of the chapter...
then if you decide to return to start of chapter... copy that new variable value BACK to the $gameSwitches and $gameVariables to restore it like what happen at the start of the chapter...
I know it sounds weird as a normal game, but mine is actually text-based and choice-based (you get to save every time you're about to make a choice) you don't really move your character around, it's more like a visual novel where you make choices and stuff to make the plot advance.
Maybe you can make an autosave at the starting of each chapter, like a checkpoint. Then you can load that save if you need to restart the chapter.
thing is, I want it to automatically restart, as if to create a 'Groundhog Day loop'. Game over is non-existent, time just repeats itself
I'm not familiar with MZ but if there's any plugin that can autosave and autoload...Or maybe you can just use script call to make a save. If you let the player have save slots upto 20, you can make slot 21 the autosave slot. The player won't see it but you have access to it. Use script call to load that file when needed. Then you just need to check for the wrong decisions and the game will just autoload the autosave.
i think this article can be used with above method
Autosave, Autoload with script only?
What's up, so I just want to create an event where I can autosave when I touch an specific event (without entering the Menu/Save window, because it'll be disabled), like a checkpoint. Same with autoload, at the beginning of the game you pick one of the options, then it loads that file and every...
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/chapter-based-game-question.130603/