• 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] How to check the party for types and legendaries

  • 1
    Posts
    3
    Years
    • Seen May 12, 2022
    How can I make an event that I can pass a route or cave only when I have a certain type of pokemon or a legendary in my party? For example I need a water pokemon in my party to enter a desert or I need a legendary to enter a cave

    EDIT: I found the script to check for types: pbHasType?(:WATER)
    Just put it in conditional branch

    And I found the script to check for specific pokemon: pbHasSpecies?(:CELEBI)
    This needs a bunch of conditional branches to check if you have ANY legendary in the party. Maybe it's possible to reverse the rule-script for the battle frontiers to check for ANY legendary.
     
    Last edited:
    Back
    Top