• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
4
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
     
    72
    Posts
    4
    Years
  • 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
     

    FL

    Pokémon Island Creator
    2,450
    Posts
    13
    Years
    • Seen today
    Use `isConst?(pkmn.fSpecies,PBSpecies,:UNOWN_2)`.
     
    Back
    Top