• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

The Ultimate Test script?

thor348

That's Oak to You
  • 137
    Posts
    12
    Years
    Alright so I want to make a part in my fangame that resembles the episode 56 in Season 1 of Pokemon. It's called the ultimate test. If you've seen it you know what i'm talking about. So I was wondering if there is a script or something that I can take all of the \PN's pokemon and set them aside and fill their party with pre-picked pokemon. any help?

    I just want to know if there's already a script for this or if I need to write my own :P
     
    Last edited:
    https://www.pokecommunity.com/threads/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.
     
    Just add the code in the module:
    Code:
      def self.change(party)
        if !$PokemonGlobal.pokemonSelectionOriginalParty
          $PokemonGlobal.pokemonSelectionOriginalParty=$Trainer.party
        end
        $Trainer.party=party
      end

    why and where in the module do I add this?
     
    Back
    Top