RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Game Over to Common Event problem

0 Members and 1 Guest are viewing this topic.

*****
Rep:
Level 88
Spoiler for Script:
Code: [Select]
class Scene_Battle
 
  # Aliases update to run before everything else in the method
  alias gameover_to_common_event update
  def update
    if $game_temp.gameover
      # Editable region. This number below is the ID of the common event you
      # wish to run. It is 1 by default, change it to suit your game.
      $game_temp.common_event_id = 11
      $scene = Scene_Map.new
      $game_temp.gameover = false
      return
    end
    gameover_to_common_event
  end
end

So here's the problem... It only goes to the common event game over if the character is knocked out during battle. Unfortunately, I'm using this for a trap system. So the only time characters are damaged and have the chance of being knocked out is on the map, not in battle.

So, my question is... Is there any way to edit this in a way so that it will trigger the common event game over on the map instead of during battle?

Any help is appreciated.