class Scene_Map
def call_battle
#--------------------------------------------------------------------------
$actor_id = []
for actor in $game_party.actors
$actor_id.push(actor.id)
end
$game_party.remove_actor($actor_id[0])
#--------------------------------------------------------------------------
$game_temp.battle_calling = false
$game_temp.menu_calling = false
$game_temp.menu_beep = false
$game_player.make_encounter_count
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
$game_system.se_play($data_system.battle_start_se)
$game_system.bgm_play($game_system.battle_bgm)
$game_player.straighten
$scene = Scene_Battle.new
end
end
class Scene_Battle
def battle_end(result)
#--------------------------------------------------------------------------
for i in 0..$actor_id.size-1
$game_party.actors[i] = $game_actors[$actor_id[i]]
end
$game_player.refresh
#--------------------------------------------------------------------------
$game_temp.in_battle = false
$game_party.clear_actions
for actor in $game_party.actors
actor.remove_states_battle
end
$game_troop.enemies.clear
if $game_temp.battle_proc != nil
$game_temp.battle_proc.call(result)
$game_temp.battle_proc = nil
end
$scene = Scene_Map.new
end
end