Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: jcsnider on July 14, 2008, 11:16:55 am

Title: [RESOLVED] Gameover teleport still in battle
Post by: jcsnider on July 14, 2008, 11:16:55 am
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?
Title: Re: Gameover teleport still in battle
Post by: Blizzard on July 14, 2008, 11:36:59 am
Under "$game_temp.gameover = false" add "$game_temp.in_battle = false".
Title: Re: Gameover teleport still in battle
Post by: jcsnider on July 14, 2008, 12:05:23 pm
thanks it worked