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

Checking the number of Pokemon in the player's party

  • 67
    Posts
    12
    Years
    • Seen Aug 22, 2024
    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.
     
    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