The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page The Ultimate Test script?
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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: Albion
Gender: Male
Nature: Calm
Posts: 135
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,600
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: Albion
Gender: Male
Nature: Calm
Posts: 135
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,600
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 8:29 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.