• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Delete last caught pokémon

  • 7
    Posts
    13
    Years
    Just like what the title implies, is it possible to delete a pokémon we last caught in the game? So in my game, we have to help a trainer catch his pokémon, who keeps running away from the trainer. After catching it, is it possible to delete that specific pokémon in party or PC so that it's like we returned the pokémon to its owner? I searched in the wiki, but I can't seem to find an answer, or the answer might be unclear for me.
    P.S: If anything is unclear, please tell me. ;)
     
    Just like what the title implies, is it possible to delete a pokémon we last caught in the game? So in my game, we have to help a trainer catch his pokémon, who keeps running away from the trainer. After catching it, is it possible to delete that specific pokémon in party or PC so that it's like we returned the pokémon to its owner? I searched in the wiki, but I can't seem to find an answer, or the answer might be unclear for me.
    P.S: If anything is unclear, please tell me. ;)

    the easiest way i can think of is make a conditional branch for the event so it will only start it the trainer has 5 or less pokemon on him/her, then once the pokemon is caught enter this as a script, make sure to use extendtext

    Code:
    for i in 0..$Trainer.party.length-1
    if $Trainer.party[i].species==PBSpecies::[COLOR="Red"]POKEMON NAME[/COLOR]
    Kernel.pbMessage(_INTL("{1} was returned to their owner!",$Trainer.party[i].name))
    $Trainer.party[i]=nil
    $Trainer.party.compact!
    break
    end
    end
    this will delete the specific pokemon and display a message saying the pokemon was returned to their owner
     
    Probably the most accurate way is to save the pokemon to a global variable before giving it to the player. Whenever you want to delete it later, run through your party and the pc, and if a pokemon is equal to that global variable, delete that.
     
    Your best bet is to have a switch which, when on, doesn't store captured Pokémon in the first place. Turn it on for that specific battle, which is bound to be an event encounter so that's easily possible.
     
    Back
    Top