I get this error when the game startsI know you didn't ask for my help, but here's a small function:
Code:WhiteListedPokemon = [PBSpecies::MAGIKARP] # change the pokemon here obviously. VariableID = 54 # change this to the variable ID you want to store the pokemon in def pbDeleteAndSavePartyPokemon $game_variables[VariableID] = [] if (!$game_variables[VariableID].is_a?(Array)) for i in 0...$Trainer.party.length pokemon = $Trainer.party[i] if (!WhiteListedPokemon.include?(pokemon.species)) $game_variables[VariableID].push(pokemon) pbRemovePokemonAt(i) end end end def pbRestoreAllDeletedPokemon return if (!$game_variables[VariableID].is_a?(Array)) for pokemon in $game_variables[VariableID] pbAddPokemonSilent(pokemon) end $game_variables[VariableID] = [] end
This wasn't tested, but should work exactly how you want it. (Change the WhiteListedPokemon and VariableID variables to whatever suits you.)
to delete the pokemon, just call "pbDeleteAndSavePartyPokemon" and to restore "pbRestoreAllDeletedPokemon"
If you encounter errors, let me know.
Edit: As for the problem with the other script, you forgot to store it into the PC.
Spoiler:
As for mej71's script, i figured out it actually stored the clones into my party, and not the PC.