Gameover to Inn
#1
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.
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  GameOver Menu V.2 xLeD 0 2,490 10-03-2006, 01:00 PM
Last Post: xLeD
  Gameover based on Level ember2inferno 0 2,301 07-20-2006, 01:00 PM
Last Post: ember2inferno



Users browsing this thread: 1 Guest(s)