Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Return to a place once dead?

I was wondering how i would go along with it.

Like player dies,
player goes to hospital
player is fully healed.

I need this for one of my games.

I tried to do this by calling a common event from the scene end, but it didnt work.
 

Anonymous

Guest

this might be able to be done using events, but time consuming.

a new script or script mod maybe be better, can you script?

if not, then I will give it a go shouldn't be to hard but at the moment Im working on a problem for someone else.

just let me know all the features that you want.
and how stuff happens.
does the player wake in a bed or just walk out.
 
Seph made a script like this, its called gameover to inn. Give it a search, and you'll find it.
Edit: Ok, made a small script for it.
Code:
class Scene_Gameover
  def main
     $game_temp.player_transferring = true
     $game_temp.player_new_map_id = 1
     $game_temp.player_new_x = 1
     $game_temp.player_new_y = 1
     $game_temp.player_new_direction = 1
     $scene = Scene_Map.new
     $game_map.autoplay
  end
end
Instructions:
For the map, set the map id to the id of the map,
for the position, set the x and y position.
The direction is what direction you look to.
 
Well then, make a parallel process, that heals you fully, then turns on a switch to turn off that parallel process. When the player leaves the Inn, turn that switch off.

Simple.
 

A J

Member

add this code for the HP and SP
Code:
    for i in 0..$game_party.actors.size - 1
      $game_party.actors[i].hp = $game_party.actors[i].maxhp
      $game_party.actors[i].sp = $game_party.actors[i].maxsp
    end
add this too so when you enter a battle it don't call the game over secne again
Code:
    $game_temp.gameover = false
both at class Scene_Gameover
choose game over from the event list the same thing will happen you will go to the hospital.

you can also add a lost counter if you want :)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top