• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Making checkpoints in map

Status
Not open for further replies.
Hello, let's say we are playing an rpg map. If the hero dies you lose. I wanna make several checkpoints in the map and when the hero dies a dialog shows up saying "You wanna load last checkpoint?".

In TFT Sentinels campaign, chapter 3 after Maeiv meets illidan and her warriors get trapped you have to make it to the exit before the timer expires and in case maeiv dies or the timer expires you'll restart from that checkpoint and you don't have to restart from the beginning of the chapter.

Please keep in mind that when you reach the checkpoint then load the check point i want all units to have their previous positions in the map, the same items at the same place, its like you saved the game then loaded it.
 
  • Game - Save game as SaveFile.w3z and load <EmptyString> (Skip scores)
If your hero reaches a check point, a region. Save the game.

If your hero dies, load the last saved check point.

  • Game - Load SaveFile.w3z (Skip scores)

Good. This works but the problem is that i have 9 checkpoints and every time you reach a new checkpoint it becomes the one that should be loaded and saving the game every time with the same save file name does not overwrite the save file.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Good. This works but the problem is that i have 9 checkpoints and every time you reach a new checkpoint it becomes the one that should be loaded and saving the game every time with the same save file name does not overwrite the save file.

You could add a
  • Trigger - Turn off (this trigger)
so it only does it once (if that is what you meant...)

Not sure what to do about the file names.
 
Status
Not open for further replies.
Top