Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials

Notices
For all updates, view the main page.

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 (06:13 PM). Edited November 14th, 2012 by thor348.
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
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
  #2    
Old November 18th, 2012 (08:30 AM).
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
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
That's Oak to You
 
Join Date: Nov 2012
Location: Albion
Gender: Male
Nature: Calm
Quote originally posted by FL .:
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
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Quote originally posted by thor348:
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 03:31 AM.