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.
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.
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.