Switch to a preset team, and back

Weter 23

Novice
Member
Joined
Mar 4, 2018
Posts
12
I've you've played Edge Rising or Uranium, you know how during certain points the game gives you different Pokemon to use for a certain amount of time in the game, and restores your party completely later. I was wondering if this was a script or if there's a way to get it done. Of course, during this time, I don't want any access to the PC.
 

Mashirosakura

There is only one of many.
Member
Joined
May 25, 2017
Posts
104
Age
24
There's a really simple way of copying your current party and just storing it away, inside a variable. In a script command, you put in:
Code:
$game_variables[29] = 
$Trainer.party.clone
This clones your current party, stats, natures etc into variable 29. You can change the variable to anything you want, just try not to override the default ones.
The next step you can do is clear your party. Since the variable has all the party data you don't need to worry about it getting lost.
Code:
$Trainer.party.clear
Afterwards you can give the player a Pokemon for a while with the popup message or, in the case of switching player character, silently give them a Pokémon.
Code:
poke=PokeBattle_Pokemon.new(:PIKACHU,20,$Trainer)
pbAddPokemon(poke)
 
pbAddToPartySilent(:PIKACHU,20)
To give the player back the Pokémon stored in the variable, you can just put the following script command:
Code:
$Trainer.party = pbGet(29)
I'd recommend clearing whichever Pokémon was in the party before restoring the old party, though.

That's all I have.
 

Weter 23

Novice
Member
Joined
Mar 4, 2018
Posts
12
This reply couldn't have been any better. The main idea with this was to change to another character's perspective for a certain amount of time with their party and being able to switch back.

Thanks.
 
Top