Save-Point
Gameover to Inn - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Gameover to Inn (/thread-6932.html)



Gameover to Inn - SephirothSpawn - 07-19-2005

Gameover to Inn
by SephirothSpawn
Jul 19 2005

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given.


Instead of Getting a Gameover and going back to scene_title, you are teleported back to a inn, tent, etc. It works by game variables.

First go into Scene_Gameover. Replace the update method with this:

Code:
def update
  if Input.trigger?(Input::C)
    $game_temp.gameover=false
    case $game_variables[X]
    when y
      $game_map.setup(map_id)
      $game_player.moveto(map_x, map_y)
      $scene=Scene_Map.new
      $game_map.refresh
    when ...
    end
  end
end


How it works:

At a inn or whereever youd like to return, make an event that set a game variable (X) to an amount (y).

Then in this update method add under the case statement a when condition similar to the one posted. Just change the y to the varible value and the map_x and map_y to where youd like to re-appear. If you'd like to decrease money, or anyother effects, add them under the $game_temp.gameover=false line.