Code: |
demarrer_combat({"ID" => 93, "NV" => 50, "MOVE" => ["HYPNOSE", "DEVORÊVE", "SOIN", "MALEDICITON"], "Shiny" => true}) |
Code: |
def call_battle_wild(id_data, level, shiny = false, ia = false) $game_temp.map_bgm = $game_system.playing_bgm $game_system.bgm_stop if id_data.type == Fixnum id = id_data elsif id_data.type == String id = id_conversion(id_data) end pokemon = Pokemon.new(id, level, shiny) $scene = Pokemon_Battle_Wild.new($pokemon_party, pokemon, ia) @wait_count = 2 return true end alias demarrer_combat call_battle_wild |
Code: |
def call_battle_wild(id_data, level, shiny = false, ia = false, moves = [nil, nil, nil, nil]) $game_temp.map_bgm = $game_system.playing_bgm $game_system.bgm_stop if id_data.type == Fixnum id = id_data elsif id_data.type == String id = id_conversion(id_data) end pokemon = Pokemon.new(id, level, shiny) for a in 0..3 if moves[a] != nil pokemon.skills_set[a] = moves[a] end end $scene = Pokemon_Battle_Wild.new($pokemon_party, pokemon, ia) @wait_count = 2 return true end alias demarrer_combat call_battle_wild |
Code: |
demarrer_combat("SPECTRUM", 50, true, true, ["HYPNOSE", "DEVORÊVE", "SOIN", "MALEDICITON"]) |