Code: |
draw_text(name + " va être envoyé", "par " + Trainer_Info.string(@trainer_id) + ".") if @enemy_party_status.active @enemy_party_status.reset_position @enemy_party_status.visible = true @enemy_party_status.x -= 400 until @enemy_party_status.x == -16 @enemy_party_status.x += 20 Graphics.update end end alive = 0 for pokemon in @party.actors if not pokemon.dead? alive += 1 end end if alive > 1 wait_hit else wait(40) end if alive > 1 draw_text("Voulez-vous appeler", "un autre Pokémon?") decision = false if draw_choice $battle_var.window_index = @action_window.index scene = Pokemon_Party_Menu.new(0) scene.main return_data = scene.return_data decision = true Graphics.transition end # Switch de Pokémon if ($battle_var.action_id == 4 or $battle_var.action_id == 6) and decision @switch_id = return_data actor_pokemon_switch end end |
Code: |
if $game_switches[21] == true draw_text(name + " va être envoyé", "par " + Trainer_Info.string(@trainer_id) + ".") if @enemy_party_status.active @enemy_party_status.reset_position @enemy_party_status.visible = true @enemy_party_status.x -= 400 until @enemy_party_status.x == -16 @enemy_party_status.x += 20 Graphics.update end end alive = 0 for pokemon in @party.actors if not pokemon.dead? alive += 1 end end if alive > 1 wait_hit else wait(40) end if alive > 1 draw_text("Voulez-vous appeler", "un autre Pokémon?") decision = false if draw_choice $battle_var.window_index = @action_window.index scene = Pokemon_Party_Menu.new(0) scene.main return_data = scene.return_data decision = true Graphics.transition end # Switch de Pokémon if ($battle_var.action_id == 4 or $battle_var.action_id == 6) and decision @switch_id = return_data actor_pokemon_switch end end end |
Code: |
if $game_switches[21] == true |
Code: |
end |