• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

[Scripting Question] Create an area with limited level

  • 8
    Posts
    10
    Years
    Hello :)

    I want create a area with a limitation of level, as this "If level of 1st Pok?mon <= 50 ....."
    A condition as this is possible with regular events or a with use of "Script" Event ?

    Thank you in advance and good night :)
     
    Last edited by a moderator:
    Hello,
    It is not that complicated, try to do it with regular event(s).
    You have to decide the type of event(s) you want (player/event touch if the area is easy to demarcate, maybe an autorun if it's on a map apart).
    Your event(s) should simply check for the level of each Pokemon (to do this, you can refer to the wiki) and use a conditional branch then to forbid or allow the access to the player.
     
    Hello,
    It is not that complicated, try to do it with regular event(s).
    You have to decide the type of event(s) you want (player/event touch if the area is easy to demarcate, maybe an autorun if it's on a map apart).
    Your event(s) should simply check for the level of each Pokemon (to do this, you can refer to the wiki) and use a conditional branch then to forbid or allow the access to the player.

    That sounds awfully complicated O.o

    @OP, this might help (or it might not, dunno), from PField_EncounterModifiers:
    Code:
    # Used in the random dungeon map.  Makes the levels of all wild Pokémon in that
    # map depend on the levels of Pokémon in the player's party.
    # This is a simple method, and can/should be modified to account for evolutions
    # and other such details.  Of course, you don't HAVE to use this code.
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       if $game_map.map_id==51
         newlevel=pbBalancedLevel($Trainer.party) - 4 + rand(5)   # For variety
         newlevel=1 if newlevel<1
         newlevel=PBExperience::MAXLEVEL if newlevel>PBExperience::MAXLEVEL
         pokemon.level=newlevel
         pokemon.calcStats
         pokemon.resetMoves
       end
    }
    If nothing else, it's how to get an average of the party level.
     
    Last edited:
    I see, the answer is in the wiki. It's a good thing.
    The second idea is also good, i see for integrate to my project.

    Thanks a lot and good night/afternoon :)
     
    Back
    Top