- 1,748
- Posts
- 15
- Years
- Age 28
- Nearby my feet.
- Seen Apr 18, 2021
As the title suggests it balances the level of Pokemon. Well to be more precisely; it balances pokemon that the player does not own.
For this script to work you'll need to activate a switch. (Read the comments on how to change the Switch ID)
For this script to work you'll need to activate a switch. (Read the comments on how to change the Switch ID)
Code:
################################################################################
# Pokemon Level Balancing
# By Umbreon
################################################################################
# Balances any and all pokemon's levels towards the player's party level.
#
# NOTE: This won't affect any pokemon the player owns.
#
# To use: simply activate Switch Number X
# (X = the number listed After "Switch = ", default is switch number 37.)
#
#
################################################################################
module LevelBalance
Switch = 37 # The switch used to activate/deactivate the level balancing
end
class PokeBattle_Pokemon
alias balanced_level_init initialize
def initialize(species,level,player=nil,withMoves=true)
if $game_switches && $game_switches[LevelBalance::Switch] && $Trainer &&
$Trainer.party.length > 0
level = pbBalancedLevel($Trainer.party)
end
balanced_level_init(species, level, player, withMoves)
end
end