? What do you mean?And what if the Pokemon is holding ever stone or something which is blocking the Pokemon from evolving? Sorry if this is already answered somewhere in the world.
# Checks whether a Pokemon can evolve now. If a block is given, calls the block
# with the following parameters:
# Pokemon to check; evolution type; level or other parameter; ID of the new Pokemon species
def pbCheckEvolutionEx(pokemon)
return -1 if pokemon.species<=0 || pokemon.egg?
[B][I][U] return -1 if isConst?(pokemon.item,PBItems,:EVERSTONE)[/U][/I][/B]
return -1 if isConst?(pokemon.species,PBSpecies,:PICHU) && pokemon.form==1
return -1 if isConst?(pokemon.species,PBSpecies,:PIKACHU) && pokemon.form>0
ret=-1
for form in pbGetEvolvedFormData(pbGetFSpeciesFromForm(pokemon.species,pokemon.form))
ret = yield pokemon,form[0],form[1],form[2]
break if ret>0
end
return ret
end
? What do you mean?
Well, simple, won't evolve:
Code:# Checks whether a Pokemon can evolve now. If a block is given, calls the block # with the following parameters: # Pokemon to check; evolution type; level or other parameter; ID of the new Pokemon species def pbCheckEvolutionEx(pokemon) return -1 if pokemon.species<=0 || pokemon.egg? [B][I][U] return -1 if isConst?(pokemon.item,PBItems,:EVERSTONE)[/U][/I][/B] return -1 if isConst?(pokemon.species,PBSpecies,:PICHU) && pokemon.form==1 return -1 if isConst?(pokemon.species,PBSpecies,:PIKACHU) && pokemon.form>0 ret=-1 for form in pbGetEvolvedFormData(pbGetFSpeciesFromForm(pokemon.species,pokemon.form)) ret = yield pokemon,form[0],form[1],form[2] break if ret>0 end return ret end
love this script! everything works great but it seems my back ground music in the over world stops playing after a pokemon evolves during battle. it starts up after entering a new map, but immediately after the battle its silent. any ideas? using 17.2, thanks in advance!
During battle, if my pokémon evolves and I cancel to evolution, after battle 'pbEvolution' will trigger again. How can fix that?
if USENEWBATTLEMECHANICS || (decidion!=2 && decision!=5)
if $PokemonTemp.evolutionLevels
pbEvolutionCheck($PokemonTemp.evolutionLevels)
$PokemonTemp.evolutionLevels = nil
end
end
$game_map.autoplayAsCue
You need to add that code inside EBS script instead Essentials script (vanilla version).
#Evo During Battle by Zeak6464
newspecies=pbCheckEvolution(thispoke)#edit
if newspecies>0
pbFadeOutInWithMusic(99999){
if battler
oldmoves=[]
for i in 0...4
oldmoves.push(battler.moves.id)
end
end
evo=PokemonEvolutionScene.new
evo.pbStartScreen(thispoke,newspecies)
evo.pbEvolution
evo.pbEndScreen
if battler
for i in 0...4
if oldmoves!=thispoke.moves.id
battler.moves=PokeBattle_Move.pbFromPBMove(self,thispoke.moves)
end
end
@scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
battler.name=thispoke.name
end
}
end
---------------------------
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `addUserAnimation' for nil:NilClass
Following Pokemon:311:in `refresh_sprite'
Following Pokemon:310:in `each'
Following Pokemon:310:in `refresh_sprite'
EliteBattle_1:2455:in `createEvolved'
EliteBattle_1:2441:in `pbEvolution'
Birthsigns:5106:in `pbGainExpOne'
Birthsigns:5097:in `pbFadeOutInWithMusic'
PSystem_Utilities:142:in `pbFadeOutIn'
PSystem_Utilities:142:in `pbFadeOutInWithMusic'
Birthsigns:5097:in `pbGainExpOne'
-
Not sure how to do it via scripts, but if you select "Change Text Options" and select 'Bottom' on the window, before the battle starts in the event, it should fix it.