• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our 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.

Level Restrictions by Area

  • 18
    Posts
    10
    Years
    • Seen Jun 22, 2015
    I would like to make certain areas only allow the trainer to carry Pokemon under a specific level, unless a certain badge or number of badges have been obtained. Is this at all possible? If so were would I start? What scripts would I need to modify?

    I am not half bad at scripting and am good at understanding what different parts of the code do, I just don't know where to look or how to start.

    Thanks in advance!
     
    This doesn't require script changes and can be done completely with events;

    What you want to do is place an event near the entrance of the area which checks if the player is allowed to enter (i.e. all their Pokémon are below level 20), and sends them back if they aren't. It can be done by having an npc walk up to the player (see the roadblock example event in essentials, left of celadon). Yet this can be weird if it happens every time the player passes through there. In that case it can also be done by an invisible event (one without a picture), which moves another event to the player to send them back (this is actually purely to communicate to the player why they can't pass).

    As to how to check whether the player is carrying a Pokémon above a certain level, check my reply on your other thread.
     
    Back
    Top