Challenge Mode Add-on?

Hello RpgMaker addicts,

would it be possible to add a "Challenge Mode" to my game where basically if the player dies at all, their save file is deleted and they have to start over, a sort of "hardcore" mode?
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


Did you search? I'm sure that's been asked before.


fwiw - the first time that happened to me, I'd delete the game.
would it be possible to add a "Challenge Mode" to my game where basically if the player dies at all, their save file is deleted and they have to start over, a sort of "hardcore" mode?
You want to make a roguelike?

Anyway, I was sure that I've seen a script that do exactly this. Not sure where, but it is there.
You want to make a roguelike?

Anyway, I was sure that I've seen a script that do exactly this. Not sure where, but it is there.
What is a roguelike?

@Shaz, it's worth nothing to me 🙂
Rougelike meaning every play-through is a new experience (usually randomized levels and stuff) from the beginning, and if you die you have to start all over. Trying to get as far as possible, or beating the game.

It's a genre.
Try this.

$challenge_mode = falseclass Scene_Gameover < Scene_Base    alias :start_permadeath :start  def start    start_permadeath    DataManager.delete_save_file(last_savefile_index) if $challenge_mode  end  endTo make sure the game delete the save on game over, call script:

Code:
$challenge_mode = true
thank you so much
If they have an existing save and they start a new game, you may end up deleting that save even if they didn't load it.
yeah, you'd need to make sure that a new game clears the last_save_file thing (assuming the game doesn't do that by default)
oh boy, well, while we figure out the kinks, I would like to describe the idea a bit more.

basically, I want a hardcore mode for my game (purely optional and separate from the rest of the game) and i dont want the hardcore mode saves to interfere with the other game saves -- is this still possible esp considering the 2 posts above?
of course...


you can also opt to just use a switch for the hardcore mode so that it is saved into the save file... that way, the non-hardcore mode save-files won't have the hardcore = true... but you still need to make sure that the last_save_file is cleared when starting a new game since if I load a hardcore mode, quit then start a new hardcore mode then die without saving and loading, the old save file will be the one to be removed...
I'll just embed the variable with Game_Party. And add something that moves the index away when starting a new game.

Code:
class Game_Party < Game_Unit    attr_accessor :challenge_mode  endmodule DataManager    class <<self; alias :setup_new_game_permadeath :setup_new_game; end  def self.setup_new_game    setup_new_game_permadeath    @last_savefile_index = -1  end  endclass Scene_Gameover < Scene_Base    alias :start_permadeath :start  def start    start_permadeath    DataManager.delete_save_file(last_savefile_index) if $game_party.challenge_mode  end  end
The script call now is
Code:
$game_party.challenge_mode = true
All praise ShadowLurk.

He may lurk in the shadows, but when he comes out, he delivers the goods!
Well, there is one error there.

Code:
DataManager.delete_save_file(last_savefile_index) if $game_party.challenge_mode
change it to
Code:
DataManager.delete_save_file(DataManager.last_savefile_index) if $game_party.challenge_mode
Thanks again, I will when I get home!

Original thread: https://forums.rpgmakerweb.com/threads/challenge-mode-add-on.25298/