Do you need to store it and retrieve it later? Or do you need to delete it?
Have you look anywhere else on this forum.
Because this question has been asked a bunch of times.
This is the super short version:
Choose what pkm you're about to store
![]()
Get it back
![]()
Has some way to choose the pokemon through a command?
Example, can not enter with a Pikachu in the team.
Can you elaborate on your request?
sorry my bad English, I'm not sure you're understanding me.
I need to withdraw from the team and store a pokémon, all through command, and then another command to return the pokemon for coach.
I want to simulate a theft pokémon.
And that's what the event does, the first page will let you choose a pokémon and will store it in the variable 1. The second event will give it back. Yours the duty to actually write the dialogue.
Obviously is missing some fundamental codes such as a check to see if the player has space to retrieve it and it goes without saying that the variable 1 is the variable that deals with temporary pokémons so it's prone to be overwritten unless you use another variable.
If you need another way to "lose" your Pokémon, such as you'll lose the first one or you'll only lose your PIKACHU whether its position is, that's another thing.
That's the problem, I do not want to let the player select a Pokemon to store.
I already want to leave programmed a Pokemon in specific.
How do you plan on marking that Pokemon? If it's a Meowth, how would the game know that Meowth from another? You'll have to make some kind of flag attatched to the mon itself, or maybe stored the mon in a game variable before giving it to the player. If the latter, just run through the player's party and check if any of the mons are equal to the variable you stored, then remove that one.