Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I just wrote it into a new script ... but anywhere outside of any class works
- ================================================
- def evolvePokemonSilent(pokemon)
- newspecies=pbCheckEvolution(pokemon)
- if newspecies == -1
- return pokemon
- end
- newspeciesname=PBSpecies.getName(newspecies)
- oldspeciesname = pokemon.name
- pokemon.species=newspecies
- pokemon.name=newspeciesname if pokemon.name==oldspeciesname
- pokemon.calcStats
- return pokemon
- end
- ================================================
- Then you go to where you want to do the evolution check ... i did it inPTrainer_NPCTrainers script in pbLoadTrainer method
- right before the last line of the method
- ================================================
- return success ? [opponent,items,party] : nil
- ================================================
- insert this block of code here
- ================================================
- #check every pokemon if it can evolve and evolve it
- for i in 0 ... party.length
- while party[i] && (pbCheckEvolution(party[i]) > -1) do
- party[i] = evolvePokemonSilent(party[i])
- end
- end
- ================================================
- it works on clean essentials 16.2
- it's evolve the pokemon multiple times
- like bulbasaur into venisaur if the conditions are met
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement