Hey guys, I wanted to ask how to place the Player's party Pokémon in a temporary location. I have a situation where the player must select a Pokémon from a predetermined set, and battle with one of them rather than the Player's party.
Here's what I've figured out so far:
First I looked into the Bug Catching Contest to see what happens there.
So, first it pushes the player's other party Pokemon into a separate array, and sets the player's party to just the one they selected. It then adds them back at the end of the contest.
I then checked out the wiki and found that there's a handy script that adds a pokemon to the party.
Looks like that will do the trick.
Now, even with all this knowledge, I still have no idea what I'm doing. I tried making a simple event that calls a script that, like the Bug Catching Contest, adds the player's current party to a temporary array, then adds the selected Pokemon.
Script:
Event Page 1:
Of course, it doesn't work, and I get NoMethod errors when I view the party or take a step. I know I'm doing this completely wrong. Does anyone else have any ideas?