Thread: [Question] The Ultimate Test script?
View Single Post
  #2    
Old November 18th, 2012 (08:30 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
Team Unova
 
Join Date: Sep 2010
Gender: Male
Posts: 1,455
http://www.pokecommunity.com/showthread.php?t=290931

Just add the code in the module:
Code:
  def self.change(party)
    if !$PokemonGlobal.pokemonSelectionOriginalParty
      $PokemonGlobal.pokemonSelectionOriginalParty=$Trainer.party
    end
    $Trainer.party=party
  end
Calls 'PokemonSelection.change(party)' to change the trainer party and 'PokemonSelection.restore' to restore your original party. The party is an pokémon array. Example:

Code:
party=[PokeBattle_Pokemon.new(PBSpecies::BULBASAUR,5,$Trainer), PokeBattle_Pokemon.new(PBSpecies::CHARMANDER,5,$Trainer), PokeBattle_Pokemon.new(PBSpecies::SQUIRTLE,5,$Trainer)]
PokemonSelection.change(party)
Untested.
__________________
Reply With Quote