Citation: |
Tu peux me coller les 100 premières lignes du script Pokemon_Battle_Core_1 (entre balises code) s'il te plait? |
Code: |
#============================================================================== # ■ Pokemon_Battle_Core # Pokemon Script Project - Krosk # 20/07/07 #----------------------------------------------------------------------------- # Scène à ne pas modifier de préférence #----------------------------------------------------------------------------- # Système de Combat - Squelette général #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # 0: Normal, 1: Poison, 2: Paralysé, 3: Brulé, 4:Sommeil, 5:Gelé, 8: Toxic # @confuse (6), @flinch (7) #----------------------------------------------------------------------------- # 1 Normal 2 Feu 3 Eau 4 Electrique 5 Plante 6 Glace 7 Combat 8 Poison 9 Sol # 10 Vol 11 Psy 12 Insecte 13 Roche 14 Spectre 15 Dragon 16 Acier 17 Tenebres #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # $battle_var.action_id # 0 : Phase de Sélection # 1 : Sélection Item # 2 : Switch Pokémon # 4 : Switch Fin de Tour #----------------------------------------------------------------------------- module POKEMON_S #------------------------------------------------------------ # Pokemon_Battle_Core # noyau possédant les fonctions communes aux combats sauvages/dresseurs #------------------------------------------------------------ #------------------------------------------------------------ # Fonctions à définir à l'extérieur # initialize # pre_battle_animation # enemy_skill_decision # end_battle_check # actor_item_use # catch_pokemon # run_able? # end_battle_victory #------------------------------------------------------------ class Pokemon_Battle_Core attr_accessor :z_level attr_accessor :actor_status attr_accessor :actor attr_accessor :actor_sprite #------------------------------------------------------------ # ------------------- Squelette Général --------------------- #------------------------------------------------------------ #------------------------------------------------------------ # main #------------------------------------------------------------ def main # Pré-création des Sprites # Fond if @battleback_name != "" if $game_switches[31] == true # J pour jour @battleback_name = $game_map.battleback_name + ".png" @ground_name = "ground" + $game_map.battleback_name + ".png" elsif $game_switches[33] == true # N pour nuit @battleback_name = $game_map.battleback_name + "N" + ".png" @ground_name = "ground" + $game_map.battleback_name + "N" + ".png" elsif $game_switches[30] == true # AC pour matin @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" elsif $game_switches[32] == true # AC pour soir @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" end else print("Attention, réglez le BattleBack du Tileset.") @battleback_name = "battle0.png" @ground_name = "groundbattle0.png" end @background = Sprite.new @background.z = @z_level # Fond du message @message_background = Sprite.new @message_background.y = 336 @message_background.z = @z_level + 19 # Sprite de flash @flash_sprite = Sprite.new @flash_sprite.bitmap = RPG::Cache.picture("black.png") @flash_sprite.color = Color.new(255,255,255) @flash_sprite.opacity = 0 @flash_sprite.z = @z_level + 13 # Fenetre de texte @text_window = Window_Base.new(4, 340, 632, 136) @text_window.opacity = 0 @text_window.z = @z_level + 20 @text_window.contents = Bitmap.new(600 + 32, 104 + 32) @text_window.contents.font.name = $fontface @text_window.contents.font.size = $fontsizebig |
Code: |
if $game_switches[31] == true # J pour jour @battleback_name = $game_map.battleback_name + ".png" @ground_name = "ground" + $game_map.battleback_name + ".png" elsif $game_switches[33] == true # N pour nuit @battleback_name = $game_map.battleback_name + "N" + ".png" @ground_name = "ground" + $game_map.battleback_name + "N" + ".png" elsif $game_switches[30] == true # AC pour matin @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" elsif $game_switches[32] == true # AC pour soir @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" end |
Code: |
@battleback_name = $game_map.battleback_name + ".png" @ground_name = "ground" + $game_map.battleback_name + ".png" |
Code: |
if @battleback_name != "" if $game_switches[31] == true # J pour jour @battleback_name = $game_map.battleback_name + ".png" @ground_name = "ground" + $game_map.battleback_name + ".png" elsif $game_switches[33] == true # N pour nuit @battleback_name = $game_map.battleback_name + "N" + ".png" @ground_name = "ground" + $game_map.battleback_name + "N" + ".png" elsif $game_switches[30] == true # AC pour matin @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" elsif $game_switches[32] == true # AC pour soir @battleback_name = $game_map.battleback_name + "AC" + ".png" @ground_name = "ground" + $game_map.battleback_name + "AC" + ".png" end else print("Attention, réglez le BattleBack du Tileset.") @battleback_name = "battle0.png" @ground_name = "groundbattle0.png" end |
Code: |
if @battleback_name != "" if @battleback_name != "" @battleback_name = $game_map.battleback_name + ".png" @ground_name = "ground" + $game_map.battleback_name + ".png" else print("Attention, réglez le BattleBack du Tileset.") @battleback_name = "battle0.png" @ground_name = "groundbattle0.png" end else print("Attention, réglez le BattleBack du Tileset.") @battleback_name = "battle0.png" @ground_name = "groundbattle0.png" end |
Citation: |
Met ok si c'est résolu |