1. xUMG

    xUMG Thread Author Trainer member

    Joined:
    Oct 15, 2017
    Posts:
    51

    Solved Deleting a specific Pokémon

    Discussion in 'Pokémon Essentials' started by xUMG, Jan 11, 2018.

    Deleting a specific Pokémon in the players part? I have red the manipulating Pokémon thread in Pokémon Essentials thread. But it only searches for an index of the players party i.e where the Pokémon is placed at.

    I wouldn't wanna bother scramming my brain or brainstorming itself right now i'm working on my game so if anyone can find a method for it it'd be appreciated, even if the method is long it's fine.
     
    Last edited: Jan 12, 2018
  2. CloonieKing

    CloonieKing Just a casual dude cloonieking

    Joined:
    Mar 23, 2017
    Posts:
    81
    I found this, which seems to have the answer: https://www.pokecommunity.com/showthread.php?t=382910


    Code:
    
    for i in 0...$Trainer.party.length
    if $Trainer.party[i].species==PBSpecies::RATTATA
    $Trainer.party[i]=nil
    $Trainer.party.compact
    break
    end
    end


    Seems like this should work, just replace RATTATA with whatever species you are after.
    Hopefully it works :)
     
  3. xUMG

    xUMG Thread Author Trainer member

    Joined:
    Oct 15, 2017
    Posts:
    51
    Oh! Thanks for that although the script didn't work i red the thread and ended up creating something like this!
    [​IMG]
     
    Last edited: Jan 12, 2018
    CloonieKing likes this.