• 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.

[Scripting Question] Forcing a Player's Party to their pc?

81
Posts
8
Years
  • Age 22
  • Seen Sep 7, 2019
I want to force a player's party to the first open spots of their PC. How would I be able to do that using scripts?
 
226
Posts
8
Years
  • Age 32
  • Seen Jul 19, 2023
This is the code I use to send the first Pokemon of my party to the PC:

Code:
$PokemonStorage.pbStoreCaught($Trainer.party[0])
$Trainer.party[0]=nil
$Trainer.party.compact!

If you repeat the first and the second line and change 0 by 1 to 5, you should be able to store your entire party.
 
Back
Top