In
PokeBattle_Pokemon you need to add a variable in the
PokeBattle_Pokemon class at the very top. In this case you need to make a new attr_accessor, which would be
attr_accessor(:dynamax). This can be added somewhere around line 4-53 if you so choose in
PokeBattle_Pokemon. ((You don't have to call it just
dynamax you could call it
dynamaxlv for readability))
If you're really stuck:
Then you will need to make a method to be able to access that attribute which would be.
def dynamax_level #You can rename this line to whatever you like I just called it this for readability
@dynamax=0 if !@dynamax
@dynamax=10 if @dynamax < 10
return @dynamax
end
Basically what this does is initializes the dynamax variable as zero when the game generates a new pokemon, and lets you call the dynamax level which can be changed. With something like
@dynamax=7 assuming you'll use Dynamax Candies, it would be a simple line of @dynamax+=1
The line
@dynamax=10 if @dynamax < 10 makes it so you can't make the level go past 10 which you can change as you see fit.
Add this method before
def baseStats.
Then in
def initialize(species,level,player=nil,withMoves=true) add
@dynamax=0 after
@iv[5]=rand(32)