• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.
  • 115
    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