• 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.

Balancing Pokémon levels based on player's top level Pokémon

Savordez

It's time to end fangames.
  • 101
    Posts
    11
    Years
    pbBalancedLevel exists for balancing Pokémon, but what I'm looking for is a way to balance them based on the player's top level Pokémon. Does a way to do this already exist in the scripts? I tried looking into the Battle Frontier/Tower stuff, but the lack of documentation put me off.
     
    If I'm not msitaken pbBalancedLevel returns a value which is balanced depending on the level of all Pokémon in the party. Thus it sounds to me you would like to be able to get the level of the strongest Pokémon in the players party. That can be done using the following code (using a script call inside an event, setting global variable 60 to the highest level in the player's party):
    Code:
    max = 0
    for i in 0...$Trainer.party.length
    if $Trainer.party[i].level > max
    max = $Trainer.party[i].level
    end
    end
    $game_variables[60] = max
     
    I'm sorry I still don't understand how to implement this code into the game. If you can help with that, that would be great.
     
    Back
    Top