07-19-2005, 01:00 PM
Gameover to Inn
by SephirothSpawn
Jul 19 2005
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:
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.
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.
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.