Yes.
Just copy the script inside the Rare Candy, and change some lines around
I did it for you because I am so nice!
Try it out and see if it works!
def pbDoRareCandyEffect(index = 0)
pkmn = $player.party[index]
if pkmn.shadowPokemon? || pkmn.egg?
pbMessage(_INTL("It won't have any effect."))
next false
end
if pkmn.level >= GameData::GrowthRate.max_level
new_species = pkmn.check_evolution_on_level_up
if !Settings::RARE_CANDY_USABLE_AT_MAX_LEVEL || !new_species
pbMessage(_INTL("It won't have any effect."))
return false
end
# Check for evolution
pbFadeOutInWithMusic do
evo = PokemonEvolutionScene.new
evo.pbStartScreen(pkmn, new_species)
evo.pbEvolution
evo.pbEndScreen
end
return true
end
# Level up
pbSEPlay("Pkmn level up")
# Tricked scene into not crashing by putting any non nil object at third argument
pbChangeLevel(pkmn, pkmn.level + qty, pkmn)
return true
end
Hope this helps!
Swdfm