• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist 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.

[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