Chapter-based game Question

RipSkinned

Villager
Member
Joined
Jul 30, 2020
Messages
17
Reaction score
5
First Language
english
Primarily Uses
RMMV
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?
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
466
Reaction score
1,516
First Language
Indonesia
Primarily Uses
RMMV
I 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.
 

poorrabbit

Veteran
Veteran
Joined
Mar 15, 2014
Messages
84
Reaction score
55
First Language
english
Primarily Uses
RMMZ
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 :)
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,375
Reaction score
617
First Language
indonesian
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...
 

RipSkinned

Villager
Member
Joined
Jul 30, 2020
Messages
17
Reaction score
5
First Language
english
Primarily Uses
RMMV
I 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.

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.
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
466
Reaction score
1,516
First Language
Indonesia
Primarily Uses
RMMV
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.
Is it something like Ace Attorney?
If so, I think that could work. :D
 

Hyouryuu-Na

Very very lazy
Veteran
Joined
Jun 15, 2017
Messages
1,048
Reaction score
2,440
First Language
Not English
Primarily Uses
RMMV
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.
 

RipSkinned

Villager
Member
Joined
Jul 30, 2020
Messages
17
Reaction score
5
First Language
english
Primarily Uses
RMMV
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
 

Hyouryuu-Na

Very very lazy
Veteran
Joined
Jun 15, 2017
Messages
1,048
Reaction score
2,440
First Language
Not English
Primarily Uses
RMMV
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.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,375
Reaction score
617
First Language
indonesian
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
edit: it's for MV though but maybe it will work for MZ too...
 

Latest Threads

Latest Posts

Latest Profile Posts

Chilling out while toodling around someone's painstaking Minecraft recreation of Disneyland. It is mind-boggling and probably as close as I'll ever be to going.
>Testing with fonts change.
>Tries installing a plugin. Doesn't work.
>Tries changing the plugin commands. Doesn't work.
>Tries installing another plugin. Doesn't work.
>Changes a few more plugin commands. Doesn't work.
>Goes directly to the gamefont file and changes the src. Works.

YYEEEAAAAHHHAAAA

Perseverance is key, bois and girls.
What Reviews say on RPG Maker MZ?
Looking back at some sketches, and game design documents on my PC dated summer of 2015. I started development with the release of MZ, but in 2015, I felt a strong desire to make a game out of the blue. I remember feeling sad for no apparent reason, and all these ideas rushed into my head. Now that I think about it, since that day, everything has become easier to do on my PC . . . it’s very creepy.
Everything's going to be alright! We're all in this together. <3

Forum statistics

Threads
107,806
Messages
1,032,343
Members
139,952
Latest member
4kWave
Top