• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Trainer Pokemon Levels Dependent on Yours

  • 148
    Posts
    12
    Years
    Hello, it's been a while since I've toyed with Essentials so I was hoping for some help on figuring this out. There's a section in "PokemonEncounterModifiers" that changes the level of wild encounters based on your Pokemon's levels.
    Spoiler:

    How could I go about getting this effect on trainer Pokemon, like a gym leader? Thanks for any help.
     
    Your best bet is storing the party leader's Pokémon level in a variable and use that to call different trainers with it.
     
    That's how I have it now. I'd like to figure out a way to get this effect though. Just to have no set level for how good the gym leaders can be. Always have them just a little better than the player.
     
    You know how to get a level number which is dependent on how good the player's Pokémon are - you quoted the code. At the bottom of that same script section is the skeleton of code that lets you change details of a trainer's Pokémon. Put the two together.
     
    Back
    Top