• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Scripting Question] Removing specific pkmn v18

  • 72
    Posts
    5
    Years
    I'm trying to make a door that requires a specific form of unown.

    I have the conditional branch pbHasSpecies(unown,1)

    But I also want it to remove the pokemon as well

    $player.remove_pokemon_at_index(0)
    dosnt work for me so I'm assuming that v18 Essentials can't use that script but even if so how can I make 0 the location of the unowns slot
     
    I can do this script

    I=0
    For pkmn in $Trainer.pokemonParty
    If isConst?(pkmn.species,PBSpecies,:UNOWN)
    PbRemovePokemonAt(i)
    Break
    End
    I++
    End

    But I want specific forms and I'd rather not delete all forms for the specific pkmn
     
    Back
    Top