[RESOLVED] Gameover teleport still in battle

Started by jcsnider, July 14, 2008, 11:16:55 am

Previous topic - Next topic

jcsnider

July 14, 2008, 11:16:55 am Last Edit: July 14, 2008, 12:28:00 pm by Blizzard
I fount this script by searching on rmxp.org

class Scene_Gameover
  def main
     $game_temp.player_transferring = true
     $game_temp.player_new_map_id = 16
     $game_temp.player_new_x = 10
     $game_temp.player_new_y = 9
     $game_temp.player_new_direction = 1
     $scene = Scene_Map.new
     $game_map.autoplay
      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
   
    $game_temp.gameover = false
     
     
    end
  end


and it is supposed to warp u to a new map after you die but when i am on the new map the teleports dont work and the text if u talk to someone is at the top like it would be if you were in a battle...

any ideas?

Blizzard

Under "$game_temp.gameover = false" add "$game_temp.in_battle = false".
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

jcsnider