- 10
- Posts
- 4
- Years
- Seen Dec 12, 2022
I had an idea to evolve Vaporeon, Jolteon, and Flareon when their HP reached 0 if they had a certain level of happiness while a Ho-Oh was in the party, as a reference to the fan theory that the legendary beasts evolved from them. I got most of the way there, but stumbled on the fact that the only triggers for evolution in the game are based on level up, item, or trade. I tried having them evolve with the Revival Herb, but that always revived the pokemon without evolving them, prioritizing the item's core function, so that doesn't work. As for level up methods, the closest I got was using the code at the bottom of this post, but pokemon don't gain exp in battle if they are fainted, so that wouldn't work out. I'd rather not make it a requirement to use a Rare Candy to evolve them, and besides, they can technically evolve without fainting this way, so it'd be pointless.
The problem is, I can't find where pbMiniCheckEvolution, pb MiniCheckEvolutionItem, PBEvolution, or whatever command, actually triggers upon level up or item use. Does anyone know where I can find this, so I can create a new check for when HP reaches zero? (pbMiniCheckEvolutionFaint or something.) Any help would be appreciated!
when PBEvolution::HasInPartyFaint #Legendary Dogs
return poke if pokemon.hp<=5 && pokemon.happiness>=220
(the reason the hp value is set to 5 is because on level up the pokemon's health increases and it no longer is 0, and 5 is the highest it would change by for the eeveelutions. I would probably remove this if I can get the faint trigger working.)
The problem is, I can't find where pbMiniCheckEvolution, pb MiniCheckEvolutionItem, PBEvolution, or whatever command, actually triggers upon level up or item use. Does anyone know where I can find this, so I can create a new check for when HP reaches zero? (pbMiniCheckEvolutionFaint or something.) Any help would be appreciated!
when PBEvolution::HasInPartyFaint #Legendary Dogs
return poke if pokemon.hp<=5 && pokemon.happiness>=220
(the reason the hp value is set to 5 is because on level up the pokemon's health increases and it no longer is 0, and 5 is the highest it would change by for the eeveelutions. I would probably remove this if I can get the faint trigger working.)