• 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.

Checking the number of Pokemon in the player's party

66
Posts
11
Years
    • Seen Oct 30, 2023
    I want a NPC that only let me pass if I have a maximum of 3 Pokemon in my Team. I need the right Conditionak Branch or Variables, if there's one.
     

    Franzo

    Developing something...
    95
    Posts
    16
    Years
  • Put this in a conditional branch (script option)
    $Trainer.ablePokemonCount>3
    That will count unfainted pokemon, for unfainted and fainted use
    $Trainer.pokemonCount>3

    This stuff is all on the wiki, not hard to find.
     
    Back
    Top