Need help with timeloop game I'm making.

So i am trying to make a simple game where there is a bit of timelooping involved and i need help in trying to make it work.
I need help figuring out:

1. make a false gameover, that occurs when you die in battle, where you get to respawn at a designated checkpoint.
2. respawn all slain enemies, cause i placed a set amount of enemy sprites that the player has to defeat and if it isn't completed the enemies will respawn. i also might need help in erasing this event when every enemy on the map is slain.
3. keep track of potion count- like if the player used 2 potions before dying they will regain two potion back when they loop.

i've combed through the threads about timelooping and the only one i saw wanted the player to back to the title screen when they gameover and that's out of my depth.

i am using rpgmaker vxace.
Are there other things you want to 'reset' or specifically 'preserve' upon 'death'? (If it was everything, I would suggest using hidden save files, but it depends on how you want to use this mechanic)

1. For false gameover, when you call battles through events, you can put lose conditions, avoiding the Game Over screen. The easiest is to call a common event that will teleport your party and reset the properties you want.

The next 2 solutions are based on variables and switches use:
2. Depends on how you 'remove' an enemy, if you delete the event, it will respawn when the map is loaded, so the best is to use local switches along with variables and global switches:
You should have a variable that counts the amount of resets that will increase every time the reset event is activated, I will cal it 'reset_counter'.
For each 'pack' of enemies (by that I mean number of troops to defeat), you should have a variable that counts the number of enemies defeated (I will call it 'enemies_counter') and optionally a switch that is activated when enemies_counter reaches the intended amount, I will call the switch 'enemies_defeated'. When the reset event is called, if enemies_defeated is not true, you should reset enemies_counter to 0.
Unless you use local variables (with Event Extender or RPG Maker Extender scripts for instance), you will need one variable per maps with your battled events that I will call mapID_reset_counter (with ID replaced by the map ID).

An enemy event should have 3 pages:
- the first page is how you trigger your battle, when the enemy is slain, you set a local switch (say 'A') to true, increase enemies_counter by 1 and set mapID_reset_counter to reset_counter. (If you increase enemies_counter, this might be the place to check if enemies_counter high enough to set enemies_defeated to true).
- the second page is automatic or in parallel process and does not have a sprite: its page conditions are that 'A' is true. The page checks if mapID_reset_counter < reset_counter, if that is the case, the events disable 'A'. Otherwise, delete the event.
- the third one is empty and its page condition is enemies_defeated is true. (if you only use enemies_counter, you might just need to set the condition as enemies_counter > your total number of enemies)

3. When you do your checkpoint, you can store into a variable the amount of items your party has with specific IDs, so if you only keep track of potions, you need only 1 variable.
When you call the reset event, you may then deduce the difference between the number of items your party has and how many they had before death, you can then add or remove difference.
i've combed through the threads about timelooping
Those have nothing to do with your project, because they are usually about managing time systems.
What you describe is a simple recurring enemy reset, which is best handled through eventing.

there are several different variants of resetting events, if you don't understand the description above ask again.

The answer above to point 1 (custom gameover) only works with evented enemies, not with random encounters. From your description that is exactly what you have, but if that changes then look for a script that calls a common event on game over.

that might actually be easier to use than changing all enemy events to allow a lost battle...
If I'm understanding this correctly, it seems like you want to do a game over scene, with all the resets and everything then you might be better off doing a normal game over but with an Auto-save function.

So you go to check point 1. The game auto saves that file. you get a game over and the game auto loads the auto save file.

You might be better off getting a plugin that does that.

Just a quick google search gave me this plugin.


So you just need to find an auto save plugin for the check points now.
@Martin_Arcainess
VXA doesn't use plug-ins at all, it uses scripts. there are script equivalents, but the link you gave is useless here.
Are there other things you want to 'reset' or specifically 'preserve' upon 'death'?
There's a event where you collect a bomb to bring it to a boulder to blow it up and collect potions. If you were to die before the event is complete, though I'm not sure how you would die during it, it should reset and if it is completed the mc will make a save and the event will stay complete.

Also thank you for your help.
Thank you everyone who replied.

Also sorry for the upcoming "rant" for a lack of a better word but this thought has festered in my mind for a bit and I need to get it out before it gets worse. So here's a little bit of what I'm thinking.

The more I look on these forums the more inadequate I feel about my small game; most of the game centers around a single map with like 2-3 quests to complete and an additional area with a boss.

I'm aware enough to know that I have no experience with game making and at most, only started when vx ace was free on steam; which was like a month or so ago. I know that my first game that I make will not be the best and I don't think others would expect it to be either.

Even knowing this, that this is my first game I'm making and I don't have any experience as a game maker my mind is still thinking that the game won't turn out good and that I'm waisting my time even trying. That thought is absolutely annoying me and I can't really think about a way to solve it.
Thank you everyone who replied.

Also sorry for the upcoming "rant" for a lack of a better word but this thought has festered in my mind for a bit and I need to get it out before it gets worse. So here's a little bit of what I'm thinking.

The more I look on these forums the more inadequate I feel about my small game; most of the game centers around a single map with like 2-3 quests to complete and an additional area with a boss.

I'm aware enough to know that I have no experience with game making and at most, only started when vx ace was free on steam; which was like a month or so ago. I know that my first game that I make will not be the best and I don't think others would expect it to be either.

Even knowing this, that this is my first game I'm making and I don't have any experience as a game maker my mind is still thinking that the game won't turn out good and that I'm waisting my time even trying. That thought is absolutely annoying me and I can't really think about a way to solve it.
The only way to waste your time is to create nothing.

Even a bad game will teach you things you can bring into your next one. As long as you can take a lesson from your time, it was well-spent.

You seem to think it's a problem if your game is small, but the good thing about small games is they're quicker to complete. The faster you finish, the sooner you can move to the next project.

But if you're truly losing sleep over the prospect of your magnum opus not being as good as you'd hoped it would be, why not shelve it for a bit and focus on some even smaller projects you only share with your closest friends for feedback?
1. For false gameover, when you call battles through events, you can put lose conditions, avoiding the Game Over screen. The easiest is to call a common event that will teleport your party and reset the properties you want.
I was able to do what you said, but i want to show game over screen graphic before i transfer the player to the location first.
then use a show picture of the game over screen instead of the actual game over function.
said screen is nothing but said picture showing anyway.

you might have to copy the picture to the correct folder however, I don't remember where it is stored.
set mapID_reset_counter to reset_counter.
I'm sorry, but I don't understand how I would set map reset counter to reset counter. I'm not even sure how I could explain why I don't get this.
@RobertVinnie
"set" is an option of the control variable event command, and the rest of that sentence refer to the other options of the control variable command.

We cannot help you if you don't even know the common terms used in the editor, because it is too much work to make screenshots with pointers to every button and option in the program.

You'll need to get the basics through the usual tutorials - which is is a problem in so far as VXA does not have integrated tutorials (only the newer MV and MZ have those).

However, I once wrote the "starting point" tutorial linked in my signature to help new users with exactly that.
Please work through that tutorial (no,, reading it is not enoug, you'll need to try to use the options mentioned in there in the editor for yourself, just to learn what is where).

On an average (depending on available time) most people need about a month to work through that (reading is fast but as said useless). After that please come back here with any more questions.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-timeloop-game-im-making.176714/