• 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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