Well, I've been talking to Vendilly and she's helped me the best, but I still have not been able to resolve that issue. My question is how to allow one more mega evolution for an NPC trainer.
Both Vendilly and another topic is said to remove this line allows to infinite mega evolutions at the battle. But doesn't work for me in the essentials v17.2 (clean):
I also tried to create a mega way to evolve as if the pokémon was a conditional form, using specific and unique situations, to simulate a mega evolution, partially it works, the problem is that a mega evolution happens as soon as the movements are defined in the turn, and the way I did, the poke is mega evolving after using a move. This should not happen. I'm done this way, in the PokeBattle_Battler section above "if transformed" inside the "def pbCheckForm (thismove = nil)":
If anyone knows how I should do it, thank you very much.
EDIT -
Ok, for AI I found one way:
Both Vendilly and another topic is said to remove this line allows to infinite mega evolutions at the battle. But doesn't work for me in the essentials v17.2 (clean):
Spoiler:
Code:
return false if @megaEvolution[side][owner]!=-1
I also tried to create a mega way to evolve as if the pokémon was a conditional form, using specific and unique situations, to simulate a mega evolution, partially it works, the problem is that a mega evolution happens as soon as the movements are defined in the turn, and the way I did, the poke is mega evolving after using a move. This should not happen. I'm done this way, in the PokeBattle_Battler section above "if transformed" inside the "def pbCheckForm (thismove = nil)":
Spoiler:
Code:
# It is a particulary cases about Mega Evo
# Lopunny Double Mega Evo
if self.hasWorkingItem(:LOPUNNITE) &&
isConst?(self.species,PBSpecies,:LOPUNNY) &&
!self.isFainted? && $game_switches[367] &&
@battle.choices[@index][0]!=0 &&
$fefieldeffect == 26
if self.form!=1
@battle.pbDisplay(_INTL("The opposing Lopunny's Lopunnite is reacting to Steph & Val's Twins Rings!"))
self.form=1
transformed=true
@battle.pbCommonAnimation("MegaEvolution",self,nil)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbCommonAnimation("MegaEvolution2",self,nil)
end
end
# Blaziken Double Mega Evo
if self.hasWorkingItem(:BLAZIKENITE) &&
isConst?(self.species,PBSpecies,:BLAZIKEN) &&
!self.isFainted? && $game_switches[367] &&
@battle.choices[@index][0]!=0 &&
$fefieldeffect == 26
if self.form!=1
@battle.pbDisplay(_INTL("The opposing Blaziken's Blazikenite is reacting to Steph & Val's Twins Rings!"))
self.form=1
transformed=true
@battle.pbCommonAnimation("MegaEvolution",self,nil)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbCommonAnimation("MegaEvolution2",self,nil)
end
end
# End particulary cases about Mega Evo
If anyone knows how I should do it, thank you very much.
EDIT -
Ok, for AI I found one way:
Spoiler:
In PokeBattle_AI, inside of 'def pbEnemyShouldMegaEvolve?(index)', replace:
for this:
and the magic will happens!
But not able for the player, only for AI.
It is possible to create situations too, using switches or variables.
Code:
return pbCanMegaEvolve?(index)
Code:
return pbMegaEvolve(index)
But not able for the player, only for AI.
It is possible to create situations too, using switches or variables.
Last edited: