• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
11
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:

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen yesterday
    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.
     

    thor348

    That's Oak to You
    137
    Posts
    11
    Years
  • 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