Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old November 14th, 2012 (6:13 PM). Edited November 14th, 2012 by thor348.
thor348's Avatar
thor348 thor348 is offline
That's Oak to You
     
    Join Date: Nov 2012
    Location: Arizona
    Gender: Male
    Nature: Calm
    Posts: 136
    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
    Reply With Quote

    Relevant Advertising!

      #2    
    Old November 18th, 2012 (8:30 AM).
    FL's Avatar
    FL FL is offline
    Pokémon Island Creator
       
      Join Date: Sep 2010
      Gender: Male
      Posts: 1,693
      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
        #3    
      Old November 21st, 2012 (10:02 PM).
      thor348's Avatar
      thor348 thor348 is offline
      That's Oak to You
         
        Join Date: Nov 2012
        Location: Arizona
        Gender: Male
        Nature: Calm
        Posts: 136
        Quote:
        Originally Posted by FL . View Post
        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?
        Reply With Quote
          #4    
        Old November 24th, 2012 (11:21 AM).
        FL's Avatar
        FL FL is offline
        Pokémon Island Creator
           
          Join Date: Sep 2010
          Gender: Male
          Posts: 1,693
          Quote:
          Originally Posted by thor348 View Post
          why and where in the module do I add this?
          To you change the party. After the line 'module PokemonSelection'.
          __________________
          Reply With Quote
          Reply
          Quick Reply

          Sponsored Links
          Thread Tools

          Posting Rules
          You may not post new threads
          You may not post replies
          You may not post attachments
          You may not edit your posts

          BB code is On
          Smilies are On
          [IMG] code is On
          HTML code is Off

          Forum Jump


          All times are GMT -8. The time now is 5:01 AM.